easy_upnp 0.2.2 → 0.2.3
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.
- checksums.yaml +4 -4
- data/lib/easy_upnp/device_control_point.rb +5 -2
- data/lib/easy_upnp/ssdp_searcher.rb +1 -1
- data/lib/easy_upnp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81b1e9fbc61f582fd37f2206ed899f4a6f09fe9c
|
4
|
+
data.tar.gz: 01588f5e7b679a8834a33b60dee1d5b444b74ac9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2c6e5bb318fc4b78543f865b27eff34cb420e8642629a86931c5512a5f984158e51270221c08c29bda6cb72445a8df558c943869dd9c33d45b3134ec82f3799
|
7
|
+
data.tar.gz: e6bbbbf71e24d07481f0c853e7287fb621fb0c38a87db6d2d13c5fabc97b1b1bb24fe02683cc080d8cb7b6c13f6a36f8e4a090095d6beae3b2f6b0f2e2931461
|
@@ -98,8 +98,11 @@ module EasyUpnp
|
|
98
98
|
define_singleton_method(action['name']) do |args_hash = {}|
|
99
99
|
if !args_hash.is_a? Hash
|
100
100
|
raise RuntimeError.new "Input arg must be a hash"
|
101
|
-
|
102
|
-
|
101
|
+
end
|
102
|
+
|
103
|
+
args_hash = args_hash.inject({}) { |m,(k,v)| m[k.to_sym] = v; m }
|
104
|
+
|
105
|
+
if (args_hash.keys - input_args).any?
|
103
106
|
raise RuntimeError.new "Unsupported arguments: #{(args_hash.keys - input_args)}." <<
|
104
107
|
" Supported args: #{input_args}"
|
105
108
|
end
|
data/lib/easy_upnp/version.rb
CHANGED