upnp_content_explorer 1.1.0 → 1.2.0

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: 8dad4e9e6f0e15f60e68da4211f9a4fafa6f2664
4
- data.tar.gz: 7d6f4bebfc9121071f0ffd016e841dc7f7b6dde3
3
+ metadata.gz: b861a3fe0ebc3250d1355680f840f220df824688
4
+ data.tar.gz: caee9fb011bdbd4063ee10da8b9ff0041566e6f2
5
5
  SHA512:
6
- metadata.gz: ba264790a78cda569421a5619cdb7cd49f840357da1345908b3f4aa3c1be889f45bd37f7274fdc6c8de6d5b48be972beea3e872caf84021c16dab95976288339
7
- data.tar.gz: c20dfd6806f82f75cf1f621b88061a7d02c644a599405443de8b6fae1f5b5e68c9b556e62ef826bf1c400bb03a778d128817c04c40105336a17a4768892d2c55
6
+ metadata.gz: c9a781021b75ff7cdc2c426d52238e652a08ce82344190595fb923d70acc7d435121eab2ed22159518be63894b87f556607777f9abb2865d9ee08e33a70f76bd
7
+ data.tar.gz: a03ab87e02bb59cefec088186dcbf4e24319fc26b4e2ae5486b6eb0fbe9ffa416c49e1e63b19c994e4eca8bc4889f09b30d52369160f2dd0c586b62abc74203c
@@ -12,14 +12,22 @@ module UpnpContentExplorer
12
12
  define_singleton_method(m) { extract_xpath("#{m}") }
13
13
  end
14
14
 
15
+ @metadata = {}
15
16
  %w{
16
17
  size duration bitrate sampleFrequency nrAudioChannels resolution
17
18
  protocolInfo
18
19
  }.each do |m|
19
- define_singleton_method(m) { extract_xpath("res/@#{m}") }
20
+ v = extract_xpath("res/@#{m}")
21
+ @metadata[m.to_sym] = v
22
+ define_singleton_method(m) { v }
20
23
  end
21
24
 
22
- define_singleton_method('url') { extract_xpath("res") }
25
+ @metadata[:url] = extract_xpath('res')
26
+ define_singleton_method('url') { @metadata[:url] }
27
+ end
28
+
29
+ def metadata
30
+ {}.merge(@metadata)
23
31
  end
24
32
 
25
33
  private
@@ -1,3 +1,3 @@
1
1
  module UpnpContentExplorer
2
- VERSION = '1.1.0'
2
+ VERSION = '1.2.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: upnp_content_explorer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Mullins