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 CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- afipws (0.1.1)
4
+ afipws (0.1.2)
5
5
  activesupport
6
6
  builder
7
7
  httpclient
@@ -1,3 +1,3 @@
1
1
  module Afipws
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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.to_sym]
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.to_sym]
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
- - 1
9
- version: 0.1.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: -4544236781708141124
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: -4544236781708141124
226
+ hash: 1974779118108151094
227
227
  segments:
228
228
  - 0
229
229
  version: "0"