jamef-api 0.5.5 → 0.5.6

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
  SHA256:
3
- metadata.gz: 7f88e9387f34b3d1a7fd091c0ef3df7bdb13eac26ae034a959d95fc215fad171
4
- data.tar.gz: 4d39916f51b0d2c1c6199e138c12a6d7a1e48cb72d130b0cb63f818627dc06e7
3
+ metadata.gz: b98cc57e4d284001c32db89c26490d6f1b8ab3c81639d606d19d573c7e5fcd8b
4
+ data.tar.gz: 98ec649ed332794a8b7f470e1f6afb1d939d04597e3b3a8db79f4c4daca68f57
5
5
  SHA512:
6
- metadata.gz: 8efed5773df8b9a9000c3d4373d6efd62d906535ed8a8d22c7dfa6407f30d4a3840077cccba6f7b3b5d8c2e53f82c4c45e1d4b2670f628c7d85b7afbd88d7d7b
7
- data.tar.gz: 36d10226226ab1d1b3704803a2f749889f30f0a97c53d063cc6e857147a6e489f325bcaf3866f152f8c2c0b91521e6728f119a410a607fac8928dc21926f0636
6
+ metadata.gz: 3b07f21e71d5205b0ca4e407e427bf6f04fd461adf47f416f3cabce1a732b0647c9a6b5316bfb8c865ebde8b974dfd1f5e57d0f9a9c9934e13d83312b1cdbd97
7
+ data.tar.gz: f4c4ca444d4f9a1a975acfd6cb110d815d1e2fe24c0c183974fd47d4fc96fc962dcd076c7bafa924cd795134a9793822908f341e9fbd3a669444e120e702311e
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jamef-api (0.5.5)
4
+ jamef-api (0.5.6)
5
5
  activemodel
6
6
  activesupport
7
- savon (~> 2.0)
7
+ savon (~> 2.12.0)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
@@ -38,5 +38,5 @@ Gem::Specification.new do |spec|
38
38
 
39
39
  spec.add_dependency "activesupport"
40
40
  spec.add_dependency "activemodel"
41
- spec.add_dependency 'savon', '~> 2.0'
41
+ spec.add_dependency 'savon', '~> 2.12.0'
42
42
  end
@@ -6,6 +6,10 @@ require_relative './rating/params'
6
6
  module Jamef
7
7
  module Rating
8
8
 
9
+ def self.custom_wsdl= wsdl
10
+ @custom_wsdl = wsdl
11
+ end
12
+
9
13
  WSDL = 'https://www.jamef.com.br/webservice/JAMW0520.apw?WSDL'
10
14
 
11
15
  def self.complete_rate params
@@ -21,7 +25,10 @@ module Jamef
21
25
  def self.savon_client
22
26
  @savon_client ||= ::Savon.client do |globals|
23
27
  globals.convert_request_keys_to :upcase
28
+ globals.headers({ 'X-Forwarded-Scheme' => 'https'})
24
29
  globals.wsdl wsdl
30
+ globals.follow_redirects true
31
+ globals.ssl_version :TLSv1_2
25
32
  end
26
33
  @savon_client
27
34
  end
@@ -30,7 +37,7 @@ module Jamef
30
37
 
31
38
 
32
39
  def self.wsdl
33
- WSDL
40
+ @custom_wsdl || WSDL
34
41
  end
35
42
 
36
43
  def self.send_message params
@@ -1,3 +1,3 @@
1
1
  module Jamef
2
- VERSION = "0.5.5"
2
+ VERSION = "0.5.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jamef-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agilso
@@ -114,14 +114,14 @@ dependencies:
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '2.0'
117
+ version: 2.12.0
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '2.0'
124
+ version: 2.12.0
125
125
  description: Ruby wrapper for the Jamef.com.br SOAP API.
126
126
  email:
127
127
  - agilso.b@gmail.com