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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82b4246b00edb8cdb4dbf04dd422596f449baad3
|
4
|
+
data.tar.gz: 1f15a77a60325341f68a385292a4a4ead610b430
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/ruby-onvif-client.gemspec
CHANGED
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.
|
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-
|
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
|