tvdb_party 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/tvdb_party/search.rb +5 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb2ae36b227bf05f24c91562bdc415f75aac8d49
4
- data.tar.gz: 3f619148a595165d5f5705946c125800fad7c224
3
+ metadata.gz: 63db05de5ea7ea40880e3975db3301f5d1d34ed4
4
+ data.tar.gz: 449a96dece4182b1ae20e20be585c0b411fd4ca0
5
5
  SHA512:
6
- metadata.gz: 102603e26cd7a83aa53c411f7d6b5ea1071ecdeacd4372302b5a31f39c4c883036812a12947144e28d9b068342590c28b9af9c1eca47ebd798b2a9a4ecc5bb79
7
- data.tar.gz: 99dad3f00e3a5edb73f88d70a7d29cd125f5977e29b24c1f2a6512b7041b93c7b556ef7d29670c9434a8b3672c5060f9c15ddca2d2ade6ab2a0e12f386d1276b
6
+ metadata.gz: bdfbc64868e000eed217efc3f01e983398dda44b002b1032c6880dbd38d876ebdfca2f09b37d7b51d60aee206638f215e696d787aa24d8ea13182b3c354dc5b8
7
+ data.tar.gz: 6527879891e2c08665fb3452d9c328e37eb5657c0c3debd99195a7867ebaddad103cac64b90422be4ec9678affb73f54c9354d8eceff8cbcfec554e746d3cc4e
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.1
1
+ 0.9.2
@@ -59,7 +59,11 @@ module TvdbParty
59
59
  end
60
60
 
61
61
  def get_all_episodes(series, language = self.language)
62
- response = self.class.get("/#{@api_key}/series/#{series.id}/all/#{language}.xml").parsed_response
62
+ get_episodes_for_series_id(series.id, language)
63
+ end
64
+
65
+ def get_episodes_for_series_id(series_id, language = self.language)
66
+ response = self.class.get("/#{@api_key}/series/#{series_id}/all/#{language}.xml").parsed_response
63
67
  return [] unless response["Data"] && response["Data"]["Episode"]
64
68
  case response["Data"]["Episode"]
65
69
  when Array
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tvdb_party
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Maddox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-15 00:00:00.000000000 Z
11
+ date: 2017-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thoughtbot-shoulda