nasa-neo 1.1.0 → 1.1.1
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/Gemfile.lock +1 -1
- data/README.md +12 -12
- 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: 4d6749856c50b68a044437d7856bd9208a14cee2fbdd4ed2f805717717398c77
|
|
4
|
+
data.tar.gz: b6dcaf6cfa8d676f82819312083042666797b9220317349dcc128a27c055d6e2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6038ebd2484f65899ab304af80e7c3b0ace6055b682a6ee4041859211c27ea643d79bbd5904d17bbda8ac1beed4b10856cf9115e1bb39b97e88c1539b1d68520
|
|
7
|
+
data.tar.gz: 182729b529790cda7bb3e9e017f171459ac384ec2c9b018f055bca515800dc1de11917e26a87ecdb76e3c1c93c989d60ad283c8513c11cacb91617385ea0d4a1
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -44,66 +44,66 @@ Please Note: The first request for information results in an API call, unless th
|
|
|
44
44
|
|
|
45
45
|
### Retrieving Information
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
#### Given name
|
|
48
48
|
|
|
49
49
|
```
|
|
50
50
|
client.neo_name
|
|
51
51
|
```
|
|
52
|
-
|
|
52
|
+
Example return:
|
|
53
53
|
```
|
|
54
54
|
"(2004 VB)"
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
#### Potential hazardousness boolean
|
|
59
59
|
```
|
|
60
60
|
client.hazardous?
|
|
61
61
|
```
|
|
62
|
-
|
|
62
|
+
Example return (hopefully):
|
|
63
63
|
```
|
|
64
64
|
false
|
|
65
65
|
```
|
|
66
66
|
|
|
67
|
-
|
|
67
|
+
#### Estimated diameter
|
|
68
68
|
|
|
69
69
|
```
|
|
70
70
|
client.estimated_diameter
|
|
71
71
|
```
|
|
72
|
-
|
|
72
|
+
Example return:
|
|
73
73
|
```
|
|
74
74
|
{"kilometers"=>{"estimated_diameter_min"=>0.1838886721, "estimated_diameter_max"=>0.411187571}, "meters"=>{"estimated_diameter_min"=>183.8886720703, "estimated_diameter_max"=>411.1875710413}, "miles"=>{"estimated_diameter_min"=>0.1142630881, "estimated_diameter_max"=>0.2555000322}, "feet"=>{"estimated_diameter_min"=>603.309310875, "estimated_diameter_max"=>1349.040630575}}
|
|
75
75
|
```
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
#### Miss distance to earth
|
|
79
79
|
|
|
80
80
|
```
|
|
81
81
|
client.miss_distance
|
|
82
82
|
```
|
|
83
|
-
|
|
83
|
+
Example return:
|
|
84
84
|
```
|
|
85
85
|
{"astronomical"=>"0.1915058335", "lunar"=>"74.4957733154", "kilometers"=>"28648866", "miles"=>"17801580"}
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
#### Velocity
|
|
90
90
|
|
|
91
91
|
```
|
|
92
92
|
client.velocity
|
|
93
93
|
```
|
|
94
|
-
|
|
94
|
+
Example return:
|
|
95
95
|
```
|
|
96
96
|
{"kilometers_per_second"=>"14.488889894", "kilometers_per_hour"=>"52160.0036184644", "miles_per_hour"=>"32410.1978039286"}
|
|
97
97
|
```
|
|
98
98
|
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
#### All data on closest object
|
|
101
101
|
|
|
102
102
|
```
|
|
103
103
|
client.neo_data
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
-
|
|
106
|
+
Example return:
|
|
107
107
|
```
|
|
108
108
|
{"links"=>{"self"=>"https://api.nasa.gov/neo/rest/v1/neo/3840869?api_key=DEMO_KEY"}, "id"=>"3840869", "neo_reference_id"=>"3840869", "name"=>"(2019 GK4)", "nasa_jpl_url"=>"http://ssd.jpl.nasa.gov/sbdb.cgi?sstr=3840869", "absolute_magnitude_h"=>23.83, "estimated_diameter"=>{"kilometers"=>{"estimated_diameter_min"=>0.0455569852, "estimated_diameter_max"=>0.1018685158}, "meters"=>{"estimated_diameter_min"=>45.5569852336, "estimated_diameter_max"=>101.8685158322}, "miles"=>{"estimated_diameter_min"=>0.0283077895, "estimated_diameter_max"=>0.0632981416}, "feet"=>{"estimated_diameter_min"=>149.4651794337, "estimated_diameter_max"=>334.214301483}}, "is_potentially_hazardous_asteroid"=>false, "close_approach_data"=>[{"close_approach_date"=>"2019-04-10", "epoch_date_close_approach"=>1554879600000, "relative_velocity"=>{"kilometers_per_second"=>"14.9701946153", "kilometers_per_hour"=>"53892.7006150984", "miles_per_hour"=>"33486.828334976"}, "miss_distance"=>{"astronomical"=>"0.089370038", "lunar"=>"34.7649421692", "kilometers"=>"13369567", "miles"=>"8307464"}, "orbiting_body"=>"Earth"}], "is_sentry_object"=>false}
|
|
109
109
|
```
|
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.1'
|
|
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. "
|