torrent_api 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -2,4 +2,5 @@
2
2
  v0.0.2 dependencies additions/removals, beginning of a readme
3
3
  v0.0.3 fixed minor issue with 0.0.2
4
4
  v0.0.9 Migrated from tpb to torrent_api (now includes torrent_reactor and demonoid as searches)
5
- v0.1.0 Fixed Demonoid. Stable performance on :all and :demonoid.
5
+ v0.1.0 Fixed Demonoid. Stable performance on :all and :demonoid.
6
+ v0.1.1 Fixed Demonoid torrent links to be absolute, not relative.
data/Rakefile CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'echoe'
2
- Echoe.new('torrent_api', '0.1.0') do |p|
2
+ Echoe.new('torrent_api', '0.1.1') 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"
@@ -5,8 +5,9 @@ module Demonoid
5
5
  def initialize(row = [])
6
6
  self.name = row[0].search('td')[1].search('a').inner_html
7
7
  self.detail_link = row[0].search('td')[1].search('a').first.get_attribute('href')
8
- self.link = row[1].search('td')[2].search('a').first.get_attribute('href')
9
- self.magnet_link = row[1].search('td')[2].search('a')[1].get_attribute('href')
8
+ base_url = "http://www.demonoid.me"
9
+ self.link = base_url + row[1].search('td')[2].search('a').first.get_attribute('href')
10
+ self.magnet_link = base_url + row[1].search('td')[2].search('a')[1].get_attribute('href')
10
11
  self.seeds = row[1].search('td')[6].search('font').inner_html.to_i
11
12
  self.leeches = row[1].search('td')[7].search('font').inner_html.to_i
12
13
 
data/torrent_api.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{torrent_api}
5
- s.version = "0.1.0"
5
+ s.version = "0.1.1"
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"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - James Hart