torrent-finder 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +17 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +46 -0
  6. data/Rakefile +1 -0
  7. data/bin/torrent-finder +5 -0
  8. data/lib/torrent-finder.rb +7 -0
  9. data/lib/torrent-finder/adapters.rb +36 -0
  10. data/lib/torrent-finder/adapters/eztv_adapter.rb +44 -0
  11. data/lib/torrent-finder/adapters/popgo_adapter.rb +43 -0
  12. data/lib/torrent-finder/command.rb +43 -0
  13. data/lib/torrent-finder/torrent.rb +3 -0
  14. data/lib/torrent-finder/version.rb +5 -0
  15. data/spec/adapters/eztv_adapter_spec.rb +26 -0
  16. data/spec/adapters/popgo_adapter_spec.rb +30 -0
  17. data/spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_EztvAdapter/_list.yml +2026 -0
  18. data/spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_EztvAdapter/_list/should_list_first_page_of_torrent.yml +2026 -0
  19. data/spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_EztvAdapter/_search.yml +2026 -0
  20. data/spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_EztvAdapter/_search/should_search_torrent.yml +2026 -0
  21. data/spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_PopgoAdapter/_list.yml +1333 -0
  22. data/spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_PopgoAdapter/_list/should_list_first_page_of_torrent.yml +1333 -0
  23. data/spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_PopgoAdapter/_search.yml +1326 -0
  24. data/spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_PopgoAdapter/_search/should_search_torrent.yml +1326 -0
  25. data/spec/spec_helper.rb +10 -0
  26. data/torrent-finder.gemspec +31 -0
  27. metadata +221 -0
@@ -0,0 +1,10 @@
1
+ $LOAD_PATH << "lib"
2
+ require 'torrent-finder'
3
+ require 'vcr'
4
+ require 'pry'
5
+
6
+ VCR.configure do |c|
7
+ c.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
8
+ c.hook_into :webmock
9
+ c.configure_rspec_metadata!
10
+ end
@@ -0,0 +1,31 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'torrent-finder/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "torrent-finder"
8
+ spec.version = TorrentFinder::VERSION
9
+ spec.authors = ["Francis Chong"]
10
+ spec.email = ["francis@ignition.hk"]
11
+ spec.summary = %q{Extensible command line tool to search torrent.}
12
+ spec.homepage = "https://github.com/siuying/torrent-finder"
13
+ spec.license = "MIT"
14
+
15
+ spec.files = `git ls-files -z`.split("\x0")
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ["lib"]
19
+
20
+ spec.add_development_dependency "bundler", "~> 1.5"
21
+ spec.add_development_dependency "rake"
22
+ spec.add_development_dependency "pry"
23
+ spec.add_development_dependency "rspec"
24
+ spec.add_development_dependency "vcr"
25
+ spec.add_development_dependency "webmock"
26
+
27
+ spec.add_dependency "mechanize"
28
+ spec.add_dependency "claide"
29
+ spec.add_dependency "nokogiri"
30
+ spec.add_dependency "httparty"
31
+ end
metadata ADDED
@@ -0,0 +1,221 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: torrent-finder
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Francis Chong
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-03-17 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.5'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: vcr
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: webmock
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: mechanize
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: claide
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: nokogiri
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: httparty
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description:
154
+ email:
155
+ - francis@ignition.hk
156
+ executables:
157
+ - torrent-finder
158
+ extensions: []
159
+ extra_rdoc_files: []
160
+ files:
161
+ - ".gitignore"
162
+ - Gemfile
163
+ - LICENSE.txt
164
+ - README.md
165
+ - Rakefile
166
+ - bin/torrent-finder
167
+ - lib/torrent-finder.rb
168
+ - lib/torrent-finder/adapters.rb
169
+ - lib/torrent-finder/adapters/eztv_adapter.rb
170
+ - lib/torrent-finder/adapters/popgo_adapter.rb
171
+ - lib/torrent-finder/command.rb
172
+ - lib/torrent-finder/torrent.rb
173
+ - lib/torrent-finder/version.rb
174
+ - spec/adapters/eztv_adapter_spec.rb
175
+ - spec/adapters/popgo_adapter_spec.rb
176
+ - spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_EztvAdapter/_list.yml
177
+ - spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_EztvAdapter/_list/should_list_first_page_of_torrent.yml
178
+ - spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_EztvAdapter/_search.yml
179
+ - spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_EztvAdapter/_search/should_search_torrent.yml
180
+ - spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_PopgoAdapter/_list.yml
181
+ - spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_PopgoAdapter/_list/should_list_first_page_of_torrent.yml
182
+ - spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_PopgoAdapter/_search.yml
183
+ - spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_PopgoAdapter/_search/should_search_torrent.yml
184
+ - spec/spec_helper.rb
185
+ - torrent-finder.gemspec
186
+ homepage: https://github.com/siuying/torrent-finder
187
+ licenses:
188
+ - MIT
189
+ metadata: {}
190
+ post_install_message:
191
+ rdoc_options: []
192
+ require_paths:
193
+ - lib
194
+ required_ruby_version: !ruby/object:Gem::Requirement
195
+ requirements:
196
+ - - ">="
197
+ - !ruby/object:Gem::Version
198
+ version: '0'
199
+ required_rubygems_version: !ruby/object:Gem::Requirement
200
+ requirements:
201
+ - - ">="
202
+ - !ruby/object:Gem::Version
203
+ version: '0'
204
+ requirements: []
205
+ rubyforge_project:
206
+ rubygems_version: 2.2.2
207
+ signing_key:
208
+ specification_version: 4
209
+ summary: Extensible command line tool to search torrent.
210
+ test_files:
211
+ - spec/adapters/eztv_adapter_spec.rb
212
+ - spec/adapters/popgo_adapter_spec.rb
213
+ - spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_EztvAdapter/_list.yml
214
+ - spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_EztvAdapter/_list/should_list_first_page_of_torrent.yml
215
+ - spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_EztvAdapter/_search.yml
216
+ - spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_EztvAdapter/_search/should_search_torrent.yml
217
+ - spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_PopgoAdapter/_list.yml
218
+ - spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_PopgoAdapter/_list/should_list_first_page_of_torrent.yml
219
+ - spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_PopgoAdapter/_search.yml
220
+ - spec/fixtures/vcr_cassettes/TorrentFinder_Adapters_PopgoAdapter/_search/should_search_torrent.yml
221
+ - spec/spec_helper.rb