spotlite 0.8.9 → 0.8.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e966ca60bb8bde30a0dc55d69bbb2b9fc8b6a04
4
- data.tar.gz: 05876aeca48ee0c0a44603128fa54aa4a2316729
3
+ metadata.gz: 9ca4bc6d6ba3308ab143409c55eb4eda9c2ab261
4
+ data.tar.gz: db8642b55306e663d9070086b2cada06c8b6080a
5
5
  SHA512:
6
- metadata.gz: 6ebb4fc73c70a17434c24329e4745f63eff42ca498cca61a88410868a0368d32c8f3310f556af712dc28221b8c88d1701f7df3f56799dfae7b22dee019e4e0a1
7
- data.tar.gz: e6ef5ddd24b683af81eb595a8f3114c1fbdf56fc451d5d1b4e450b36735890a4a26441670741a82d020ad394db295c02c590e2d165273a464070a6b64add0fe2
6
+ metadata.gz: 73251012c3b898aa44da63598d3155885db38c30cec3deff34ebc934fba0aa42e1c4b6787bc204dbb7e4deaf6d35c9e114ec79a1d9ca22a7d23e3fb455d9e444
7
+ data.tar.gz: 523434b48ec32720cd96e94ffa3b33fe0a960a984a381c9ee221754a7f903240f868d7cee5bb71135a59cd962a9c9cfc0f29e46886969cdf99067fb46f7f27f1
@@ -1,3 +1,7 @@
1
+ ## v0.8.10 25-Jun-2016
2
+
3
+ * Added `@response` to `Person` object when fetching data
4
+
1
5
  ## v0.8.9 08-Jun-2016
2
6
 
3
7
  * Added critic review source URL parsing
@@ -2,7 +2,7 @@ module Spotlite
2
2
 
3
3
  # Represents a person on IMDb.com
4
4
  class Person
5
- attr_accessor :imdb_id, :name, :url, :credits_category, :credits_text
5
+ attr_accessor :imdb_id, :name, :url, :credits_category, :credits_text, :response
6
6
 
7
7
  # Initialize a new person object by its IMDb ID as a string
8
8
  #
@@ -128,7 +128,8 @@ module Spotlite
128
128
  end
129
129
 
130
130
  def open_page(page = nil, query = {}) # :nodoc:
131
- Spotlite::Client.get("#{@url}#{page}", query: query)
131
+ response = Spotlite::Client.get("#{@url}#{page}", query: query)
132
+ @response = { code: response.code, message: response.message } and response
132
133
  end
133
134
  end
134
135
  end
@@ -1,3 +1,3 @@
1
1
  module Spotlite
2
- VERSION = '0.8.9'
2
+ VERSION = '0.8.10'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spotlite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.9
4
+ version: 0.8.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Pakk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-08 00:00:00.000000000 Z
11
+ date: 2016-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty