bravo 0.3.6 → 0.4.0

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/CHANGELOG CHANGED
@@ -1,4 +1,8 @@
1
- *Bravo 0.3.6 (March 14, 2011) *
1
+ *Bravo 0.4.0 (March 21, 2011)*
2
+
3
+ * Auth service URL is now part of the config [miloops]
4
+
5
+ *Bravo 0.3.6 (March 14, 2011)*
2
6
 
3
7
  * Hash extensions play nice with Rails 2.3 ruby 1.9 [miloops]
4
8
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.6
1
+ 0.4.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bravo}
8
- s.version = "0.3.6"
8
+ s.version = "0.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Leandro Marcucci"]
12
- s.date = %q{2011-03-14}
12
+ s.date = %q{2011-03-21}
13
13
  s.description = %q{Adaptador para el Web Service de Facturacion Electronica de AFIP}
14
14
  s.email = %q{leanucci@vurbia.com}
15
15
  s.extra_rdoc_files = [
@@ -17,7 +17,7 @@ module Bravo
17
17
 
18
18
  extend self
19
19
  attr_accessor :cuit, :sale_point, :service_url, :default_documento, :pkey, :cert,
20
- :default_concepto, :default_moneda, :own_iva_cond, :verbose
20
+ :default_concepto, :default_moneda, :own_iva_cond, :verbose, :auth_url
21
21
 
22
22
  def auth_hash
23
23
  {"Token" => Bravo::TOKEN, "Sign" => Bravo::SIGN, "Cuit" => Bravo.cuit}
@@ -12,7 +12,7 @@ module Bravo
12
12
  end
13
13
 
14
14
  todays_datafile = "/tmp/bravo_#{Time.new.strftime('%d_%m_%Y')}.yml"
15
- opts = "-u https://wsaahomo.afip.gov.ar/ws/services/LoginCms"
15
+ opts = "-u #{Bravo.auth_url}"
16
16
  opts += " -k #{Bravo.pkey}"
17
17
  opts += " -c #{Bravo.cert}"
18
18
 
@@ -1,3 +1,3 @@
1
1
  module Bravo
2
- VERSION = "0.3.6"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -15,6 +15,7 @@ Bravo.pkey = "spec/fixtures/pkey"
15
15
  Bravo.cert = "spec/fixtures/cert.crt"
16
16
  Bravo.cuit = ENV["CUIT"] || raise(Bravo::NullOrInvalidAttribute.new, "Please set CUIT env variable.")
17
17
  Bravo.sale_point = "0002"
18
+ Bravo.auth_url = "https://wsaahomo.afip.gov.ar/ws/services/LoginCms"
18
19
  Bravo.service_url = "http://wswhomo.afip.gov.ar/wsfev1/service.asmx?WSDL"
19
20
  Bravo.default_concepto = "Productos y Servicios"
20
21
  Bravo.default_documento = "CUIT"
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bravo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 3
9
- - 6
10
- version: 0.3.6
8
+ - 4
9
+ - 0
10
+ version: 0.4.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Leandro Marcucci
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-14 00:00:00 -03:00
18
+ date: 2011-03-21 00:00:00 -03:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency