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 +4 -4
- data/bin/hiveline +3 -1
- data/lib/hiveline/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fe530f7a8271b82f9ea3931ac6c09c648f5990b
|
4
|
+
data.tar.gz: 73d5b882c0957023eb2b0d3c2d49226bc1115a53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a88ceae109b7436354fc433ad70177e4accded4b887266903bb2b656f53c2765ea9c5103778c165141d3cb1bf7547c90ffbbbde375fc946ee10dbcdd92ce2190
|
7
|
+
data.tar.gz: 9048d8a64e64966e538403cce56f7a6ed296188adc11887c874a5db7f024b07f20d0f53dd2723ce3ceb2ff539d3bfe7e2bff1c157a5eb79fc0e66c4bed611abb
|
data/bin/hiveline
CHANGED
@@ -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
|
-
|
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
|
data/lib/hiveline/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2015-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|