nasa-neo 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d6749856c50b68a044437d7856bd9208a14cee2fbdd4ed2f805717717398c77
4
- data.tar.gz: b6dcaf6cfa8d676f82819312083042666797b9220317349dcc128a27c055d6e2
3
+ metadata.gz: 65e17a8c2be717f59b6c88854c112d71aab1b2cfd48b9c8e1f48aaa8e9cf8e0e
4
+ data.tar.gz: 1576378bea0f10f63937351b6f6c5d9100bea8dc699261962524f9f6de4b835e
5
5
  SHA512:
6
- metadata.gz: 6038ebd2484f65899ab304af80e7c3b0ace6055b682a6ee4041859211c27ea643d79bbd5904d17bbda8ac1beed4b10856cf9115e1bb39b97e88c1539b1d68520
7
- data.tar.gz: 182729b529790cda7bb3e9e017f171459ac384ec2c9b018f055bca515800dc1de11917e26a87ecdb76e3c1c93c989d60ad283c8513c11cacb91617385ea0d4a1
6
+ metadata.gz: dc97e34b7ed99b54b1aaa703b90e8edd77cebeba771a94adbce5b834e9051e8ace5f36767439c768f86726327b21db6b2167e43a8066b62d0cfc0148a6b0c2b8
7
+ data.tar.gz: 043fd48d0d6e62b028042a7b6ba91ccd8815a756ebb90ffb86980b3574ddb0785597f7f2831a2baca41434c1b7ee914d2ece09d6c2b722f9468674633190b7cb
@@ -4,4 +4,4 @@ language: ruby
4
4
  cache: bundler
5
5
  rvm:
6
6
  - 2.6.1
7
- before_install: gem install bundler -v 1.17.2
7
+ before_install: gem install bundler -v 2.0.1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nasa-neo (1.1.1)
4
+ nasa-neo (1.1.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Nasa Near Earth Object API Wrapper
1
+ # NASA Near Earth Object API Wrapper
2
2
 
3
3
  Gives details on the closest Near Earth Object of the day.
4
4
 
@@ -36,11 +36,11 @@ Set the API key (only needs to be done is you want to use your own API key, defa
36
36
  client.key = "MyKey"
37
37
  ```
38
38
 
39
- Change the date (only needs to be done if you want to select another data, default setting is the current day)
39
+ Change the date (only needs to be done if you want to select another data, default setting is the current day. Format: YYYY-MM-DD)
40
40
  ```
41
41
  client.date = "2019-04-10"
42
42
  ```
43
- Please Note: The first request for information results in an API call, unless the date is changed no more API calls are made as the information of the closet near earth object is stored on the first request.
43
+ Please Note: The first request for information results in an API call, unless the date or API key is changed no more API calls are made as the information of the closet near earth object is stored on the first request.
44
44
 
45
45
  ### Retrieving Information
46
46
 
@@ -110,13 +110,15 @@ Example return:
110
110
 
111
111
  ### Exceptions
112
112
 
113
- Exceptions are returned as a hash (example of wrong date):
113
+ Exceptions are returned as a hash
114
+
115
+ Example of wrong API key set:
114
116
  ```
115
- client.date = "123"
117
+ client.key = "wrong API key"
116
118
  ```
117
- Returns:
119
+ Returns (on next API call method):
118
120
  ```
119
- {:error=>["400", ""]}
121
+ {:error=>["400", "Forbidden"]}
120
122
  ```
121
123
  If an error is returned the next method request for information will make an API call
122
124
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NasaNeo
4
- VERSION = "1.1.0".freeze
4
+ VERSION = "1.1.2".freeze
5
5
  end
@@ -4,7 +4,7 @@ require "nasa-neo/version"
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'nasa-neo'
7
- s.version = '1.1.1'
7
+ s.version = '1.1.2'
8
8
  s.date = '2019-04-09'
9
9
  s.summary = "This gem provides a simple wrapper for https://api.nasa.gov/api.html#NeoWS API"
10
10
  s.description = "Retrieve information about the closest near earth object on any given day using the NASA NEO API. "
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nasa-neo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Sutherland