mios 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/lib/mios/device.rb +11 -3
- data/lib/mios/interface.rb +0 -1
- data/lib/mios/services/dimmable_light1.rb +1 -1
- data/lib/mios/services/energy_metering1.rb +9 -1
- data/lib/mios/services/hvac_fan_operating_mode1.rb +13 -0
- data/lib/mios/services/hvac_operating_state1.rb +13 -0
- data/lib/mios/services/hvac_user_operating_mode1.rb +13 -0
- data/lib/mios/services/temperature_setpoint1_cool.rb +13 -0
- data/lib/mios/services/temperature_setpoint1_heat.rb +13 -0
- data/lib/mios/version.rb +1 -1
- data/mios.gemspec +5 -1
- data/spec/lib/mios/device_spec.rb +10 -0
- data/spec/lib/mios/interface_spec.rb +11 -0
- data/spec/lib/mios/services/energy_metering1_spec.rb +26 -0
- data/spec/lib/mios/services/hvac_fan_operating_mode1_spec.rb +13 -0
- data/spec/lib/mios/services/hvac_operating_state1_spec.rb +13 -0
- data/spec/lib/mios/services/hvac_user_operating_mode1_spec.rb +13 -0
- data/spec/lib/mios/services/temperature_setpoint1_cool_spec.rb +13 -0
- data/spec/lib/mios/services/temperature_setpoint1_heat_spec.rb +13 -0
- data/spec/spec_helper.rb +23 -0
- data/spec/support/device_data/echo-energy-manager.json +84 -0
- data/spec/support/device_data/power-meter.json +84 -0
- data/spec/support/device_data/thermostat.json +271 -0
- data/spec/support/vcr_cassettes/data_request.yml +2241 -0
- metadata +89 -6
- data/spec/random_spec.rb +0 -8
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mios
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 3
|
9
9
|
- 0
|
10
|
-
version: 0.
|
10
|
+
version: 0.3.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kelley Reynolds
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2014-03-17 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -112,6 +112,62 @@ dependencies:
|
|
112
112
|
version: 0.7.2
|
113
113
|
type: :development
|
114
114
|
version_requirements: *id006
|
115
|
+
- !ruby/object:Gem::Dependency
|
116
|
+
name: pry
|
117
|
+
prerelease: false
|
118
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
119
|
+
none: false
|
120
|
+
requirements:
|
121
|
+
- - ">="
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
hash: 3
|
124
|
+
segments:
|
125
|
+
- 0
|
126
|
+
version: "0"
|
127
|
+
type: :development
|
128
|
+
version_requirements: *id007
|
129
|
+
- !ruby/object:Gem::Dependency
|
130
|
+
name: vcr
|
131
|
+
prerelease: false
|
132
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
133
|
+
none: false
|
134
|
+
requirements:
|
135
|
+
- - ">="
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
hash: 3
|
138
|
+
segments:
|
139
|
+
- 0
|
140
|
+
version: "0"
|
141
|
+
type: :development
|
142
|
+
version_requirements: *id008
|
143
|
+
- !ruby/object:Gem::Dependency
|
144
|
+
name: webmock
|
145
|
+
prerelease: false
|
146
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
147
|
+
none: false
|
148
|
+
requirements:
|
149
|
+
- - ">="
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
hash: 3
|
152
|
+
segments:
|
153
|
+
- 0
|
154
|
+
version: "0"
|
155
|
+
type: :development
|
156
|
+
version_requirements: *id009
|
157
|
+
- !ruby/object:Gem::Dependency
|
158
|
+
name: simplecov
|
159
|
+
prerelease: false
|
160
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
162
|
+
requirements:
|
163
|
+
- - ">="
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
hash: 3
|
166
|
+
segments:
|
167
|
+
- 0
|
168
|
+
version: "0"
|
169
|
+
type: :development
|
170
|
+
version_requirements: *id010
|
115
171
|
description: Object-oriented interactions with MiOS from MiCasaVerde
|
116
172
|
email:
|
117
173
|
- kelley.reynolds@rubyscale.com
|
@@ -139,18 +195,34 @@ files:
|
|
139
195
|
- lib/mios/services/generic_sensor1.rb
|
140
196
|
- lib/mios/services/ha_device1.rb
|
141
197
|
- lib/mios/services/humidity_sensor1.rb
|
198
|
+
- lib/mios/services/hvac_fan_operating_mode1.rb
|
199
|
+
- lib/mios/services/hvac_operating_state1.rb
|
200
|
+
- lib/mios/services/hvac_user_operating_mode1.rb
|
142
201
|
- lib/mios/services/light_sensor1.rb
|
143
202
|
- lib/mios/services/scene_controller1.rb
|
144
203
|
- lib/mios/services/security_sensor1.rb
|
145
204
|
- lib/mios/services/switch_power1.rb
|
146
205
|
- lib/mios/services/temperature_sensor1.rb
|
206
|
+
- lib/mios/services/temperature_setpoint1_cool.rb
|
207
|
+
- lib/mios/services/temperature_setpoint1_heat.rb
|
147
208
|
- lib/mios/services/window_covering1.rb
|
148
209
|
- lib/mios/services/zwave_device1.rb
|
149
210
|
- lib/mios/services/zwave_network1.rb
|
150
211
|
- lib/mios/version.rb
|
151
212
|
- mios.gemspec
|
152
|
-
- spec/
|
213
|
+
- spec/lib/mios/device_spec.rb
|
214
|
+
- spec/lib/mios/interface_spec.rb
|
215
|
+
- spec/lib/mios/services/energy_metering1_spec.rb
|
216
|
+
- spec/lib/mios/services/hvac_fan_operating_mode1_spec.rb
|
217
|
+
- spec/lib/mios/services/hvac_operating_state1_spec.rb
|
218
|
+
- spec/lib/mios/services/hvac_user_operating_mode1_spec.rb
|
219
|
+
- spec/lib/mios/services/temperature_setpoint1_cool_spec.rb
|
220
|
+
- spec/lib/mios/services/temperature_setpoint1_heat_spec.rb
|
153
221
|
- spec/spec_helper.rb
|
222
|
+
- spec/support/device_data/echo-energy-manager.json
|
223
|
+
- spec/support/device_data/power-meter.json
|
224
|
+
- spec/support/device_data/thermostat.json
|
225
|
+
- spec/support/vcr_cassettes/data_request.yml
|
154
226
|
has_rdoc: true
|
155
227
|
homepage: ""
|
156
228
|
licenses: []
|
@@ -186,5 +258,16 @@ signing_key:
|
|
186
258
|
specification_version: 3
|
187
259
|
summary: Object-oriented interactions with MiOS from MiCasaVerde
|
188
260
|
test_files:
|
189
|
-
- spec/
|
261
|
+
- spec/lib/mios/device_spec.rb
|
262
|
+
- spec/lib/mios/interface_spec.rb
|
263
|
+
- spec/lib/mios/services/energy_metering1_spec.rb
|
264
|
+
- spec/lib/mios/services/hvac_fan_operating_mode1_spec.rb
|
265
|
+
- spec/lib/mios/services/hvac_operating_state1_spec.rb
|
266
|
+
- spec/lib/mios/services/hvac_user_operating_mode1_spec.rb
|
267
|
+
- spec/lib/mios/services/temperature_setpoint1_cool_spec.rb
|
268
|
+
- spec/lib/mios/services/temperature_setpoint1_heat_spec.rb
|
190
269
|
- spec/spec_helper.rb
|
270
|
+
- spec/support/device_data/echo-energy-manager.json
|
271
|
+
- spec/support/device_data/power-meter.json
|
272
|
+
- spec/support/device_data/thermostat.json
|
273
|
+
- spec/support/vcr_cassettes/data_request.yml
|