where_is_ISS 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/where_is_ISS.rb +4 -2
- data/lib/where_is_ISS/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb92bd46f55701314aa967ea9baf507a557d578a4b3fd9fe8ae72d95702f54a6
|
4
|
+
data.tar.gz: f4c58b66440f1a7512f625d7c73ea841e2768ab6bd067229200f9f5763dc9d44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bac9567bcd0582427ffa353350b01740ec97a84c684b08d43a72ad8879337a02b310ec65b6e9dc706e129e5788269475301451d23e8ce3e5f026a9ef10ca0e3c
|
7
|
+
data.tar.gz: 41b967925d80bc77c8e6b4f5867bbacc4a785961f449142e40d04db7ed3b90cdec94bc39489aee5f69efc51a0692fb50de11afe78d8176fa28665f06c3e055d9
|
data/lib/where_is_ISS.rb
CHANGED
@@ -12,9 +12,11 @@ class Iss
|
|
12
12
|
response = Net::HTTP.get_response(URI.parse("https://api.wheretheiss.at/v1/coordinates/#{@lat},#{@long}")) # Checking for 200 OK response from Server
|
13
13
|
if (response.code).to_i == 200
|
14
14
|
@iss = JSON[open("https://api.wheretheiss.at/v1/coordinates/#{@lat},#{@long}").read] # Print out data if status = 200 OK
|
15
|
-
|
15
|
+
p @position = @iss['timezone_id'] # put out the location
|
16
|
+
return @position
|
16
17
|
else
|
17
|
-
|
18
|
+
p @default = "Currently ISS is over Water bodies(Coordinates works only on land)"
|
19
|
+
return @default
|
18
20
|
end
|
19
21
|
|
20
22
|
def self.coordinates
|
data/lib/where_is_ISS/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: where_is_ISS
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manoj Naidu
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|