wemo_switch 0.0.1

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a341e67733e5e02216ab3bda6ed9ca796a9e99c9
4
+ data.tar.gz: bbcab32d1dbc9035ae77b4bb55d410ad49d5e76a
5
+ SHA512:
6
+ metadata.gz: 1599035a437c2addddcc3567fda27cb9fb3632f9b58c7a172736d9be5717b03f13df515b531f5117b94526329fddf41dd18eaf685a0b8e2bb0b37d1748cbfd85
7
+ data.tar.gz: ad17915b9f03e1997bd2016d1913a800ffdfb1cc383d44a6619208cda50b3a840859d20a43cd09b3fa42b2e5351613c18d1a06a8fa518ec2cde883a7d87eef30
@@ -0,0 +1,22 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ *.bundle
19
+ *.so
20
+ *.o
21
+ *.a
22
+ mkmf.log
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in wemo.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 katelyn
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,40 @@
1
+ # Wemo
2
+
3
+ This gem can be used to control wemo switch devices to control power outlets
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'wemo'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install wemo
18
+
19
+ ## Usage
20
+
21
+ ```
22
+ wemo = Wemo.new("192.168.1.150") # Or any ip that the light controls
23
+ wemo.get_state # true if it's powered on, false if it's off
24
+ wemo.toggle_state # will turn the outlet on if it's currently off, and vice versa
25
+ ```
26
+
27
+ ## Running Tests
28
+ The test suite assumes there is a wemo endpoint active on the curent network at `192.168.1.150` and will actively switch that endpoint on and off for integration tests. You can override this by setting the `WEMO_ENDPOINT` env variable to a different value like so:
29
+
30
+ ```
31
+ WEMO_ENDPOINT=192.168.1.255 rake
32
+ ```
33
+
34
+ ## Contributing
35
+
36
+ 1. Fork it ( https://github.com/[my-github-username]/wemo/fork )
37
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
38
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
39
+ 4. Push to the branch (`git push origin my-new-feature`)
40
+ 5. Create a new Pull Request
@@ -0,0 +1,5 @@
1
+ require "bundler/gem_tasks"
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+ task :default => :spec
@@ -0,0 +1,275 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
3
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
4
+ xmlns:u="urn:Belkin:service:basicevent:1">
5
+
6
+ <wsdl:types>
7
+ <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:Belkin:service:basicevent:1">
8
+ <xsd:element name="SetBinaryState">
9
+ <xsd:complexType>
10
+ <xsd:all>
11
+ <xsd:element name="BinaryState" type="xsd:string" />
12
+ </xsd:all>
13
+ </xsd:complexType>
14
+ </xsd:element>
15
+ <xsd:element name="SetBinaryStateResponse">
16
+ <xsd:complexType>
17
+ <xsd:all>
18
+ <xsd:element name="BinaryState" type="xsd:string" />
19
+ </xsd:all>
20
+ </xsd:complexType>
21
+ </xsd:element>
22
+ <xsd:element name="GetBinaryState">
23
+ <xsd:complexType>
24
+ <xsd:sequence/>
25
+ </xsd:complexType>
26
+ </xsd:element>
27
+ <xsd:element name="GetBinaryStateResponse">
28
+ <xsd:complexType>
29
+ <xsd:all>
30
+ <xsd:element name="BinaryState" type="xsd:string" />
31
+ </xsd:all>
32
+ </xsd:complexType>
33
+ </xsd:element>
34
+ <xsd:element name="GetFriendlyName">
35
+ <xsd:complexType>
36
+ <xsd:sequence/>
37
+ </xsd:complexType>
38
+ </xsd:element>
39
+ <xsd:element name="GetFriendlyNameResponse">
40
+ <xsd:complexType>
41
+ <xsd:all>
42
+ <xsd:element name="FriendlyName" type="xsd:string" />
43
+ </xsd:all>
44
+ </xsd:complexType>
45
+ </xsd:element>
46
+ <xsd:element name="GetHomeId">
47
+ <xsd:complexType>
48
+ <xsd:sequence/>
49
+ </xsd:complexType>
50
+ </xsd:element>
51
+ <xsd:element name="GetHomeIdResponse">
52
+ <xsd:complexType>
53
+ <xsd:all>
54
+ <xsd:element name="HomeId" type="xsd:string" />
55
+ </xsd:all>
56
+ </xsd:complexType>
57
+ </xsd:element>
58
+ <xsd:element name="GetSignalStrength">
59
+ <xsd:complexType>
60
+ <xsd:sequence/>
61
+ </xsd:complexType>
62
+ </xsd:element>
63
+ <xsd:element name="GetSignalStrengthResponse">
64
+ <xsd:complexType>
65
+ <xsd:all>
66
+ <xsd:element name="SignalStrength" type="xsd:string" />
67
+ </xsd:all>
68
+ </xsd:complexType>
69
+ </xsd:element>
70
+ <xsd:element name="GetLogFileURL">
71
+ <xsd:complexType>
72
+ <xsd:sequence/>
73
+ </xsd:complexType>
74
+ </xsd:element>
75
+ <xsd:element name="GetLogFileURLResponse">
76
+ <xsd:complexType>
77
+ <xsd:all>
78
+ <xsd:element name="LOGURL" type="xsd:string" />
79
+ </xsd:all>
80
+ </xsd:complexType>
81
+ </xsd:element>
82
+ <xsd:element name="GetIconURL">
83
+ <xsd:complexType>
84
+ <xsd:sequence/>
85
+ </xsd:complexType>
86
+ </xsd:element>
87
+ <xsd:element name="GetIconURLResponse">
88
+ <xsd:complexType>
89
+ <xsd:all>
90
+ <xsd:element name="URL" type="xsd:string" />
91
+ </xsd:all>
92
+ </xsd:complexType>
93
+ </xsd:element>
94
+ <xsd:element name="ChangeFriendlyName">
95
+ <xsd:complexType>
96
+ <xsd:all>
97
+ <xsd:element name="FriendlyName" type="xsd:string" />
98
+ </xsd:all>
99
+ </xsd:complexType>
100
+ </xsd:element>
101
+ <xsd:element name="ChangeFriendlyNameResponse">
102
+ <xsd:complexType>
103
+ <xsd:sequence />
104
+ </xsd:complexType>
105
+ </xsd:element>
106
+ </xsd:schema>
107
+ </wsdl:types>
108
+
109
+ <wsdl:message name="SetBinaryStateInputMessage">
110
+ <wsdl:part name="SetBinaryStateInputPart" element="u:SetBinaryState"/>
111
+ </wsdl:message>
112
+ <wsdl:message name="SetBinaryStateOutputMessage">
113
+ <wsdl:part name="SetBinaryStateOutputPart" element="u:SetBinaryStateResponse"/>
114
+ </wsdl:message>
115
+
116
+ <wsdl:message name="GetBinaryStateInputMessage">
117
+ <wsdl:part name="GetBinaryStateInputPart" element="u:GetBinaryState"/>
118
+ </wsdl:message>
119
+ <wsdl:message name="GetBinaryStateOutputMessage">
120
+ <wsdl:part name="GetBinaryStateOutputPart" element="u:GetBinaryStateResponse"/>
121
+ </wsdl:message>
122
+
123
+ <wsdl:message name="GetFriendlyNameInputMessage">
124
+ <wsdl:part name="GetFriendlyNameInputPart" element="u:GetFriendlyName"/>
125
+ </wsdl:message>
126
+ <wsdl:message name="GetFriendlyNameOutputMessage">
127
+ <wsdl:part name="GetFriendlyNameOutputPart" element="u:GetFriendlyNameResponse"/>
128
+ </wsdl:message>
129
+
130
+ <wsdl:message name="GetHomeIdInputMessage">
131
+ <wsdl:part name="GetHomeIdInputPart" element="u:GetHomeId"/>
132
+ </wsdl:message>
133
+ <wsdl:message name="GetHomeIdOutputMessage">
134
+ <wsdl:part name="GetHomeIdOutputPart" element="u:GetHomeIdResponse"/>
135
+ </wsdl:message>
136
+
137
+ <wsdl:message name="GetSignalStrengthInputMessage">
138
+ <wsdl:part name="GetSignalStrengthInputPart" element="u:GetSignalStrength"/>
139
+ </wsdl:message>
140
+ <wsdl:message name="GetSignalStrengthOutputMessage">
141
+ <wsdl:part name="GetSignalStrengthOutputPart" element="u:GetSignalStrengthResponse"/>
142
+ </wsdl:message>
143
+
144
+ <wsdl:message name="GetLogFileURLInputMessage">
145
+ <wsdl:part name="GetLogFileURLInputPart" element="u:GetLogFileURL"/>
146
+ </wsdl:message>
147
+ <wsdl:message name="GetLogFileURLOutputMessage">
148
+ <wsdl:part name="GetLogFileURLOutputPart" element="u:GetLogFileURLResponse"/>
149
+ </wsdl:message>
150
+
151
+ <wsdl:message name="GetIconURLInputMessage">
152
+ <wsdl:part name="GetIconURLInputPart" element="u:GetIconURL"/>
153
+ </wsdl:message>
154
+ <wsdl:message name="GetIconURLOutputMessage">
155
+ <wsdl:part name="GetIconURLOutputPart" element="u:GetIconURLResponse"/>
156
+ </wsdl:message>
157
+
158
+ <wsdl:message name="ChangeFriendlyNameInputMessage">
159
+ <wsdl:part name="ChangeFriendlyNameInputPart" element="u:ChangeFriendlyName"/>
160
+ </wsdl:message>
161
+ <wsdl:message name="ChangeFriendlyNameOutputMessage">
162
+ <wsdl:part name="ChangeFriendlyNameOutputPart" element="u:ChangeFriendlyNameResponse"/>
163
+ </wsdl:message>
164
+
165
+ <wsdl:portType name="BasicServicePortType">
166
+ <wsdl:operation name="SetBinaryState">
167
+ <wsdl:input message="SetBinaryStateInputMessage"/>
168
+ <wsdl:output message="SetBinaryStateOutputMessage"/>
169
+ </wsdl:operation>
170
+ <wsdl:operation name="GetBinaryState">
171
+ <wsdl:input message="GetBinaryStateInputMessage"/>
172
+ <wsdl:output message="GetBinaryStateOutputMessage"/>
173
+ </wsdl:operation>
174
+ <wsdl:operation name="GetFriendlyName">
175
+ <wsdl:input message="GetFriendlyNameInputMessage"/>
176
+ <wsdl:output message="GetFriendlyNameOutputMessage"/>
177
+ </wsdl:operation>
178
+ <wsdl:operation name="GetHomeId">
179
+ <wsdl:input message="GetHomeIdInputMessage"/>
180
+ <wsdl:output message="GetHomeIdOutputMessage"/>
181
+ </wsdl:operation>
182
+ <wsdl:operation name="GetSignalStrength">
183
+ <wsdl:input message="GetSignalStrengthInputMessage"/>
184
+ <wsdl:output message="GetSignalStrengthOutputMessage"/>
185
+ </wsdl:operation>
186
+ <wsdl:operation name="GetLogFileURL">
187
+ <wsdl:input message="GetLogFileURLInputMessage"/>
188
+ <wsdl:output message="GetLogFileURLOutputMessage"/>
189
+ </wsdl:operation>
190
+ <wsdl:operation name="GetIconURL">
191
+ <wsdl:input message="GetIconURLInputMessage"/>
192
+ <wsdl:output message="GetIconURLOutputMessage"/>
193
+ </wsdl:operation>
194
+ <wsdl:operation name="ChangeFriendlyName">
195
+ <wsdl:input message="ChangeFriendlyNameInputMessage"/>
196
+ <wsdl:output message="ChangeFriendlyNameOutputMessage"/>
197
+ </wsdl:operation>
198
+ </wsdl:portType>
199
+
200
+ <wsdl:binding name="BasicServiceBinding" type="BasicServicePortType">
201
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
202
+ <wsdl:operation name="SetBinaryState">
203
+ <soap:operation soapAction="urn:Belkin:service:basicevent:1#SetBinaryState"/>
204
+ <wsdl:input>
205
+ <soap:body use="literal"/>
206
+ </wsdl:input>
207
+ <wsdl:output>
208
+ <soap:body use="literal"/>
209
+ </wsdl:output>
210
+ </wsdl:operation>
211
+ <wsdl:operation name="GetBinaryState">
212
+ <soap:operation soapAction="urn:Belkin:service:basicevent:1#GetBinaryState"/>
213
+ <wsdl:input>
214
+ <soap:body use="literal"/>
215
+ </wsdl:input>
216
+ <wsdl:output>
217
+ <soap:body use="literal"/>
218
+ </wsdl:output>
219
+ </wsdl:operation>
220
+ <wsdl:operation name="GetFriendlyName">
221
+ <soap:operation soapAction="urn:Belkin:service:basicevent:1#GetFriendlyName"/>
222
+ <wsdl:input>
223
+ <soap:body use="literal"/>
224
+ </wsdl:input>
225
+ <wsdl:output>
226
+ <soap:body use="literal"/>
227
+ </wsdl:output>
228
+ </wsdl:operation>
229
+ <wsdl:operation name="GetHomeId">
230
+ <soap:operation soapAction="urn:Belkin:service:basicevent:1#GetHomeId"/>
231
+ <wsdl:input>
232
+ <soap:body use="literal"/>
233
+ </wsdl:input>
234
+ <wsdl:output>
235
+ <soap:body use="literal"/>
236
+ </wsdl:output>
237
+ </wsdl:operation>
238
+ <wsdl:operation name="GetSignalStrength">
239
+ <soap:operation soapAction="urn:Belkin:service:basicevent:1#GetSignalStrength"/>
240
+ <wsdl:input>
241
+ <soap:body use="literal"/>
242
+ </wsdl:input>
243
+ <wsdl:output>
244
+ <soap:body use="literal"/>
245
+ </wsdl:output>
246
+ </wsdl:operation>
247
+ <wsdl:operation name="GetLogFileURL">
248
+ <soap:operation soapAction="urn:Belkin:service:basicevent:1#GetLogFileURL"/>
249
+ <wsdl:input>
250
+ <soap:body use="literal"/>
251
+ </wsdl:input>
252
+ <wsdl:output>
253
+ <soap:body use="literal"/>
254
+ </wsdl:output>
255
+ </wsdl:operation>
256
+ <wsdl:operation name="GetIconURL">
257
+ <soap:operation soapAction="urn:Belkin:service:basicevent:1#GetIconURL"/>
258
+ <wsdl:input>
259
+ <soap:body use="literal"/>
260
+ </wsdl:input>
261
+ <wsdl:output>
262
+ <soap:body use="literal"/>
263
+ </wsdl:output>
264
+ </wsdl:operation>
265
+ <wsdl:operation name="ChangeFriendlyName">
266
+ <soap:operation soapAction="urn:Belkin:service:basicevent:1#ChangeFriendlyName"/>
267
+ <wsdl:input>
268
+ <soap:body use="literal"/>
269
+ </wsdl:input>
270
+ <wsdl:output>
271
+ <soap:body use="literal"/>
272
+ </wsdl:output>
273
+ </wsdl:operation>
274
+ </wsdl:binding>
275
+ </wsdl:definitions>
@@ -0,0 +1 @@
1
+ wsdl: "wemo.wsdl"
@@ -0,0 +1,61 @@
1
+ require "wemo_switch/version"
2
+ require "yaml"
3
+ require "savon"
4
+
5
+ HTTPI.adapter = :net_http
6
+
7
+ module Wemo
8
+ class Switch
9
+ ROUTE = "/upnp/control/basicevent1"
10
+
11
+ def initialize(endpoint)
12
+ @endpoint = endpoint
13
+ end
14
+
15
+ def toggle_outlet
16
+ _try_all_ports do |client|
17
+ response = client.call(:get_binary_state)
18
+ state = response.body[:get_binary_state_response][:binary_state]
19
+ state = state == "1" ? "0" : "1"
20
+ client.call(:set_binary_state, :message => {"BinaryState" => state})
21
+ return true
22
+ end
23
+ end
24
+
25
+ def get_state
26
+ _try_all_ports do |client|
27
+ response = client.call(:get_binary_state)
28
+ state = response.body[:get_binary_state_response][:binary_state]
29
+ return state == "1"
30
+ end
31
+ end
32
+
33
+ def _try_all_ports
34
+ [49151, 49153, 49154].each do |port|
35
+ begin
36
+ client = Savon.client(:wsdl => _wsdl, :endpoint => _outlet_endpoint(port), :open_timeout => 0.5, :read_timeout => 0.5)
37
+ yield client
38
+ rescue Net::ReadTimeout, Errno::ECONNREFUSED
39
+ next
40
+ end
41
+ end
42
+ raise "Couldn't connect..."
43
+ end
44
+
45
+ def _root
46
+ File.dirname(__dir__)
47
+ end
48
+
49
+ def _config_dir
50
+ File.join(_root, "config")
51
+ end
52
+
53
+ def _wsdl
54
+ File.join(_config_dir, YAML.load_file(File.join(_config_dir, "wemo.yml"))['wsdl'])
55
+ end
56
+
57
+ def _outlet_endpoint(port)
58
+ "http://" + @endpoint + ":" + port.to_s + ROUTE
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,3 @@
1
+ module Version
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,8 @@
1
+ require 'bundler/setup'
2
+ Bundler.setup
3
+
4
+ require 'wemo_switch'
5
+
6
+ RSpec.configure do |config|
7
+ WEMO_ENDPOINT = ENV.fetch("WEMO_ENDPOINT", "192.168.1.150")
8
+ end
@@ -0,0 +1,28 @@
1
+ require 'spec_helper'
2
+
3
+ describe Wemo::Switch do
4
+ let(:wemo) { Wemo::Switch.new(WEMO_ENDPOINT) }
5
+
6
+ it "can get a light's status" do
7
+ state = wemo.get_state
8
+
9
+ expect([true, false]).to include(state)
10
+ end
11
+
12
+ it "can change the state" do
13
+ expect do
14
+ wemo.toggle_outlet
15
+ end.to change { wemo.get_state }
16
+ end
17
+
18
+ it "will try multiple ports" do
19
+ allow_any_instance_of(Savon::Client).to receive(:call).and_raise(Net::ReadTimeout)
20
+ expect_any_instance_of(Wemo::Switch).to receive(:_outlet_endpoint).with(49151).and_return("http://#{WEMO_ENDPOINT}:49151")
21
+ expect_any_instance_of(Wemo::Switch).to receive(:_outlet_endpoint).with(49153).and_return("http://#{WEMO_ENDPOINT}:49153")
22
+ expect_any_instance_of(Wemo::Switch).to receive(:_outlet_endpoint).with(49154).and_return("http://#{WEMO_ENDPOINT}:49154")
23
+
24
+ expect do
25
+ wemo.toggle_outlet
26
+ end.to raise_error
27
+ end
28
+ end
@@ -0,0 +1,28 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'wemo_switch/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "wemo_switch"
8
+ spec.version = Version::VERSION
9
+ spec.authors = ["hurley and kjperry"]
10
+ spec.email = ["sean.hurley6@gmail.com"]
11
+ spec.summary = %q{Gem to control wemo switch devices}
12
+ spec.description = %q{This gem can be used to control wemo switch devices to control power outlets}
13
+ spec.homepage = "https://github.com/seanhurley/wemo"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.6"
22
+ spec.add_development_dependency "rake", "~> 10.4"
23
+ spec.add_development_dependency "rspec", "~> 3.2"
24
+ spec.add_development_dependency "rspec-mocks", "~> 3.2"
25
+ spec.add_dependency "savon", "~> 2.11"
26
+
27
+ spec.required_ruby_version = ">= 2.0.0"
28
+ end
metadata ADDED
@@ -0,0 +1,129 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wemo_switch
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - hurley and kjperry
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-05-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.6'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.4'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.4'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.2'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.2'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-mocks
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '3.2'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '3.2'
69
+ - !ruby/object:Gem::Dependency
70
+ name: savon
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.11'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.11'
83
+ description: This gem can be used to control wemo switch devices to control power
84
+ outlets
85
+ email:
86
+ - sean.hurley6@gmail.com
87
+ executables: []
88
+ extensions: []
89
+ extra_rdoc_files: []
90
+ files:
91
+ - ".gitignore"
92
+ - Gemfile
93
+ - LICENSE.txt
94
+ - README.md
95
+ - Rakefile
96
+ - config/wemo.wsdl
97
+ - config/wemo.yml
98
+ - lib/wemo_switch.rb
99
+ - lib/wemo_switch/version.rb
100
+ - spec/spec_helper.rb
101
+ - spec/wemo_switch_spec.rb
102
+ - wemo_switch.gemspec
103
+ homepage: https://github.com/seanhurley/wemo
104
+ licenses:
105
+ - MIT
106
+ metadata: {}
107
+ post_install_message:
108
+ rdoc_options: []
109
+ require_paths:
110
+ - lib
111
+ required_ruby_version: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - ">="
114
+ - !ruby/object:Gem::Version
115
+ version: 2.0.0
116
+ required_rubygems_version: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ version: '0'
121
+ requirements: []
122
+ rubyforge_project:
123
+ rubygems_version: 2.2.2
124
+ signing_key:
125
+ specification_version: 4
126
+ summary: Gem to control wemo switch devices
127
+ test_files:
128
+ - spec/spec_helper.rb
129
+ - spec/wemo_switch_spec.rb