ruby_onvif_client 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 677612400503d1e94ede44b1c91ecdb92158a51b
4
- data.tar.gz: 85fef75a53af05219e29f5ad6a355784f05bf5be
3
+ metadata.gz: 8eab26356c14952c85c3d6e821dd65fe11ec2a14
4
+ data.tar.gz: d83677fa347fa61e3463721b49de6d94159ddc9f
5
5
  SHA512:
6
- metadata.gz: d20b1a4bb3809096af45613e99ebbb1d645d395df7909d9b522ec15a4acb153773ebc7cf314d5e850cdef519202d1a390580e2ae871d44c905646a5f9de154af
7
- data.tar.gz: ac28163045169c06b555e52e9e589d6eed5218da439957cde81e3bf23cda00caa035afb498551d18d9d688dc340081dd31b563c3c639c7441c31c1f3eee9f0e8
6
+ metadata.gz: 5cae25ac8fd749a76cf7a21e066c1165127c9b041e69c1b2e0d00fe487e899cda2661e8a858b7f8956a7fe94a038b6bdac62e8469fdbca8223fea56105ce198b
7
+ data.tar.gz: fd7185f378d9d7d18d48812b76bd83531e4b18584c42fcbd279e2a0fe2d4381700c8024db8d3713900606c655ad65790c14cecbbd1d5ea31cb43474e91dd6e74
@@ -16,7 +16,7 @@ module ONVIF
16
16
  connect_timeout: @options[:connect_timeout]
17
17
  }
18
18
  request_options = {
19
- body: data,
19
+ body: data
20
20
  }
21
21
  http = EventMachine::HttpRequest.new(
22
22
  @options[:address],
@@ -34,7 +34,7 @@ module ONVIF
34
34
  profile[:audio_source_configuration] = _get_audio_source_configuration(audio_source) unless audio_source.nil?
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
- profile[:video_analytics_configuration] = _get_video_analytics_configuration(video_analytics) unless video_analytics.nil?
37
+ #profile[:video_analytics_configuration] = _get_video_analytics_configuration(video_analytics) unless video_analytics.nil?
38
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
@@ -30,7 +30,7 @@ module ONVIF
30
30
  success_result[:audio_source_configuration] = _get_audio_source_configuration(audio_source) unless audio_source.nil?
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
- success_result[:video_analytics_configuration] = _get_video_analytics_configuration(video_analytics) unless video_analytics.nil?
33
+ #success_result[:video_analytics_configuration] = _get_video_analytics_configuration(video_analytics) unless video_analytics.nil?
34
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
@@ -27,6 +27,7 @@ module ONVIF
27
27
  wsse.credentials(username, password)
28
28
  wsse.created_at = Time.now
29
29
  wsse.to_xml
30
+ %Q{<wsse:Security soap:mustUnderstand="true" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsse:UsernameToken wsu:Id="UsernameToken-31"><wsse:Username>#{username}</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">#{password}</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">vwqgTTRK/D2IeOTP76JHBw==</wsse:Nonce><wsu:Created>2013-08-06T10:22:17.028Z</wsu:Created></wsse:UsernameToken></wsse:Security>}
30
31
  end
31
32
 
32
33
  def to_s
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ruby_onvif_client'
3
- s.version = '0.1.3'
4
- s.date = '2013-08-05'
3
+ s.version = '0.1.4'
4
+ s.date = '2013-08-07'
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.3
4
+ version: 0.1.4
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-05 00:00:00.000000000 Z
11
+ date: 2013-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: em_ws_discovery