nasa_apod 1.0.3 → 1.0.4

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: 77f64569ecc39352b535f6f5f361becdc6d9c013
4
- data.tar.gz: 4b78c2d1f5c3a2ca25d98d607dd9bddf857481e0
3
+ metadata.gz: 6b58e0774136c271bb04189fc74ba690eda54a07
4
+ data.tar.gz: 6ceb8c4d189a9138d0f6e6dbd142484227c743a6
5
5
  SHA512:
6
- metadata.gz: d1fcb548af24930d3889190a9cc37d41f61ac0e10f708eea4ac10f8d640254ab64ac9e9007e2ee13c816f2cc2fd9cfb60b8e32cd2751a17de320f0ae637dd060
7
- data.tar.gz: b27503c074a2fae562cd955d0163d49137acc4d282c21c1d4e297e5e08ea487c29d8a092dc8c15658bc04bbeab73be8f8d456fa3066b1fd6e4ccb5f20e69396c
6
+ metadata.gz: 1fe2d863ca222cf546afff323901452673c1b7b7db485b0f8195ea9da8e86633c0ab0a46a8d589e878b1421ae6ea6f26a6842ded7e5c6aa8210a254cbe0dbc3c
7
+ data.tar.gz: c72daf331f6868705d1b189092fd62e03cae682cc30b1b2b99dbdc622e1b409207af770847065809366d85761a8378fddf5d93e37bbac3800d11226104dc18fb
@@ -66,7 +66,6 @@ module NasaApod
66
66
  private
67
67
 
68
68
  def handle_response(response)
69
- response["date"] = self.date
70
69
  if response["error"].nil?
71
70
  NasaApod::SearchResults.new(response)
72
71
  else
@@ -1,7 +1,7 @@
1
1
  module NasaApod
2
2
 
3
3
  class SearchResults
4
- attr_accessor :concepts, :url, :media_type, :title, :explanation, :hd_url, :date
4
+ attr_accessor :concepts, :url, :media_type, :title, :explanation, :hd_url, :date, :copyright
5
5
 
6
6
  def initialize(attributes={})
7
7
  @concepts = attributes["concepts"]
@@ -11,6 +11,7 @@ module NasaApod
11
11
  @title = attributes["title"]
12
12
  @hd_url = attributes["hdurl"]
13
13
  @date = attributes["date"]
14
+ @copyright = attributes["copyright"]
14
15
  end
15
16
  end
16
17
 
@@ -1,3 +1,3 @@
1
1
  module NasaApod
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
@@ -32,6 +32,11 @@ module NasaApod
32
32
  expect(results.date).to eq(Date.today.prev_day.to_s)
33
33
  end
34
34
 
35
+ it 'returns copyright' do
36
+ results = client.search(:date => Date.today.prev_day)
37
+ expect(results.copyright).to_not be(nil)
38
+ end
39
+
35
40
  it 'changes picture when date changes' do
36
41
  results = client.search(:date => Date.today.prev_day)
37
42
  yesterdays_title = results.title
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nasa_apod
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabe Dominguez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-14 00:00:00.000000000 Z
11
+ date: 2016-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler