bseller_ruby 0.1.7 → 0.1.8.1

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: cf0c50f90bce4fd4967e54b50eac12d577db0c73
4
- data.tar.gz: 90254e754eecc7f2e98dd3e1fce5c744bea0168a
3
+ metadata.gz: b6872c1244f218fe84660b273adda3d9d0742a96
4
+ data.tar.gz: 2b2903303a84c8df3ef07801f61799b73c3f23a5
5
5
  SHA512:
6
- metadata.gz: 673109afb02688b7f0f3fc4c70b904ff2390a3b2d1fef43b6925a3335bd4d594c75ab994de4481b4b4ce0f8dccabdca79c582ae2753974d4d198fd875ad574c6
7
- data.tar.gz: 388c2e47ebaec4d7b4ae25ba7667ae090066c1e467aa5f9168df0da1d1681b4ce1cdfb8dcabf319dd6ff57aa754736bc4dfd546cec041f37242d6c64de6e6286
6
+ metadata.gz: e1008d1a7cfc4ec9025e242df16d67b39dd0e6b8d4eecb4a5ccf2d09099dbd23729256e335b6f89351d1b5a4440627a4432c9d308d1fa17779f697c0e9bbca6a
7
+ data.tar.gz: 85db9c5c61a5e228dd3f9a2f40bd8b29553356da04afbb6f64e1972a05cbf07ddd2411b00806e789a0b53b1bf13911e84cee61e23c4066f81182e323312ca738
@@ -94,12 +94,11 @@ module BsellerRuby
94
94
  end
95
95
 
96
96
  def self.authentication
97
- if @method =~ /pagamento/
98
- @authentication ||= { 'idCia' => ws['cia_id'], 'credencial' => { 'usuario' => ws['username'], 'senha' => ws['password'] } }
99
- else
97
+ unless @method =~ /pagamento/
100
98
  @authentication ||= { 'idCia' => ws['cia_id'], 'usuario' => ws['username'], 'senha' => ws['password'] }
101
99
  @method.to_s.end_with?('pedido') ? {} : @authentication
102
100
  end
101
+ @authentication || {}
103
102
  end
104
103
  end
105
104
  end
@@ -1,3 +1,3 @@
1
1
  module BsellerRuby
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bseller_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wesley Conde
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-29 00:00:00.000000000 Z
11
+ date: 2016-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon