sw_fac 0.3.55 → 0.3.58.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/sw_fac/tools.rb CHANGED
@@ -4,11 +4,11 @@ module SwFac
4
4
  def consulta_saldo
5
5
  # Servicio utilizado para consultar los timbres disponibles en el entorno productivo
6
6
 
7
- url_prod = URI("#{SwFac::UrlProduction}account/balance")
8
- http = Net::HTTP.new(url_prod.host, url_prod.port)
7
+ url_prod = URI("#{SwFac::UrlProduction}account/balance")
8
+ http = Net::HTTP.new(url_prod.host, url_prod.port)
9
9
  request = Net::HTTP::Get.new(url_prod)
10
10
  request["Authorization"] = "bearer #{@production_token}"
11
- request.content_type = "application/json"
11
+ request.content_type = "application/json"
12
12
  request["Cache-Control"] = 'no-cache'
13
13
 
14
14
  response_1 = http.request(request)
@@ -41,11 +41,11 @@ module SwFac
41
41
  http = Net::HTTP.new(url.host, url.port)
42
42
  request = Net::HTTP::Get.new(url)
43
43
  request["Authorization"] = "bearer #{@production_token}"
44
- request.content_type = "application/json"
44
+ request.content_type = "application/json"
45
45
  request["Cache-Control"] = 'no-cache'
46
- request["Postman-Token"] = 'a663ff71-f97d-57c9-be0b-1b1cdc06871e'
46
+ request["Postman-Token"] = 'a663ff71-f97d-57c9-be0b-1b1cdc06871e'
47
47
 
48
- pet = http.request(request)
48
+ pet = http.request(request)
49
49
  parsed = JSON.parse(pet.body)
50
50
  response = {}
51
51
 
@@ -76,11 +76,11 @@ module SwFac
76
76
  http = Net::HTTP.new(url.host, url.port)
77
77
  request = Net::HTTP::Get.new(url)
78
78
  request["Authorization"] = "bearer #{@production_token}"
79
- request.content_type = "application/json"
79
+ request.content_type = "application/json"
80
80
  request["Cache-Control"] = 'no-cache'
81
- request["Postman-Token"] = 'e17ee551-7f7a-32a7-8fd8-6b53ea70e3c9'
81
+ request["Postman-Token"] = 'e17ee551-7f7a-32a7-8fd8-6b53ea70e3c9'
82
82
 
83
- pet = http.request(request)
83
+ pet = http.request(request)
84
84
  parsed = JSON.parse(pet.body)
85
85
  response = {}
86
86
 
@@ -1,3 +1,3 @@
1
1
  module SwFac
2
- VERSION = "0.3.55"
3
- end
2
+ VERSION = "0.3.58.1"
3
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sw_fac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.55
4
+ version: 0.3.58.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Angel Padilla
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-30 00:00:00.000000000 Z
11
+ date: 2021-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -67,7 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: 1.10.9
69
69
  description: Gem used to fetch the Smarter Web API for the mexican billing system
70
- (SAT), this gem was builted and is currently used by the team at www.mfactura.ml
70
+ (SAT), this gem was builted and is currently used by the team at mfactura.com
71
71
  email:
72
72
  - angelpadillam@gmail.com
73
73
  executables: []
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0'
131
131
  requirements: []
132
- rubygems_version: 3.0.1
132
+ rubygems_version: 3.0.3
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: Gem used to fetch the Smarter Web API