torrent_api 0.2.7 → 0.2.8

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.
data/CHANGELOG CHANGED
@@ -12,4 +12,5 @@
12
12
  v0.2.4 Fixed an issue with bad filename creation in caching
13
13
  v0.2.5 Seriously, fixed a fix.
14
14
  v0.2.6 Now uses the .se TLD
15
- v0.2.7 We still have torrent support after piratebay took it away. (Thanks rylwin)
15
+ v0.2.7 We still have torrent support after piratebay took it away. (Thanks rylwin)
16
+ v0.2.8 Fix to avoid pirate bay's advertisements
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'echoe'
2
- Echoe.new('torrent_api', '0.2.7') do |p|
2
+ Echoe.new('torrent_api', '0.2.8') do |p|
3
3
  p.description = "An API to query popular torrent websites"
4
4
  p.url = "http://www.github.com/hjhart/torrent_api"
5
5
  p.author = "James Hart"
@@ -92,7 +92,8 @@ module PirateBay
92
92
  end
93
93
 
94
94
  doc.css("#searchResult tr").each_with_index do |row, index|
95
- next if index == 0
95
+ next if (index == 0)
96
+ next if (row.css("td").size <= 1)
96
97
  result = PirateBay::Result.new(row)
97
98
  @results << result
98
99
  end
data/torrent_api.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{torrent_api}
5
- s.version = "0.2.7"
5
+ s.version = "0.2.8"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["James Hart"]
9
- s.date = %q{2012-04-07}
9
+ s.date = %q{2012-11-20}
10
10
  s.description = %q{An API to query popular torrent websites}
11
11
  s.email = %q{hjhart@gmail.com}
12
12
  s.extra_rdoc_files = ["CHANGELOG", "README.markdown", "lib/demonoid/base.rb", "lib/demonoid/result.rb", "lib/demonoid/result_set.rb", "lib/pirate_bay/base.rb", "lib/pirate_bay/categories.rb", "lib/pirate_bay/details.rb", "lib/pirate_bay/result.rb", "lib/pirate_bay/result_set.rb", "lib/torrent_api.rb", "lib/torrent_reactor/base.rb", "lib/torrent_reactor/result.rb", "lib/torrent_reactor/result_set.rb"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: torrent_api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 7
10
- version: 0.2.7
9
+ - 8
10
+ version: 0.2.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - James Hart
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-04-07 00:00:00 Z
18
+ date: 2012-11-20 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: nokogiri