ruby_onvif_client 0.1.1 → 0.1.2

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: 604d28854be92132f924b164328b6a8377a9da43
4
- data.tar.gz: bd1f2fbe5905e6f9fe26c4cedea726729d423185
3
+ metadata.gz: 82b4246b00edb8cdb4dbf04dd422596f449baad3
4
+ data.tar.gz: 1f15a77a60325341f68a385292a4a4ead610b430
5
5
  SHA512:
6
- metadata.gz: 8a5b5ba6c8ba8428aad1cfcf3cf5b3676661af7a368c245e7759521feccd21510ad3b8ec240afccf6ef41ec05aaa996d60176399f2ff2c9efc360e8b5596558e
7
- data.tar.gz: 11e4ad45dd2661b8fa93493089fd22b09a4bcf4d1d06678f836f0f75da7750745c9cddf3f8972158482a2bc199e934ef5406d1fc69324223845dd43993b26949
6
+ metadata.gz: 89a462b4f2dd3920c0ec0428941b2e59fae5cc6255d1b49a83259e1180b5f9794d16a352220cf7232bac04faf79cd9dd5cf3c654578db97bda9416bd7e614f47
7
+ data.tar.gz: e5afb40dbb5635065380231407d1ae9ff002f3a0bbe2f9bbb1c7c3c3edfb28bf2807fc7b75f6af5687d1e68cbb23ae27dd6551d1a4214eb828672abc4dae53fc
@@ -22,11 +22,13 @@ module ONVIF
22
22
  end
23
23
 
24
24
  def value xml_doc, xpath
25
+ return '' if xml_doc.nil?
25
26
  node = xml_doc.at_xpath(xpath)
26
27
  return node.content unless node.nil?
27
28
  ''
28
29
  end
29
30
  def attribute xml_doc, xpath
31
+ return '' if xml_doc.nil?
30
32
  node = xml_doc[xpath]
31
33
  return node unless node.nil?
32
34
  ''
@@ -35,7 +35,7 @@ module ONVIF
35
35
  profile[:video_encoder_configuration] = _get_video_encoder_configuration(video_encoder) unless video_encoder.nil?
36
36
  profile[:audio_encoder_configuration] = _get_audio_encoder_configuration(audio_encoder) unless audio_encoder.nil?
37
37
  profile[:video_analytics_configuration] = _get_video_analytics_configuration(video_analytics) unless video_analytics.nil?
38
- profile[:ptz_configuration] = _get_ptz_configuration(ptz) unless ptz.nil?
38
+ #profile[:ptz_configuration] = _get_ptz_configuration(ptz) unless ptz.nil?
39
39
  profile[:metadata_configuration] = _get_metadata_configuration(metadata) unless metadata.nil?
40
40
  callback cb, success, profile
41
41
  else
@@ -31,7 +31,7 @@ module ONVIF
31
31
  success_result[:video_encoder_configuration] = _get_video_encoder_configuration(video_encoder) unless video_encoder.nil?
32
32
  success_result[:audio_encoder_configuration] = _get_audio_encoder_configuration(audio_encoder) unless audio_encoder.nil?
33
33
  success_result[:video_analytics_configuration] = _get_video_analytics_configuration(video_analytics) unless video_analytics.nil?
34
- success_result[:ptz_configuration] = _get_ptz_configuration(ptz) unless ptz.nil?
34
+ #success_result[:ptz_configuration] = _get_ptz_configuration(ptz) unless ptz.nil?
35
35
  success_result[:metadata_configuration] = _get_metadata_configuration(metadata) unless metadata.nil?
36
36
  profiles << success_result
37
37
  end
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ruby_onvif_client'
3
- s.version = '0.1.1'
4
- s.date = '2013-08-02'
3
+ s.version = '0.1.2'
4
+ s.date = '2013-08-05'
5
5
  s.summary = "Ruby实现的onvif客户端"
6
6
  s.description = "使用ruby实现的简单的onvif客户端"
7
7
  s.authors = ["jimxl"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_onvif_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - jimxl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-02 00:00:00.000000000 Z
11
+ date: 2013-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: em_ws_discovery