where_is_ISS 0.2.2 → 0.2.3

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: f6205e8449b500279cf457107a11bccf4aab32726178a3f9b1d2368a3514dd7b
4
- data.tar.gz: f2d56b8ef9c3df45ad3d07e64369042bf31fc57c84f55984bab82eae2fedd02c
3
+ metadata.gz: 52f06216af21c3e704dc1fa0372d5fd628d275170b4324b480e0f51bdbbdcf86
4
+ data.tar.gz: 84d252f6337e47ffe0b3ee1765969883c0b33618d6546ae64abf73c96544c1f0
5
5
  SHA512:
6
- metadata.gz: 06da3d8b8465e6e834fe2babfb738b995c2d95ed75de712ee42b0d508148ee236fa6ade45f825b8e735a3f4701627b2da7b9626da54d575fd19c220ca0761868
7
- data.tar.gz: 703044884071d0c5e6bc1c0a9f417d9ac6ad0df63107143945d91e1abd1524872971892701079c8dae4347d4b87fd18bc8eb30b59c5f21140dbe603854703131
6
+ metadata.gz: d9ee61ca9726da70f603aa8ca3f4f7e1b8b9a7c969f0cf38eab87d5622c13973f514b4fa18ff5fde378af86c468fd7605bddbc018c3b305295f09bdbca5c224c
7
+ data.tar.gz: c17d278768afd796fd5af35fedfaf95f4afc750eb93742807fc08e9778d4b47ec3f760fe35d0391c92fc28aea12cf70dd2cb11663e0c889608c3b385528ce850
@@ -1,3 +1,3 @@
1
1
  module WhereIsISS
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
data/lib/where_is_ISS.rb CHANGED
@@ -11,8 +11,8 @@ class Iss
11
11
  @long = @data['longitude'] # getting longtitude from parsed response
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
- 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
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
16
16
  else
17
17
  puts("Currently ISS is over Water bodies(Coordinates works only on land)")
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: where_is_ISS
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manoj Naidu