the_tvdb 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module TheTvdb
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
data/lib/the_tvdb.rb CHANGED
@@ -32,10 +32,11 @@ module TheTvdb
32
32
  if full_data
33
33
  result[:shows] = update_hash['Series'].map {|show_remote_id| Show.find(show_remote_id) }
34
34
  else
35
- result[:shows] = update_hash['Series']
35
+ result[:shows] = update_hash['Series'].map {|show_remote_id| show_remote_id.to_i }
36
36
  end
37
37
  end
38
38
  gateway.last_updated = result[:time]
39
+ p result
39
40
  result
40
41
  end
41
42
 
@@ -31,7 +31,7 @@ describe TheTvdb::Gateway do
31
31
  it "should return the ids of updated series" do
32
32
  result = TheTvdb.update(1356079970)
33
33
  result[:shows].should have(3).items
34
- result[:shows].first.should == '80367'
34
+ result[:shows].first.should == 80367
35
35
  gateway.last_updated.should == 1356080761
36
36
  end
37
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: the_tvdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-03 00:00:00.000000000 Z
12
+ date: 2013-01-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri