memo_rage 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Memo Rage #
2
2
 
3
- Memo rage is an api wrapper for the http://services.tvrage.com/
4
- The gem is created to fulfil the needs of the project http://watchmemo.com
3
+ An object-oriented Ruby wrapper for the TVRage API http://services.tvrage.com
5
4
 
6
5
  ## Installation ##
7
6
 
@@ -1,5 +1,6 @@
1
1
  module MemoRage
2
2
  class Episode < Node
3
+ attr_reader :id
3
4
  attr_reader :num
4
5
  attr_reader :season
5
6
  attr_reader :season_num
@@ -18,6 +18,7 @@ module MemoRage
18
18
  season.elements.each("episode") do |episode|
19
19
  episode = MemoRage::Parser::Entry.new(episode)
20
20
  episodes << MemoRage::Episode.new(
21
+ :id => episode.link.match(/[0-9]+$/).to_a.first.to_i,
21
22
  :num => episode.epnum,
22
23
  :season => season.attributes["no"].to_i,
23
24
  :season_num => episode.seasonnum,
@@ -1,3 +1,3 @@
1
1
  module MemoRage
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -8,7 +8,10 @@ describe MemoRage::Parser::EpisodeList do
8
8
  list = client.episode_list("2930")
9
9
  list.name.should == "Buffy the Vampire Slayer"
10
10
  list.seasons.should == 7
11
- list.episodes.last.season.should == 7
11
+ list.episodes.last.tap do |episode|
12
+ episode.id.should == 28220
13
+ episode.season.should == 7
14
+ end
12
15
  end
13
16
  end
14
17
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: memo_rage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-03-15 00:00:00.000000000Z
13
+ date: 2012-03-22 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: httpclient
@@ -166,7 +166,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
166
166
  version: '0'
167
167
  requirements: []
168
168
  rubyforge_project: memo_rage
169
- rubygems_version: 1.8.18
169
+ rubygems_version: 1.8.19
170
170
  signing_key:
171
171
  specification_version: 3
172
172
  summary: Ruby wrapper for the TVRage API