afipws 0.1.7 → 0.1.8
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.
- data/Gemfile.lock +1 -1
- data/lib/afipws/client.rb +5 -2
- data/lib/afipws/version.rb +1 -1
- data/lib/afipws/wsaa.rb +1 -1
- data/lib/afipws/wsfe.rb +3 -2
- data/lib/afipws/wsfev1.wsdl +1372 -0
- data/spec/afipws/wsfe_spec.rb +5 -4
- metadata +5 -4
data/spec/afipws/wsfe_spec.rb
CHANGED
|
@@ -237,15 +237,16 @@ describe Afipws::WSFE do
|
|
|
237
237
|
|
|
238
238
|
context "entorno" do
|
|
239
239
|
it "debería usar las url para development cuando el env es development" do
|
|
240
|
-
Afipws::Client.expects(:new).with("https://wsaahomo.afip.gov.ar/ws/services/LoginCms?wsdl")
|
|
241
|
-
Afipws::Client.expects(:new).with("https://wswhomo.afip.gov.ar/wsfev1/service.asmx?WSDL")
|
|
240
|
+
Afipws::Client.expects(:new).with("https://wsaahomo.afip.gov.ar/ws/services/LoginCms?wsdl", :development)
|
|
241
|
+
Afipws::Client.expects(:new).with("https://wswhomo.afip.gov.ar/wsfev1/service.asmx?WSDL", :development)
|
|
242
242
|
wsfe = Afipws::WSFE.new :env => :development
|
|
243
243
|
wsfe.env.should == :development
|
|
244
244
|
end
|
|
245
245
|
|
|
246
246
|
it "debería usar las url para production cuando el env es production" do
|
|
247
|
-
Afipws::Client.expects(:new).with("https://wsaa.afip.gov.ar/ws/services/LoginCms?wsdl")
|
|
248
|
-
Afipws::Client.expects(:new).with("https://servicios1.afip.gov.ar/wsfev1/service.asmx?WSDL")
|
|
247
|
+
Afipws::Client.expects(:new).with("https://wsaa.afip.gov.ar/ws/services/LoginCms?wsdl", :production)
|
|
248
|
+
# Afipws::Client.expects(:new).with("https://servicios1.afip.gov.ar/wsfev1/service.asmx?WSDL", :production)
|
|
249
|
+
Afipws::Client.expects(:new).with(File.expand_path(File.dirname(__FILE__) + '/../../') + "/lib/afipws/wsfev1.wsdl", :production)
|
|
249
250
|
wsfe = Afipws::WSFE.new :env => 'production'
|
|
250
251
|
wsfe.env.should == :production
|
|
251
252
|
end
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: afipws
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 0.1.
|
|
5
|
+
version: 0.1.8
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Emmanuel Nicolau
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2011-02-
|
|
13
|
+
date: 2011-02-15 00:00:00 -03:00
|
|
14
14
|
default_executable:
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
@@ -140,6 +140,7 @@ files:
|
|
|
140
140
|
- lib/afipws/version.rb
|
|
141
141
|
- lib/afipws/wsaa.rb
|
|
142
142
|
- lib/afipws/wsfe.rb
|
|
143
|
+
- lib/afipws/wsfev1.wsdl
|
|
143
144
|
- spec/afipws/core_ext/hash_spec.rb
|
|
144
145
|
- spec/afipws/test.crt
|
|
145
146
|
- spec/afipws/test.key
|
|
@@ -193,7 +194,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
193
194
|
requirements:
|
|
194
195
|
- - ">="
|
|
195
196
|
- !ruby/object:Gem::Version
|
|
196
|
-
hash: -
|
|
197
|
+
hash: -3816397799162384907
|
|
197
198
|
segments:
|
|
198
199
|
- 0
|
|
199
200
|
version: "0"
|
|
@@ -202,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
202
203
|
requirements:
|
|
203
204
|
- - ">="
|
|
204
205
|
- !ruby/object:Gem::Version
|
|
205
|
-
hash: -
|
|
206
|
+
hash: -3816397799162384907
|
|
206
207
|
segments:
|
|
207
208
|
- 0
|
|
208
209
|
version: "0"
|