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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cd20723f9549460ebde6c951bbef4b2df0a41296
4
- data.tar.gz: 718377c74cc753bb0e4ffdeb0d71cb9ef221ef8d
3
+ metadata.gz: 82d0599a76e452d94160045b21d3b5fa8b245f4d
4
+ data.tar.gz: 792c7675d027954fafb6d59ae3cb65506dbcf34a
5
5
  SHA512:
6
- metadata.gz: 790ddf169ef51a92ec74fe61ce659bc1d0edf9cf021cb2a1e5b044caf8324fe4f97e07e2d2fc69049179e8f4927e6848b2493b0e68574cbd8b29637e08362998
7
- data.tar.gz: a4c40f79b14bb9be533b94b18d7f5ea5f6efd209e89f5df8ee1c2ec1a9553f4a802d82430c4c7b80091c1370f973d3db3a4a74c0280b07288383dcbef008748d
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, :name, :host
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
@@ -1,3 +1,3 @@
1
1
  module EasyUpnp
2
- VERSION = '1.1.7'
2
+ VERSION = '1.1.8'
3
3
  end
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.7
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-04-27 00:00:00.000000000 Z
11
+ date: 2016-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake