fdis 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fdis/config.rb +9 -0
- data/lib/fdis/facturacion.rb +5 -3
- data/lib/fdis/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f555a3706777fe8d5425a1d7cca9f79bb4b34d6dc4411868aa50e8a19b9822e
|
4
|
+
data.tar.gz: 17a4190069accb20e5b228a2c289827320bda98cd2fee2ee37fd4526b51266af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c8b36fe4e65f960ae587c9686990504a842c5988783a92e3726bda007192cb50c393ba4e9e2a6323bd59fef222caebcf4ab600df9d752cb9ddf9500b3002d13
|
7
|
+
data.tar.gz: 56323b116dc3cd4f6a3feedd028b643e6669a6b9243fede5c8adc485b786757e599b93da1f2b5d46266ead8c9dcd11a5c6a4637c2376823e7ffce504dc6d34e1
|
data/lib/fdis/config.rb
CHANGED
@@ -15,6 +15,15 @@ module Fdis
|
|
15
15
|
@doc_cer_path = doc_cer_path
|
16
16
|
@production = production
|
17
17
|
|
18
|
+
puts "------ Fdis: Config inicial ---"
|
19
|
+
puts "-- id servicio: #{@id_servicio}"
|
20
|
+
puts "-- rfc: #{@rfc}"
|
21
|
+
puts "-- razon: #{@razon}"
|
22
|
+
puts "-- regimen_fiscal: #{@regimen_fiscal}"
|
23
|
+
puts "-- key_path: #{@doc_key_path}"
|
24
|
+
puts "-- cer_path: #{@doc_cer_path}"
|
25
|
+
puts "-- production: #{@production}"
|
26
|
+
|
18
27
|
key_to_pem
|
19
28
|
serial_number
|
20
29
|
cer_cadena
|
data/lib/fdis/facturacion.rb
CHANGED
@@ -773,9 +773,11 @@ module Fdis
|
|
773
773
|
json_response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http|
|
774
774
|
http.request(request)
|
775
775
|
end
|
776
|
-
|
777
|
-
puts "
|
778
|
-
puts "-- #{json_response} --"
|
776
|
+
|
777
|
+
puts "---- Fdis: Respuesta"
|
778
|
+
puts "-- Codigo: #{json_response.code} --"
|
779
|
+
puts "-- Mensaje: #{json_response.message} --"
|
780
|
+
puts "-- Body: #{json_response.body} --"
|
779
781
|
|
780
782
|
response = JSON.parse(json_response.body)
|
781
783
|
|
data/lib/fdis/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fdis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Angel Padilla
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|