easy_upnp 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/easy_upnp/upnp_device.rb +5 -1
- data/lib/easy_upnp/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82d0599a76e452d94160045b21d3b5fa8b245f4d
|
4
|
+
data.tar.gz: 792c7675d027954fafb6d59ae3cb65506dbcf34a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea00d522a1fbcc5a5ebf1b2f65bd24fc8536782718ab802b186621e9e13c38750a21d7313cc37017d13735b4862e8fdb0c44d5d7c1d6999ea7bcff0f3ec7ca31
|
7
|
+
data.tar.gz: a6a83b24668b038ae858fe1593b3ac5f916a0dc22b937e360e134df633ad72c2f1a07842375d901a147397b551c581b9a454c1c50141e89acfaafdac9df81964
|
@@ -7,7 +7,7 @@ require 'easy_upnp/control_point/device_control_point'
|
|
7
7
|
|
8
8
|
module EasyUpnp
|
9
9
|
class UpnpDevice
|
10
|
-
attr_reader :uuid, :
|
10
|
+
attr_reader :uuid, :host
|
11
11
|
|
12
12
|
def initialize(uuid, service_definitions)
|
13
13
|
@uuid = uuid
|
@@ -33,6 +33,10 @@ module EasyUpnp
|
|
33
33
|
UpnpDevice.new(uuid, service_definitions)
|
34
34
|
end
|
35
35
|
|
36
|
+
def host
|
37
|
+
@host ||= URI.parse(@service_definitions.first[:location]).host
|
38
|
+
end
|
39
|
+
|
36
40
|
def device_name
|
37
41
|
@device_name ||= fetch_device_name
|
38
42
|
end
|
data/lib/easy_upnp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easy_upnp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Mullins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|