sat_mx 0.4.0 → 0.4.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a6f23a9065a4facc1ea12963a7a27587c8055775cbb729e3070c0a5a2a8144cd
4
- data.tar.gz: c043c861ed94a4cb049b3664f37b6a3b13e502917e28dd7b6f07608f15212485
3
+ metadata.gz: b50921d15e6d187133561b85be1cbf14e12d60b70b93a12524fa78841a44ca02
4
+ data.tar.gz: 3cdd1b25ebe91762b23fad5ce6cf67a40fc659a1202b39ef6303663321217608
5
5
  SHA512:
6
- metadata.gz: 7a4ca5be6421a81e686b084207556f320fc4294d0d9731d9febd8e4d303a49bf10dcbfde496d86d2a8eef72fb172d69b7948ae2812e79f9c950d6749e038c8d8
7
- data.tar.gz: 6dfb7a7364d74260cb0eb5e804b19b2e113e3fbfd8a5a61baee671e22cb15a109618decae7c7851b941e07901e61b93ec9ba12ede074b736e08fe355717bc227
6
+ metadata.gz: 1c582e45f740fb8d3cc79077e73df57e8f5bc1e518ee9a34e821377e13595d8e113f2e37e7ee234be6d6f50046811b05337c120a2a3d4505779e7206e8fa55a8
7
+ data.tar.gz: c4df7db1697b9fc81dd3c837c7789191ddab27b0f62e5725fe467e2ebff1db58453ac2e02642d18eac6afff17899a226a08e313436a4fe25df8888e66b450c22
data/Rakefile CHANGED
@@ -6,3 +6,20 @@ RSpec::Core::RakeTask.new(:spec)
6
6
  require "standard/rake"
7
7
 
8
8
  task default: %i[spec standard]
9
+
10
+ namespace :gem do
11
+ desc "Release gem (Usage: rake gem:release[patch|minor|major])"
12
+ task :release, [:bump_type] do |_t, args|
13
+ bump_type = args[:bump_type] || raise("Please specify bump type: patch, minor, or major")
14
+
15
+ sh "gem bump --version #{bump_type} --no-commit"
16
+ sh "bundle install"
17
+
18
+ version = File.read("lib/sat_mx/version.rb")[/>= (.+)/, 1]
19
+ sh "git add Gemfile.lock"
20
+ sh "git add lib/sat_mx/version.rb"
21
+ sh "git commit -m \"Bump sat_mx to #{version}\""
22
+ sh "git push origin main"
23
+ sh "gem release --tag --push"
24
+ end
25
+ end
@@ -32,10 +32,12 @@ module SatMx
32
32
  Result.new(
33
33
  success?: true,
34
34
  xml: response.xml,
35
- value: response.xml.xpath(
36
- "//xmlns:Paquete",
37
- xmlns: "http://DescargaMasivaTerceros.sat.gob.mx"
38
- ).inner_text
35
+ value: Base64.decode64(
36
+ response.xml.xpath(
37
+ "//xmlns:Paquete",
38
+ xmlns: "http://DescargaMasivaTerceros.sat.gob.mx"
39
+ ).inner_text
40
+ )
39
41
  )
40
42
  else
41
43
  Result.new(
@@ -1,3 +1,3 @@
1
1
  module SatMx
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sat_mx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Rivas
8
+ autorequire:
8
9
  bindir: exe
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2026-03-08 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: xmldsig
@@ -144,6 +145,7 @@ licenses:
144
145
  metadata:
145
146
  homepage_uri: https://github.com/kadru/sat_mx
146
147
  changelog_uri: https://github.com/kadru/sat_mx/CHANGELOG.md
148
+ post_install_message:
147
149
  rdoc_options: []
148
150
  require_paths:
149
151
  - lib
@@ -158,7 +160,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
160
  - !ruby/object:Gem::Version
159
161
  version: '0'
160
162
  requirements: []
161
- rubygems_version: 4.0.4
163
+ rubygems_version: 3.5.11
164
+ signing_key:
162
165
  specification_version: 4
163
166
  summary: a client to connect to SAT web services
164
167
  test_files: []