almodovar 1.5.4 → 1.5.5

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: 85aa0a429ca1941cb1cdfb137f9f8955c69b8c9c
4
- data.tar.gz: ea1145d5b1682a40c5a6371e275386bc3bb3a534
3
+ metadata.gz: 0a448fa0cdfe039788aceb6f53b3b35031d28abc
4
+ data.tar.gz: 509dde0cf8288ea98456fb8f5a13d00784298d37
5
5
  SHA512:
6
- metadata.gz: ef21d0d38978ea475a591ea75ece12e6144c3fafe1ae2c200c56c34cd5ec0fa00c7dbf7c10797ca624c691eee486752e412dd9fc1cf7fc2a147d2e9d70428e1f
7
- data.tar.gz: 65d3a7c15e6bb59b33ce3d1d6381d32af237898a6fcfa800fa02442dfb2ce9fb95c19cde5d114c942d8f38724778d7385d1c4a8403cd44e383212ae62e706ab3
6
+ metadata.gz: c8b7c9fc75d8ad40f85cd28462cc6cf587b8a777cf1f0475d4099b7cf33d1d39dbd7f86859bd77762f1ef375d3b1cc4ba11acf90f8364584d1baf0352fc9e320
7
+ data.tar.gz: 14ac57d90bf7534247eeb235a508bcffc9418746ad704bad8c3441cfd7e35ba3c17353aaa9a0903604253d21f3eaee8c01b87d53d3a428fcb0501f09f5ed1f89
@@ -16,17 +16,18 @@ require 'almodovar/errors'
16
16
  require 'almodovar/to_xml'
17
17
 
18
18
  module Almodovar
19
- class << self
20
- DEFAULT_SEND_TIMEOUT = 120
21
- DEFAULT_CONNECT_TIMEOUT = 30
22
- DEFAULT_RECEIVE_TIMEOUT = 120
19
+ DEFAULT_SEND_TIMEOUT = 120
20
+ DEFAULT_CONNECT_TIMEOUT = 30
21
+ DEFAULT_RECEIVE_TIMEOUT = 120
23
22
 
23
+ class << self
24
24
  def default_options
25
25
  default = {
26
26
  send_timeout: DEFAULT_SEND_TIMEOUT,
27
27
  connect_timeout: DEFAULT_CONNECT_TIMEOUT,
28
28
  receive_timeout: DEFAULT_RECEIVE_TIMEOUT,
29
- user_agent: "Almodovar/#{Almodovar::VERSION}"
29
+ user_agent: "Almodovar/#{Almodovar::VERSION}",
30
+ force_basic_auth: false
30
31
  }
31
32
  default.merge(@default_options || {})
32
33
  end
@@ -35,7 +36,8 @@ module Almodovar
35
36
  @default_options = {
36
37
  send_timeout: options[:send_timeout],
37
38
  connect_timeout: options[:connect_timeout],
38
- receive_timeout: options[:receive_timeout]
39
+ receive_timeout: options[:receive_timeout],
40
+ force_basic_auth: options[:force_basic_auth]
39
41
  }
40
42
  end
41
43
  end
@@ -23,6 +23,7 @@ module Almodovar
23
23
  session.agent_name = Almodovar::default_options[:user_agent]
24
24
 
25
25
  if @auth
26
+ session.force_basic_auth = Almodovar::default_options[:force_basic_auth]
26
27
  session.username = @auth.username
27
28
  session.password = @auth.password
28
29
  session.auth_type = :digest
@@ -12,6 +12,7 @@ module Almodovar
12
12
  :connect_timeout=,
13
13
  :send_timeout=,
14
14
  :receive_timeout=,
15
+ :force_basic_auth=,
15
16
  :to => :client
16
17
 
17
18
  def initialize
@@ -1,3 +1,3 @@
1
1
  module Almodovar
2
- VERSION = '1.5.4'
2
+ VERSION = '1.5.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: almodovar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.4
4
+ version: 1.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - BeBanjo S.L.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-07 00:00:00.000000000 Z
11
+ date: 2017-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder
@@ -134,9 +134,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  requirements: []
136
136
  rubyforge_project:
137
- rubygems_version: 2.5.1
137
+ rubygems_version: 2.6.10
138
138
  signing_key:
139
139
  specification_version: 4
140
140
  summary: BeBanjo API client
141
141
  test_files: []
142
- has_rdoc: