piratebay_api 0.1.2 → 0.1.3
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 +21 -21
- data/lib/piratebay_api/pirate_bay.rb +1 -1
- 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: b168ff9781dba400bb077b9b0cbdb3d97bf76085
|
4
|
+
data.tar.gz: dbcd7cccc20114078141a9f2ed5ddead8c83dfb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3eac4a62f5207e014004562e2fc36fd2c3f5b0f464a54e9efa083fd2d711a1f71559505f0e1296adb41bf615737ea6522f63466cf2c711527d4f8295ef6b4326
|
7
|
+
data.tar.gz: 06b9e4dacc4ccf9e557f98649c36f0b1925b2d8a3ae8f3c61f5851c3c42366d444978c54e9b0d3042982631326b6a1831d339171b6ae54aa8847799ce4a9f88f
|
data/.idea/workspace.xml
CHANGED
@@ -33,7 +33,7 @@
|
|
33
33
|
<entry file="file://$PROJECT_DIR$/lib/piratebay_api.rb">
|
34
34
|
<provider selected="true" editor-type-id="text-editor">
|
35
35
|
<state vertical-scroll-proportion="0.0">
|
36
|
-
<caret line="
|
36
|
+
<caret line="30" column="59" selection-start-line="30" selection-start-column="59" selection-end-line="30" selection-end-column="59" />
|
37
37
|
<folding />
|
38
38
|
</state>
|
39
39
|
</provider>
|
@@ -63,7 +63,7 @@
|
|
63
63
|
<entry file="file://$PROJECT_DIR$/lib/piratebay_api/pirate_bay.rb">
|
64
64
|
<provider selected="true" editor-type-id="text-editor">
|
65
65
|
<state vertical-scroll-proportion="0.0">
|
66
|
-
<caret line="
|
66
|
+
<caret line="4" column="0" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="0" />
|
67
67
|
<folding />
|
68
68
|
</state>
|
69
69
|
</provider>
|
@@ -82,7 +82,7 @@
|
|
82
82
|
<file leaf-file-name="version.rb" pinned="false" current-in-tab="true">
|
83
83
|
<entry file="file://$PROJECT_DIR$/lib/piratebay_api/version.rb">
|
84
84
|
<provider selected="true" editor-type-id="text-editor">
|
85
|
-
<state vertical-scroll-proportion="0.
|
85
|
+
<state vertical-scroll-proportion="0.03057554">
|
86
86
|
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
87
87
|
<folding />
|
88
88
|
</state>
|
@@ -134,10 +134,10 @@
|
|
134
134
|
<order />
|
135
135
|
</component>
|
136
136
|
<component name="ProjectFrameBounds">
|
137
|
-
<option name="x" value="-
|
138
|
-
<option name="y" value="
|
139
|
-
<option name="width" value="
|
140
|
-
<option name="height" value="
|
137
|
+
<option name="x" value="-1288" />
|
138
|
+
<option name="y" value="48" />
|
139
|
+
<option name="width" value="1296" />
|
140
|
+
<option name="height" value="1000" />
|
141
141
|
</component>
|
142
142
|
<component name="ProjectLevelVcsManager" settingsEditedManually="true">
|
143
143
|
<OptionsSetting value="true" id="Add" />
|
@@ -276,17 +276,17 @@
|
|
276
276
|
</todo-panel>
|
277
277
|
</component>
|
278
278
|
<component name="ToolWindowManager">
|
279
|
-
<frame x="-
|
279
|
+
<frame x="-1288" y="48" width="1296" height="1000" extended-state="6" />
|
280
280
|
<editor active="true" />
|
281
281
|
<layout>
|
282
|
-
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.
|
282
|
+
<window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.34675616" sideWeight="0.48220065" order="7" side_tool="false" content_ui="tabs" />
|
283
283
|
<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" />
|
284
284
|
<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" />
|
285
285
|
<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" />
|
286
286
|
<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="11" side_tool="false" content_ui="tabs" />
|
287
|
-
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.
|
287
|
+
<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" />
|
288
288
|
<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" />
|
289
|
-
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.
|
289
|
+
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.34675616" sideWeight="0.5177994" order="8" side_tool="true" content_ui="tabs" />
|
290
290
|
<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="9" side_tool="false" content_ui="tabs" />
|
291
291
|
<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" />
|
292
292
|
<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" />
|
@@ -524,14 +524,6 @@
|
|
524
524
|
</state>
|
525
525
|
</provider>
|
526
526
|
</entry>
|
527
|
-
<entry file="file://$PROJECT_DIR$/lib/piratebay_api.rb">
|
528
|
-
<provider selected="true" editor-type-id="text-editor">
|
529
|
-
<state vertical-scroll-proportion="0.0">
|
530
|
-
<caret line="28" column="23" selection-start-line="28" selection-start-column="23" selection-end-line="28" selection-end-column="23" />
|
531
|
-
<folding />
|
532
|
-
</state>
|
533
|
-
</provider>
|
534
|
-
</entry>
|
535
527
|
<entry file="file://$PROJECT_DIR$/lib/piratebay_api/details.rb">
|
536
528
|
<provider selected="true" editor-type-id="text-editor">
|
537
529
|
<state vertical-scroll-proportion="0.0">
|
@@ -559,14 +551,22 @@
|
|
559
551
|
<entry file="file://$PROJECT_DIR$/lib/piratebay_api/pirate_bay.rb">
|
560
552
|
<provider selected="true" editor-type-id="text-editor">
|
561
553
|
<state vertical-scroll-proportion="0.0">
|
562
|
-
<caret line="
|
554
|
+
<caret line="4" column="0" selection-start-line="4" selection-start-column="0" selection-end-line="4" selection-end-column="0" />
|
555
|
+
<folding />
|
556
|
+
</state>
|
557
|
+
</provider>
|
558
|
+
</entry>
|
559
|
+
<entry file="file://$PROJECT_DIR$/lib/piratebay_api.rb">
|
560
|
+
<provider selected="true" editor-type-id="text-editor">
|
561
|
+
<state vertical-scroll-proportion="0.0">
|
562
|
+
<caret line="30" column="59" selection-start-line="30" selection-start-column="59" selection-end-line="30" selection-end-column="59" />
|
563
563
|
<folding />
|
564
564
|
</state>
|
565
565
|
</provider>
|
566
566
|
</entry>
|
567
567
|
<entry file="file://$PROJECT_DIR$/lib/piratebay_api/version.rb">
|
568
568
|
<provider selected="true" editor-type-id="text-editor">
|
569
|
-
<state vertical-scroll-proportion="0.
|
569
|
+
<state vertical-scroll-proportion="0.03057554">
|
570
570
|
<caret line="1" column="18" selection-start-line="1" selection-start-column="18" selection-end-line="1" selection-end-column="18" />
|
571
571
|
<folding />
|
572
572
|
</state>
|
@@ -2,7 +2,7 @@ module PirateBay
|
|
2
2
|
class Search
|
3
3
|
attr_accessor :search_string, :category_id, :page, :caching, :results, :base_url
|
4
4
|
|
5
|
-
|
5
|
+
|
6
6
|
def initialize(search_string, category=0, url='https://thepiratebay.se')
|
7
7
|
@search_string = URI.encode(search_string)
|
8
8
|
@category_id = PirateBay::Categories::IDS[category.upcase.strip.gsub(/S$/, '').to_sym] unless category == 0
|