brewer 0.1.2 → 0.1.3

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: 749168c8c1db7fa0905bea649bfeab99495b1d14
4
- data.tar.gz: 1452e8a6bf8c7a987ecbf14179776263e6f67fb2
3
+ metadata.gz: dcccf059d6566dde3876cb9d1869e280d446182d
4
+ data.tar.gz: 67d320ad0604bc1138367a0f58e5150941a83662
5
5
  SHA512:
6
- metadata.gz: 375199b1d4311bc70682718f7dc76bbd587511dc38e6f5b3346ec1692780f3c7ec8d582d1c64c13b31c96f67e89a9c15ac049dddef937d29d2311150967dbb87
7
- data.tar.gz: a66ef784129bb556be4e958d6c4648d37f6a4ab3c6503861261998dc9793c85076b9e0df28e5e96e0ee0c44fcbd6aba118a48ca290728c8073ae00fd8e79acf4
6
+ metadata.gz: d09e663ecc78adc4ce6c858c2c8af8eefa73772b2b08b47f4d7ab94e3c938189f8035b30bbaa71daba362dd778ce1bb4b6929f90ecacd5a46031fe21c3d0df8a
7
+ data.tar.gz: 686a6f129c7be200fa9f1728c3cac79bcbbf80570ed97755ebe5071fc849567a95f8fba4988d294149bead2fd0c9aa0de3d4b3a825a8c880426c94acef5a4346
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- brewer (0.1.1)
4
+ brewer (0.1.2)
5
5
  brewer-adaptibrew
6
6
  git (~> 1.3, >= 1.3.0)
7
7
  net-ping (~> 1.7)
@@ -56,7 +56,7 @@ module Brewer
56
56
  return script("set_pid_off")
57
57
  end
58
58
  end
59
-
59
+
60
60
  # This is for jake's js
61
61
  def pid_to_web
62
62
  return {
@@ -135,8 +135,6 @@ module Brewer
135
135
  return "off"
136
136
  end
137
137
  end
138
-
139
-
140
138
 
141
139
  # Returns the status of all relays
142
140
  def all_relays_status
@@ -159,13 +157,13 @@ module Brewer
159
157
 
160
158
  def relays_status_to_web
161
159
  statuses = relays_status
162
- return statuses.each { |_, v|
160
+ statuses.each do |k, v|
163
161
  if v == "on"
164
- v = 1
162
+ statuses[k] = 1
165
163
  else
166
- v = 0
164
+ statuses[k] = 0
167
165
  end
168
- }
166
+ end
169
167
  end
170
168
 
171
169
  # Give this a relay configuration hash and it will set the relays to that configuration
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brewer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke Sweeney