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 +4 -4
- data/.travis.yml +1 -1
- data/Gemfile.lock +1 -1
- data/README.md +9 -7
- data/lib/nasa-neo/version.rb +1 -1
- data/nasa-neo.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 65e17a8c2be717f59b6c88854c112d71aab1b2cfd48b9c8e1f48aaa8e9cf8e0e
|
|
4
|
+
data.tar.gz: 1576378bea0f10f63937351b6f6c5d9100bea8dc699261962524f9f6de4b835e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dc97e34b7ed99b54b1aaa703b90e8edd77cebeba771a94adbce5b834e9051e8ace5f36767439c768f86726327b21db6b2167e43a8066b62d0cfc0148a6b0c2b8
|
|
7
|
+
data.tar.gz: 043fd48d0d6e62b028042a7b6ba91ccd8815a756ebb90ffb86980b3574ddb0785597f7f2831a2baca41434c1b7ee914d2ece09d6c2b722f9468674633190b7cb
|
data/.travis.yml
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
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
|
|
113
|
+
Exceptions are returned as a hash
|
|
114
|
+
|
|
115
|
+
Example of wrong API key set:
|
|
114
116
|
```
|
|
115
|
-
client.
|
|
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
|
|
data/lib/nasa-neo/version.rb
CHANGED
data/nasa-neo.gemspec
CHANGED
|
@@ -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.
|
|
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. "
|