hiveline 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d4be34e7717f789bb3ca3d4a6dc1a95f07bc51c
4
- data.tar.gz: 93a2b5ff4240bbf56d461a654752aabc4be36dec
3
+ metadata.gz: 8fe530f7a8271b82f9ea3931ac6c09c648f5990b
4
+ data.tar.gz: 73d5b882c0957023eb2b0d3c2d49226bc1115a53
5
5
  SHA512:
6
- metadata.gz: 1156d81bf7996c7a605c858ca7ee4965e506aa067dbcbaffe1227a664cbfd4d73e5894be5d78375735d4ff8b93f0397151367b68c3cde8b6ac2f34f01bbed799
7
- data.tar.gz: a6f222d4d97ed8a5e3aa9278d4d23b0a3a4cfdef465047a58b88c354aa4ddb25e2e35bd0843ba02d3501bece4beba427c10726233e4d5c11dcba465513c46f4a
6
+ metadata.gz: a88ceae109b7436354fc433ad70177e4accded4b887266903bb2b656f53c2765ea9c5103778c165141d3cb1bf7547c90ffbbbde375fc946ee10dbcdd92ce2190
7
+ data.tar.gz: 9048d8a64e64966e538403cce56f7a6ed296188adc11887c874a5db7f024b07f20d0f53dd2723ce3ceb2ff539d3bfe7e2bff1c157a5eb79fc0e66c4bed611abb
@@ -64,7 +64,9 @@ def lookup_temperature(client)
64
64
  environment = client.get_temperature
65
65
  unless environment.nil?
66
66
  print "Inside Temperature: #{environment["inside"]}°C\n"
67
- print "Weather in #{environment["city"]}: #{environment['weather'].split('_').map{|e| e.capitalize}.join(" ")} (#{environment["outside"]}°C)\n"
67
+ if environment['weather'] && environment['outside']
68
+ print "Weather in #{environment["city"]}: #{environment['weather'].split('_').map{|e| e.capitalize}.join(" ")} (#{environment["outside"]}°C)\n"
69
+ end
68
70
  else
69
71
  unknown_error
70
72
  end
@@ -1,3 +1,3 @@
1
1
  module Hiveline
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiveline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Blanchard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-31 00:00:00.000000000 Z
11
+ date: 2015-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty