ipiranga 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ipiranga.rb +2 -2
- data/lib/ipiranga/client.rb +1 -1
- data/lib/ipiranga/{clients → client}/km.rb +1 -1
- data/lib/ipiranga/{clients → client}/pf.rb +2 -2
- data/lib/ipiranga/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 868098abf90c4ad8c0e881415948c9743a6a7d71
|
4
|
+
data.tar.gz: ba49b193aa51fd68ddcf4f51f3431546aaeede6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d7b2b2ba2cc1c14df197a086f96d16faa8188533248237a3dc519b44c0280cb9b9483c05171693bb88c634fe7b79cba1f53e6dc15dd8e6c828eec7b94873ccb
|
7
|
+
data.tar.gz: bc98ea5ce1843a714f9cd897e0b67129722a2a12427bccb03716666c04a2d127b3ce73af6e67798d211eee47dbf5ffa64c6e1439ab48fde3f9aa6c5c5530df74
|
data/lib/ipiranga.rb
CHANGED
data/lib/ipiranga/client.rb
CHANGED
@@ -3,7 +3,7 @@ require 'ipiranga/client'
|
|
3
3
|
module Ipiranga
|
4
4
|
class KM < Client
|
5
5
|
def wsdl_url
|
6
|
-
if defined?(RAILS_ENV) && RAILS_ENV == "production"
|
6
|
+
if defined?(ENV["RAILS_ENV"]) && ENV["RAILS_ENV"] == "production"
|
7
7
|
"https://b2b.ipiranga.com.br/csp/ensb2cws/cbpi.bs.km.pedido.Service.CLS?WSDL=1"
|
8
8
|
else
|
9
9
|
"https://b2bdv.ipiranga.com.br/csp/ensb2cws/cbpi.bs.km.pedido.Service.CLS?WSDL=1"
|
@@ -3,7 +3,7 @@ require 'ipiranga/client'
|
|
3
3
|
module Ipiranga
|
4
4
|
class PF < Client
|
5
5
|
def wsdl_url
|
6
|
-
if defined?(RAILS_ENV) && RAILS_ENV == "production"
|
6
|
+
if defined?(ENV["RAILS_ENV"]) && ENV["RAILS_ENV"] == "production"
|
7
7
|
"https://b2b.ipiranga.com.br/csp/ensb2cws/cbpi.bs.participantePF.Service.CLS?WSDL=1"
|
8
8
|
else
|
9
9
|
"https://b2bdv.ipiranga.com.br/csp/ensb2cws/cbpi.bs.participantePF.Service.CLS?WSDL=1"
|
@@ -24,7 +24,7 @@ module Ipiranga
|
|
24
24
|
|
25
25
|
private
|
26
26
|
|
27
|
-
def
|
27
|
+
def raise_exception(result)
|
28
28
|
case result["msgErro"]
|
29
29
|
when "Usuario/Password Inválido"
|
30
30
|
raise InvalidCredentials.new(result)
|
data/lib/ipiranga/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ipiranga
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amadeus Folego
|
@@ -73,11 +73,11 @@ extensions: []
|
|
73
73
|
extra_rdoc_files: []
|
74
74
|
files:
|
75
75
|
- lib/ipiranga.rb
|
76
|
-
- lib/ipiranga/clients/km.rb
|
77
|
-
- lib/ipiranga/clients/pf.rb
|
78
76
|
- lib/ipiranga/version.rb
|
79
77
|
- lib/ipiranga/client.rb
|
80
78
|
- lib/ipiranga/error.rb
|
79
|
+
- lib/ipiranga/client/km.rb
|
80
|
+
- lib/ipiranga/client/pf.rb
|
81
81
|
homepage: https://github.com/badosu/Ipiranga
|
82
82
|
licenses:
|
83
83
|
- MIT
|
@@ -103,3 +103,4 @@ signing_key:
|
|
103
103
|
specification_version: 4
|
104
104
|
summary: Ipiranga Web Services Client
|
105
105
|
test_files: []
|
106
|
+
has_rdoc:
|