where_is_ISS 0.2.3 → 0.2.4

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: 52f06216af21c3e704dc1fa0372d5fd628d275170b4324b480e0f51bdbbdcf86
4
- data.tar.gz: 84d252f6337e47ffe0b3ee1765969883c0b33618d6546ae64abf73c96544c1f0
3
+ metadata.gz: eb92bd46f55701314aa967ea9baf507a557d578a4b3fd9fe8ae72d95702f54a6
4
+ data.tar.gz: f4c58b66440f1a7512f625d7c73ea841e2768ab6bd067229200f9f5763dc9d44
5
5
  SHA512:
6
- metadata.gz: d9ee61ca9726da70f603aa8ca3f4f7e1b8b9a7c969f0cf38eab87d5622c13973f514b4fa18ff5fde378af86c468fd7605bddbc018c3b305295f09bdbca5c224c
7
- data.tar.gz: c17d278768afd796fd5af35fedfaf95f4afc750eb93742807fc08e9778d4b47ec3f760fe35d0391c92fc28aea12cf70dd2cb11663e0c889608c3b385528ce850
6
+ metadata.gz: bac9567bcd0582427ffa353350b01740ec97a84c684b08d43a72ad8879337a02b310ec65b6e9dc706e129e5788269475301451d23e8ce3e5f026a9ef10ca0e3c
7
+ data.tar.gz: 41b967925d80bc77c8e6b4f5867bbacc4a785961f449142e40d04db7ed3b90cdec94bc39489aee5f69efc51a0692fb50de11afe78d8176fa28665f06c3e055d9
@@ -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
- puts @iss['timezone_id'] # put out the location
15
+ p @position = @iss['timezone_id'] # put out the location
16
+ return @position
16
17
  else
17
- puts("Currently ISS is over Water bodies(Coordinates works only on land)")
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
@@ -1,3 +1,3 @@
1
1
  module WhereIsISS
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
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.3
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-02 00:00:00.000000000 Z
11
+ date: 2018-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler