Skip to content

Commit

Permalink
Merge pull request #7 from natuelabs/ndd-endpoints
Browse files Browse the repository at this point in the history
Update ndd endpoints
  • Loading branch information
edsonlimadev authored Aug 29, 2019
2 parents 4622d5e + 95bb762 commit 957150c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/nfedobrasil.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ module NfedoBrasil
def self.client(config = {}, dev_mode = false)
config = {
wsdl: (dev_mode ?
'https://nfeplacehl.e-datacenter.nddigital.com.br/services/emissor?wsdl' :
'https://ws-nfeplace.e-datacenter.nddigital.com.br/services/emissor?wsdl'),
'https://nfeplacehl.e-datacenter.nddigital.com.br/services/tkemissor?wsdl' :
'https://nfeplacesis.e-datacenter.nddigital.com.br/services/tkemissor?wsdl'),
ssl_verify_mode: :none
}.merge config

Expand Down
2 changes: 1 addition & 1 deletion lib/nfedobrasil/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module NfedoBrasil
VERSION = '0.2.2'
VERSION = '0.2.3'
end
2 changes: 1 addition & 1 deletion spec/lib/nfedobrasil_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

it 'returns a Savon client' do
expect(subject).to be_a Savon::Client
expect(subject.globals[:wsdl]).to match(/https:\/\/ws-nfeplace/)
expect(subject.globals[:wsdl]).to match(/https:\/\/nfeplacesis.e-datacenter/)
end

it 'fails because cert is invalid' do
Expand Down

0 comments on commit 957150c

Please sign in to comment.