easy_upnp 1.1.10 → 1.1.11

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: 8adec51799a477149d333c20673e47d5cbe75786
4
- data.tar.gz: d4352819b953d5fe876045ac6bb5fad0873114f8
3
+ metadata.gz: 8f3ee777471ae9c980c936e4592c1e7355fea84d
4
+ data.tar.gz: 70cc8e762811d4f97ca6d5f63396d9ef4c3e2dd5
5
5
  SHA512:
6
- metadata.gz: 6de5e8d3e0b39435192ed2d682fdc92296bd450b00528fac62c738010b50717b6aee335fe21174cddac1e284e89dea659ce292cdd3662479f9cda3ab355bb34a
7
- data.tar.gz: 97bf38012efdf137c665c211051706517cfed4d9bf8de14b9930dcf948493695473246c24d93c19dea95b4852f2cef41b06ced2cd331b6d9a07742c5d3c315e7
6
+ metadata.gz: b6d17fc20ff882ced30175758aaeaa167e9316c6c425c480aad1d225a85b7de2ad54293c30cac9ebac10b03b1a16d14124abafc015eff64ec01e9b44a9c85407
7
+ data.tar.gz: e4cd53b3db60872c8bae2d8bac5e4d3658faf1562972c83448bc6c0f8c0734712b7bf84da28580ae9709bbda356a24cf0ecf1cddda777ad2ba75dbb8c68d3270
data/easy_upnp.gemspec CHANGED
@@ -15,6 +15,7 @@ Gem::Specification.new do |gem|
15
15
  gem.add_dependency 'rake'
16
16
  gem.add_dependency 'savon', '~> 2.11'
17
17
  gem.add_dependency 'nokogiri', '~> 1.6'
18
+ gem.add_dependency 'rubyntlm', '~> 0.3'
18
19
 
19
20
  ignores = File.readlines(".gitignore").grep(/\S+/).map(&:chomp)
20
21
  dotfiles = %w[.gitignore]
@@ -5,7 +5,8 @@ module EasyUpnp
5
5
  call_options,
6
6
  advanced_typecasting,
7
7
  log_enabled,
8
- log_level)
8
+ log_level,
9
+ cookies)
9
10
 
10
11
  # For some reason was not able to pass these options in the config block
11
12
  # in Savon 2.11
@@ -31,6 +32,7 @@ module EasyUpnp
31
32
  @urn = urn
32
33
  @call_options = call_options
33
34
  @advanced_typecasting = advanced_typecasting
35
+ @cookies = cookies
34
36
  end
35
37
 
36
38
  def call(action_name, args)
@@ -40,6 +42,13 @@ module EasyUpnp
40
42
  :'xmlns:u' => @urn
41
43
  },
42
44
  }.merge(@call_options)
45
+
46
+ if !@cookies.nil?
47
+ attrs = attrs.merge(
48
+ cookies: HTTPI::Cookie.new(@cookies)
49
+ )
50
+ end
51
+
43
52
  advanced_typecasting = @advanced_typecasting
44
53
 
45
54
  response = @client.call(action_name, attrs) do
@@ -20,7 +20,8 @@ module EasyUpnp
20
20
  validate_arguments: false,
21
21
  log_enabled: true,
22
22
  log_level: :error,
23
- call_options: {}
23
+ call_options: {},
24
+ cookies: nil
24
25
  }
25
26
 
26
27
  def initialize(o = {}, &block)
@@ -54,7 +55,8 @@ module EasyUpnp
54
55
  @options.call_options,
55
56
  @options.advanced_typecasting,
56
57
  @options.log_enabled,
57
- @options.log_level
58
+ @options.log_level,
59
+ @options.cookies
58
60
  )
59
61
 
60
62
  definition_xml = Nokogiri::XML(definition)
@@ -1,3 +1,3 @@
1
1
  module EasyUpnp
2
- VERSION = '1.1.10'
2
+ VERSION = '1.1.11'
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.10
4
+ version: 1.1.11
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-07-01 00:00:00.000000000 Z
11
+ date: 2016-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.6'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubyntlm
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.3'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.3'
55
69
  description:
56
70
  email: chris@sidoh.org
57
71
  executables: