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 +4 -4
- data/Rakefile +17 -0
- data/lib/sat_mx/download_petition.rb +6 -4
- data/lib/sat_mx/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b50921d15e6d187133561b85be1cbf14e12d60b70b93a12524fa78841a44ca02
|
|
4
|
+
data.tar.gz: 3cdd1b25ebe91762b23fad5ce6cf67a40fc659a1202b39ef6303663321217608
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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(
|
data/lib/sat_mx/version.rb
CHANGED
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.
|
|
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:
|
|
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:
|
|
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: []
|