piratebay_api 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d01b97ad5887fff53f885b7cd0e0027de0122bb6
4
- data.tar.gz: 128457182d11b6c50e87a7ad600c67a4fd0c33e8
3
+ metadata.gz: d52a44edcc4c271f0ef73c54c7fd63a6848682c7
4
+ data.tar.gz: 9d08e8647c16cb11d3eca416b6f58eae4562277a
5
5
  SHA512:
6
- metadata.gz: 87799623aded88c8e6458eda407b42506deae3cffe325cc74f9a4ccf0c01253caf7e1a97c0d3d9c78aaec2eee1645723d25640300bb2ffb90396158dc5e7ff5a
7
- data.tar.gz: 30f81a26bc96399e1d0145562f6a74f3cfaf96f7611b7767d3a17813850a925269658d5fc9c118f470d0844222b6e26db25bbba028f562ce075a6faefe1c30ab
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="22" column="0" selection-start-line="22" selection-start-column="0" selection-end-line="22" selection-end-column="0" />
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.027732464">
93
- <caret line="1" column="16" selection-start-line="1" selection-start-column="16" selection-end-line="1" selection-end-column="16" />
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="-8" />
135
- <option name="y" value="-8" />
136
- <option name="width" value="1936" />
137
- <option name="height" value="1056" />
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="-8" y="-8" width="1936" height="1056" extended-state="6" />
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.32597265" sideWeight="0.48507464" order="7" side_tool="false" content_ui="tabs" />
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.26066098" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
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.32597265" sideWeight="0.51492536" order="7" 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.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$/lib/piratebay_api/pirate_bay.rb">
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="22" column="0" selection-start-line="22" selection-start-column="0" selection-end-line="22" selection-end-column="0" />
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.gemspec">
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="8" column="31" selection-start-line="8" selection-start-column="31" selection-end-line="8" selection-end-column="31" />
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.027732464">
567
- <caret line="1" column="16" selection-start-line="1" selection-start-column="16" selection-end-line="1" selection-end-column="16" />
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
@@ -1,3 +1,3 @@
1
1
  class PiratebayApi
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: piratebay_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dani