nfe-paulistana 1.0.3 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YWQzZmViYTlkMjE0NTU5ZjU3MjQ2NzhlMWM2YzZlNzgxODY1NDhlNQ==
5
- data.tar.gz: !binary |-
6
- NWQ5N2Q1NTI5MDYxZmI4ZDYwNDNjMDY1YjA2ZmRiN2Y2NmM5YWJkZQ==
2
+ SHA1:
3
+ metadata.gz: f4de596a547dbdd16c6cc8a5e2c4ba91f2f127db
4
+ data.tar.gz: 451ba769c46e515455f7f398dada54870479aa09
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- MDhmYjI5ZTVjNDgwYzBiODYyYTFmNGMyZjM3ZDZjMzFhYmQ4MjNiNDM2MmUz
10
- YjEyOTMyNTM4MWJlNGMyYTM3ZGNlYmUxY2Q3YjI3MDM2YzZjNTNjYzgyN2I4
11
- NGVmMWI1Y2ZiZjI2OGMxYWI0ZDYwOGIxZDY3MDRkMDgxNDU5Mzc=
12
- data.tar.gz: !binary |-
13
- YjA0NmNiMTE3Y2M5ZDdjZWVhOTY0YThiNzYyZWIxYTU3MGZiNzJiYmJiMWFk
14
- NGE4MmViZWNlYmYyNGQwNTM3NWNkYWU5MmY2MTMwMmJhODIwNTdmOWIyMjA3
15
- NzlmYTJlOTUzY2NlNGJiYWUyZjM3MWM3MzZkZDZjOGJhOTZjZGI=
6
+ metadata.gz: bf0d9cb6004d94bb86777f48c6c2077421cc5b5ba32d05d23c046713f02527f788076c4d87ce1a1c1d39581cfab0924a02cbbd61d086be4d721490b80e63b998
7
+ data.tar.gz: 398020e018566c6b918372717c3d21f2738d997cfd5e9ff372550b5df4d827a42eb73bcaeda5e93fe75e034310434cc1e1d8dca612a53220aaa5c468cdcc5cf0
@@ -0,0 +1 @@
1
+ 2.2.7
@@ -1,57 +1,62 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nfe-paulistana (1.0.3)
5
- nokogiri (= 1.5.9)
6
- savon (= 2.3.0)
4
+ nfe-paulistana (1.0.5)
5
+ nokogiri (>= 1.9.1)
6
+ savon (>= 2.12)
7
7
  signer
8
8
 
9
9
  GEM
10
10
  remote: http://rubygems.org/
11
11
  specs:
12
- akami (1.2.2)
12
+ akami (1.3.1)
13
13
  gyoku (>= 0.4.0)
14
14
  nokogiri
15
- builder (3.2.2)
16
- columnize (0.8.9)
17
- debugger (1.6.8)
18
- columnize (>= 0.3.1)
19
- debugger-linecache (~> 1.2.0)
20
- debugger-ruby_core_source (~> 1.3.5)
21
- debugger-linecache (1.2.0)
22
- debugger-ruby_core_source (1.3.5)
23
- gyoku (1.1.1)
15
+ builder (3.2.4)
16
+ coderay (1.1.2)
17
+ gyoku (1.3.1)
24
18
  builder (>= 2.1.2)
25
- httpi (2.1.1)
19
+ httpi (2.4.4)
26
20
  rack
27
- rubyntlm (~> 0.3.2)
28
- mime-types (1.25.1)
21
+ socksify
22
+ method_source (0.8.2)
23
+ mini_portile2 (2.4.0)
29
24
  minitest (5.4.0)
30
- nokogiri (1.5.9)
31
- nori (2.3.0)
32
- rack (1.6.4)
25
+ nokogiri (1.9.1)
26
+ mini_portile2 (~> 2.4.0)
27
+ nori (2.6.0)
28
+ pry (0.10.4)
29
+ coderay (~> 1.1.0)
30
+ method_source (~> 0.8.1)
31
+ slop (~> 3.4)
32
+ pry-nav (0.2.4)
33
+ pry (>= 0.9.10, < 0.11.0)
34
+ rack (2.1.4)
33
35
  rake (10.3.2)
34
- rubyntlm (0.3.4)
35
- savon (2.3.0)
36
- akami (~> 1.2.0)
36
+ savon (2.12.0)
37
+ akami (~> 1.2)
37
38
  builder (>= 2.1.2)
38
- gyoku (~> 1.1.0)
39
- httpi (~> 2.1.0)
40
- nokogiri (>= 1.4.0, < 1.6)
41
- nori (~> 2.3.0)
42
- wasabi (~> 3.2.0)
43
- signer (1.4.2)
39
+ gyoku (~> 1.2)
40
+ httpi (~> 2.3)
41
+ nokogiri (>= 1.8.1)
42
+ nori (~> 2.4)
43
+ wasabi (~> 3.4)
44
+ signer (1.9.0)
44
45
  nokogiri (>= 1.5.1)
45
- wasabi (3.2.3)
46
+ slop (3.6.0)
47
+ socksify (1.7.1)
48
+ wasabi (3.5.0)
46
49
  httpi (~> 2.0)
47
- mime-types (< 2.0.0)
48
- nokogiri (>= 1.4.0)
50
+ nokogiri (>= 1.4.2)
49
51
 
50
52
  PLATFORMS
51
53
  ruby
52
54
 
53
55
  DEPENDENCIES
54
- debugger
55
56
  minitest
56
57
  nfe-paulistana!
58
+ pry-nav
57
59
  rake
60
+
61
+ BUNDLED WITH
62
+ 1.17.3
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Iugu
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -6,6 +6,16 @@ Instanciando o Gateway
6
6
 
7
7
  gateway = NfePaulistana::Gateway.new(ssl_cert_p12_path: "path/to/certificate.p12", ssl_cert_path: "path/to/certificate.pem", ssl_key_path: "path/to/key.pem", ssl_cert_pass: "password")
8
8
 
9
+ Use Savon (And HTTPI as HTTP interface)
10
+ -------------------
11
+ If you experience trouble with the HTTPI cURL adapter:
12
+ HTTPI.adapter = :net_http
13
+
14
+ Install certificate chain
15
+ -------------------
16
+ Dont forget to check if you have ca chain installed.
17
+ More info: https://help.ubuntu.com/community/OpenSSL
18
+
9
19
  Metodos
10
20
  ------------
11
21
 
@@ -25,6 +25,7 @@ module NfePaulistana
25
25
  })
26
26
  Response.new(xml: response.hash[:envio_rps_response][:retorno_xml], method: :envio_rps_response)
27
27
  rescue Savon::Error => error
28
+ error
28
29
  end
29
30
  end
30
31
 
@@ -79,7 +79,8 @@ module NfePaulistana
79
79
  response = client.call(method, message: message)
80
80
  method_response = (method.to_s + "_response").to_sym
81
81
  Response.new(xml: response.hash[:envelope][:body][method_response][:retorno_xml], method: method)
82
- rescue Savon::Error
82
+ rescue Savon::Error => error
83
+ error
83
84
  end
84
85
 
85
86
  def get_client
@@ -89,7 +90,6 @@ module NfePaulistana
89
90
  ssl_cert_key_file: @options[:ssl_key_path],
90
91
  ssl_cert_key_password: @options[:ssl_cert_pass],
91
92
  wsdl: @options[:wsdl],
92
- env_namespace: :soap,
93
93
  namespace_identifier: nil)
94
94
  end
95
95
  end
@@ -1,3 +1,3 @@
1
1
  module NfePaulistana
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.5"
3
3
  end
@@ -5,8 +5,8 @@ require "nfe-paulistana/version"
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "nfe-paulistana"
7
7
  s.version = NfePaulistana::VERSION
8
- s.authors = ["Marcelo Paez Sequeira"]
9
- s.email = ["marcelo@iugu.com"]
8
+ s.authors = ["iugu", "Patrick Ribeiro Negri", "Marcelo Paez Sequeira"]
9
+ s.email = ["patrick@iugu.com"]
10
10
  s.homepage = "https://iugu.com"
11
11
  s.summary = %q{Notafiscal Eletronica}
12
12
  s.description = %q{Gema para utilização do Webservice da Nf Paulistana}
@@ -18,12 +18,11 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
- # specify any dependencies here; for example:
22
- s.add_dependency "nokogiri", "1.5.9"
23
- s.add_dependency "savon", "2.3.0"
21
+ s.add_dependency "nokogiri", ">= 1.9.1"
22
+ s.add_dependency "savon", ">= 2.12"
24
23
  s.add_dependency "signer"
24
+
25
25
  s.add_development_dependency "rake"
26
26
  s.add_development_dependency "minitest"
27
- s.add_development_dependency "debugger"
28
- # s.add_runtime_dependency "rest-client"
27
+ s.add_development_dependency "pry-nav"
29
28
  end
@@ -1,5 +1,4 @@
1
1
  require 'minitest'
2
2
  require 'minitest/autorun'
3
3
  require 'minitest/pride'
4
- require 'debugger'
5
4
  require File.expand_path('../../lib/nfe-paulistana.rb', __FILE__)
metadata CHANGED
@@ -1,109 +1,113 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nfe-paulistana
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
+ - iugu
8
+ - Patrick Ribeiro Negri
7
9
  - Marcelo Paez Sequeira
8
10
  autorequire:
9
11
  bindir: bin
10
12
  cert_chain: []
11
- date: 2015-08-10 00:00:00.000000000 Z
13
+ date: 2020-06-23 00:00:00.000000000 Z
12
14
  dependencies:
13
15
  - !ruby/object:Gem::Dependency
14
16
  name: nokogiri
15
17
  requirement: !ruby/object:Gem::Requirement
16
18
  requirements:
17
- - - '='
19
+ - - ">="
18
20
  - !ruby/object:Gem::Version
19
- version: 1.5.9
21
+ version: 1.9.1
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
23
25
  requirements:
24
- - - '='
26
+ - - ">="
25
27
  - !ruby/object:Gem::Version
26
- version: 1.5.9
28
+ version: 1.9.1
27
29
  - !ruby/object:Gem::Dependency
28
30
  name: savon
29
31
  requirement: !ruby/object:Gem::Requirement
30
32
  requirements:
31
- - - '='
33
+ - - ">="
32
34
  - !ruby/object:Gem::Version
33
- version: 2.3.0
35
+ version: '2.12'
34
36
  type: :runtime
35
37
  prerelease: false
36
38
  version_requirements: !ruby/object:Gem::Requirement
37
39
  requirements:
38
- - - '='
40
+ - - ">="
39
41
  - !ruby/object:Gem::Version
40
- version: 2.3.0
42
+ version: '2.12'
41
43
  - !ruby/object:Gem::Dependency
42
44
  name: signer
43
45
  requirement: !ruby/object:Gem::Requirement
44
46
  requirements:
45
- - - ! '>='
47
+ - - ">="
46
48
  - !ruby/object:Gem::Version
47
49
  version: '0'
48
50
  type: :runtime
49
51
  prerelease: false
50
52
  version_requirements: !ruby/object:Gem::Requirement
51
53
  requirements:
52
- - - ! '>='
54
+ - - ">="
53
55
  - !ruby/object:Gem::Version
54
56
  version: '0'
55
57
  - !ruby/object:Gem::Dependency
56
58
  name: rake
57
59
  requirement: !ruby/object:Gem::Requirement
58
60
  requirements:
59
- - - ! '>='
61
+ - - ">="
60
62
  - !ruby/object:Gem::Version
61
63
  version: '0'
62
64
  type: :development
63
65
  prerelease: false
64
66
  version_requirements: !ruby/object:Gem::Requirement
65
67
  requirements:
66
- - - ! '>='
68
+ - - ">="
67
69
  - !ruby/object:Gem::Version
68
70
  version: '0'
69
71
  - !ruby/object:Gem::Dependency
70
72
  name: minitest
71
73
  requirement: !ruby/object:Gem::Requirement
72
74
  requirements:
73
- - - ! '>='
75
+ - - ">="
74
76
  - !ruby/object:Gem::Version
75
77
  version: '0'
76
78
  type: :development
77
79
  prerelease: false
78
80
  version_requirements: !ruby/object:Gem::Requirement
79
81
  requirements:
80
- - - ! '>='
82
+ - - ">="
81
83
  - !ruby/object:Gem::Version
82
84
  version: '0'
83
85
  - !ruby/object:Gem::Dependency
84
- name: debugger
86
+ name: pry-nav
85
87
  requirement: !ruby/object:Gem::Requirement
86
88
  requirements:
87
- - - ! '>='
89
+ - - ">="
88
90
  - !ruby/object:Gem::Version
89
91
  version: '0'
90
92
  type: :development
91
93
  prerelease: false
92
94
  version_requirements: !ruby/object:Gem::Requirement
93
95
  requirements:
94
- - - ! '>='
96
+ - - ">="
95
97
  - !ruby/object:Gem::Version
96
98
  version: '0'
97
99
  description: Gema para utilização do Webservice da Nf Paulistana
98
100
  email:
99
- - marcelo@iugu.com
101
+ - patrick@iugu.com
100
102
  executables: []
101
103
  extensions: []
102
104
  extra_rdoc_files: []
103
105
  files:
104
- - .gitignore
106
+ - ".gitignore"
107
+ - ".ruby-version"
105
108
  - Gemfile
106
109
  - Gemfile.lock
110
+ - LICENSE
107
111
  - README.md
108
112
  - Rakefile
109
113
  - lib/nfe-paulistana.rb
@@ -124,17 +128,17 @@ require_paths:
124
128
  - lib
125
129
  required_ruby_version: !ruby/object:Gem::Requirement
126
130
  requirements:
127
- - - ! '>='
131
+ - - ">="
128
132
  - !ruby/object:Gem::Version
129
133
  version: '0'
130
134
  required_rubygems_version: !ruby/object:Gem::Requirement
131
135
  requirements:
132
- - - ! '>='
136
+ - - ">="
133
137
  - !ruby/object:Gem::Version
134
138
  version: '0'
135
139
  requirements: []
136
140
  rubyforge_project: nfe-paulistana
137
- rubygems_version: 2.4.2
141
+ rubygems_version: 2.4.5.2
138
142
  signing_key:
139
143
  specification_version: 4
140
144
  summary: Notafiscal Eletronica