piratebay_api 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/workspace.xml +17 -17
- data/lib/piratebay_api/pirate_bay.rb +1 -0
- data/lib/piratebay_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d52a44edcc4c271f0ef73c54c7fd63a6848682c7
|
4
|
+
data.tar.gz: 9d08e8647c16cb11d3eca416b6f58eae4562277a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 659e65bf281e3892a82cf834a6997019900662461483f74b18ac5f66820eb019a1d55a4f5a74d04e1454237a2e8d96728a97db9d1769373239090f1fb4ea3886
|
7
|
+
data.tar.gz: f7bbe7b2e29e53e3f1dca81ec543467662a9c32ca78f68c725090202471ce3fa4bd24b3fec9a70574583ac3cd3629fb29915ac40a3496eae9e70ba8cdf66a509
|
data/.idea/workspace.xml
CHANGED
@@ -60,7 +60,7 @@
|
|
60
60
|
<entry file="file://$PROJECT_DIR$/lib/piratebay_api/pirate_bay.rb">
|
61
61
|
<provider selected="true" editor-type-id="text-editor">
|
62
62
|
<state vertical-scroll-proportion="0.0">
|
63
|
-
<caret line="
|
63
|
+
<caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
|
64
64
|
<folding />
|
65
65
|
</state>
|
66
66
|
</provider>
|
@@ -89,8 +89,8 @@
|
|
89
89
|
<file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
|
90
90
|
<entry file="file://$PROJECT_DIR$/lib/piratebay_api/version.rb">
|
91
91
|
<provider selected="true" editor-type-id="text-editor">
|
92
|
-
<state vertical-scroll-proportion="0.
|
93
|
-
<caret line="
|
92
|
+
<state vertical-scroll-proportion="0.091726616">
|
93
|
+
<caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
|
94
94
|
<folding />
|
95
95
|
</state>
|
96
96
|
</provider>
|
@@ -131,10 +131,10 @@
|
|
131
131
|
<order />
|
132
132
|
</component>
|
133
133
|
<component name="ProjectFrameBounds">
|
134
|
-
<option name="x" value="-
|
135
|
-
<option name="y" value="
|
136
|
-
<option name="width" value="
|
137
|
-
<option name="height" value="
|
134
|
+
<option name="x" value="-1288" />
|
135
|
+
<option name="y" value="48" />
|
136
|
+
<option name="width" value="1296" />
|
137
|
+
<option name="height" value="1000" />
|
138
138
|
</component>
|
139
139
|
<component name="ProjectLevelVcsManager" settingsEditedManually="true">
|
140
140
|
<OptionsSetting value="true" id="Add" />
|
@@ -273,17 +273,17 @@
|
|
273
273
|
</todo-panel>
|
274
274
|
</component>
|
275
275
|
<component name="ToolWindowManager">
|
276
|
-
<frame x="-
|
276
|
+
<frame x="-1288" y="48" width="1296" height="1000" extended-state="6" />
|
277
277
|
<editor active="true" />
|
278
278
|
<layout>
|
279
|
-
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.
|
279
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.34675616" sideWeight="0.48381877" order="7" side_tool="false" content_ui="tabs" />
|
280
280
|
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32899022" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
|
281
281
|
<window_info id="Database" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
|
282
282
|
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
|
283
283
|
<window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
284
|
-
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.
|
284
|
+
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.39563107" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
|
285
285
|
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
|
286
|
-
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.
|
286
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.34675616" sideWeight="0.51618123" order="7" side_tool="true" content_ui="tabs" />
|
287
287
|
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
|
288
288
|
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
|
289
289
|
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
|
@@ -545,26 +545,26 @@
|
|
545
545
|
</state>
|
546
546
|
</provider>
|
547
547
|
</entry>
|
548
|
-
<entry file="file://$PROJECT_DIR$/
|
548
|
+
<entry file="file://$PROJECT_DIR$/piratebay_api.gemspec">
|
549
549
|
<provider selected="true" editor-type-id="text-editor">
|
550
550
|
<state vertical-scroll-proportion="0.0">
|
551
|
-
<caret line="
|
551
|
+
<caret line="8" column="31" selection-start-line="8" selection-start-column="31" selection-end-line="8" selection-end-column="31" />
|
552
552
|
<folding />
|
553
553
|
</state>
|
554
554
|
</provider>
|
555
555
|
</entry>
|
556
|
-
<entry file="file://$PROJECT_DIR$/piratebay_api.
|
556
|
+
<entry file="file://$PROJECT_DIR$/lib/piratebay_api/pirate_bay.rb">
|
557
557
|
<provider selected="true" editor-type-id="text-editor">
|
558
558
|
<state vertical-scroll-proportion="0.0">
|
559
|
-
<caret line="
|
559
|
+
<caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
|
560
560
|
<folding />
|
561
561
|
</state>
|
562
562
|
</provider>
|
563
563
|
</entry>
|
564
564
|
<entry file="file://$PROJECT_DIR$/lib/piratebay_api/version.rb">
|
565
565
|
<provider selected="true" editor-type-id="text-editor">
|
566
|
-
<state vertical-scroll-proportion="0.
|
567
|
-
<caret line="
|
566
|
+
<state vertical-scroll-proportion="0.091726616">
|
567
|
+
<caret line="3" column="0" selection-start-line="3" selection-start-column="0" selection-end-line="3" selection-end-column="0" />
|
568
568
|
<folding />
|
569
569
|
</state>
|
570
570
|
</provider>
|
@@ -2,6 +2,7 @@ module PirateBay
|
|
2
2
|
class Search
|
3
3
|
attr_accessor :search_string, :category_id, :page, :caching, :results
|
4
4
|
|
5
|
+
public
|
5
6
|
def initialize(search_string, category=0, url='https://thepiratebay.se')
|
6
7
|
@search_string = URI.encode(search_string)
|
7
8
|
@category_id = PirateBay::Categories::IDS[category.upcase.strip.gsub(/S$/, '').to_sym] unless category == 0
|