afipws 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/afipws/version.rb +1 -1
- data/lib/afipws/wsaa.rb +2 -2
- data/lib/afipws/wsfe.rb +2 -2
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/lib/afipws/version.rb
CHANGED
data/lib/afipws/wsaa.rb
CHANGED
@@ -9,13 +9,13 @@ module Afipws
|
|
9
9
|
}
|
10
10
|
|
11
11
|
def initialize options = {}
|
12
|
-
@env = options[:env] || :test
|
12
|
+
@env = (options[:env] || :test).to_sym
|
13
13
|
@key = options[:key]
|
14
14
|
@cert = options[:cert]
|
15
15
|
@service = options[:service] || 'wsfe'
|
16
16
|
@ttl = options[:ttl] || 2400
|
17
17
|
@cuit = options[:cuit]
|
18
|
-
@client = Client.new WSDL[@env
|
18
|
+
@client = Client.new WSDL[@env]
|
19
19
|
end
|
20
20
|
|
21
21
|
def generar_tra service, ttl
|
data/lib/afipws/wsfe.rb
CHANGED
@@ -12,9 +12,9 @@ module Afipws
|
|
12
12
|
}
|
13
13
|
|
14
14
|
def initialize options = {}
|
15
|
-
@env = options[:env] || :test
|
15
|
+
@env = (options[:env] || :test).to_sym
|
16
16
|
@wsaa = options[:wsaa] || WSAA.new(options.merge(:service => 'wsfe'))
|
17
|
-
@client = Client.new WSDL[@env
|
17
|
+
@client = Client.new WSDL[@env]
|
18
18
|
end
|
19
19
|
|
20
20
|
def dummy
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 2
|
9
|
+
version: 0.1.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Emmanuel Nicolau
|
@@ -214,7 +214,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
214
214
|
requirements:
|
215
215
|
- - ">="
|
216
216
|
- !ruby/object:Gem::Version
|
217
|
-
hash:
|
217
|
+
hash: 1974779118108151094
|
218
218
|
segments:
|
219
219
|
- 0
|
220
220
|
version: "0"
|
@@ -223,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
223
223
|
requirements:
|
224
224
|
- - ">="
|
225
225
|
- !ruby/object:Gem::Version
|
226
|
-
hash:
|
226
|
+
hash: 1974779118108151094
|
227
227
|
segments:
|
228
228
|
- 0
|
229
229
|
version: "0"
|