require 'bravo'
require 'pp'
# Set up Bravo defaults/config.
Bravo.pkey = 'config/fiscal/parcels_privada.key'
Bravo.cert = 'config/fiscal/RESULTADO_AFIP.crt'
Bravo.cuit = '33711904439'
Bravo.sale_point = '0002'
Bravo.default_concepto = 'Productos y Servicios'
Bravo.default_moneda = :peso
Bravo.own_iva_cond = :responsable_inscripto
#Bravo.openssl_bin = '/usr/bin/openssl'
#Bravo::AuthData.environment = :test
# Let's issue a Factura for 1200 ARS to a Responsable Inscripto
bill_a = Bravo::Bill.new(iva_cond: :responsable_inscripto, net: 121, invoice_type: :invoice)
bill_a.authorize
puts "Let's issue a Factura for 1200 ARS to a Responsable Inscripto"
puts "Authorization result = #{ bill_a.authorized? }"
puts "Authorization response."
pp bill_a.response
y la salida es esta
tmp/bravo_33711904439_23_10_2017.yml
authorize
20171023
D, [2017-10-23T21:39:37.465127 #26929] DEBUG -- : HTTPI executes HTTP GET using the net_http adapter
------
/var/lib/gems/2.3.0/gems/httpi-0.9.7/lib/httpi/request.rb:93:in `normalize_url!': Invalid URL: (ArgumentError)
from /var/lib/gems/2.3.0/gems/httpi-0.9.7/lib/httpi/request.rb:27:in `url='
from /var/lib/gems/2.3.0/gems/savon-0.9.7/lib/savon/soap/request.rb:39:in `setup'
from /var/lib/gems/2.3.0/gems/savon-0.9.7/lib/savon/soap/request.rb:23:in `initialize'
from /var/lib/gems/2.3.0/gems/savon-0.9.7/lib/savon/client.rb:79:in `new'
from /var/lib/gems/2.3.0/gems/savon-0.9.7/lib/savon/client.rb:79:in `request'
from /var/lib/gems/2.3.0/gems/bravo-0.4.0/lib/bravo/bill.rb:121:in `next_bill_number'
from /var/lib/gems/2.3.0/gems/bravo-0.4.0/lib/bravo/bill.rb:109:in `setup_bill'
from /var/lib/gems/2.3.0/gems/bravo-0.4.0/lib/bravo/bill.rb:60:in `authorize'
from prueba.rb:21:in `<main>'
lo he estado tocando y he ido superando algunos errores pero me quedo ahi.-
gracias