easy_upnp 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +6 -6
- data/lib/easy_upnp/device_control_point.rb +4 -3
- data/lib/easy_upnp/upnp_device.rb +2 -2
- data/lib/easy_upnp/version.rb +1 -1
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
5
|
-
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a0f8b872fa78970e2fcf5076b276f02bfc17afd3
|
4
|
+
data.tar.gz: 443fddae6d3e7cb2710b42b1aa0c8db0a7537014
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bd6892840b047132db10e4edf3995a7fc39c64288c9fc9d2c3b53237bddb7b43f252eb3fd65bd8ad6c78bfd1673eb331e60d17f0515509078008c5374744ba95
|
7
|
+
data.tar.gz: 1b4238c13de11c27a35c523d03e52bbc7c2bbd498e6fba562b230f3f5587f7cbdba4061988645c7fa4bacbf1a25daf9fa539d049f8619fc30bb36d01c492d943
|
@@ -6,9 +6,10 @@ module EasyUpnp
|
|
6
6
|
class DeviceControlPoint
|
7
7
|
attr_reader :service_methods
|
8
8
|
|
9
|
-
def initialize(client, service_type, definition_url)
|
9
|
+
def initialize(client, service_type, definition_url, options)
|
10
10
|
@client = client
|
11
11
|
@service_type = service_type
|
12
|
+
@options = options
|
12
13
|
|
13
14
|
service_methods = []
|
14
15
|
definition = Nokogiri::XML(open(definition_url))
|
@@ -49,8 +50,8 @@ module EasyUpnp
|
|
49
50
|
soap_action: "#{@service_type}##{action_name}",
|
50
51
|
attributes: {
|
51
52
|
:'xmlns:u' => @service_type
|
52
|
-
}
|
53
|
-
}
|
53
|
+
},
|
54
|
+
}.merge(@options)
|
54
55
|
|
55
56
|
response = @client.call action['name'], attrs do
|
56
57
|
message(args_hash)
|
@@ -36,7 +36,7 @@ module EasyUpnp
|
|
36
36
|
!service_definition(urn).nil?
|
37
37
|
end
|
38
38
|
|
39
|
-
def service(urn)
|
39
|
+
def service(urn, options = {})
|
40
40
|
definition = service_definition(urn)
|
41
41
|
|
42
42
|
if !definition.nil?
|
@@ -67,7 +67,7 @@ module EasyUpnp
|
|
67
67
|
c.env_namespace :s
|
68
68
|
end
|
69
69
|
|
70
|
-
DeviceControlPoint.new client, urn, wsdl
|
70
|
+
DeviceControlPoint.new client, urn, wsdl, options
|
71
71
|
end
|
72
72
|
end
|
73
73
|
end
|
data/lib/easy_upnp/version.rb
CHANGED
metadata
CHANGED
@@ -1,83 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy_upnp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Mullins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: savon
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 2.11.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 2.11.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: nori
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 2.6.0
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 2.6.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: nokogiri
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 1.6.6.2
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 1.6.6.2
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 2.0.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 2.0.0
|
83
83
|
description:
|
@@ -86,7 +86,7 @@ executables: []
|
|
86
86
|
extensions: []
|
87
87
|
extra_rdoc_files: []
|
88
88
|
files:
|
89
|
-
-
|
89
|
+
- .gitignore
|
90
90
|
- Gemfile
|
91
91
|
- LICENSE
|
92
92
|
- README.md
|
@@ -104,17 +104,17 @@ require_paths:
|
|
104
104
|
- lib
|
105
105
|
required_ruby_version: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- -
|
107
|
+
- - '>='
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
110
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
111
111
|
requirements:
|
112
|
-
- -
|
112
|
+
- - '>='
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: '0'
|
115
115
|
requirements: []
|
116
116
|
rubyforge_project:
|
117
|
-
rubygems_version: 2.0.
|
117
|
+
rubygems_version: 2.0.14
|
118
118
|
signing_key:
|
119
119
|
specification_version: 4
|
120
120
|
summary: A super easy to use UPnP control point client
|