deliveries 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +11 -4
- data/CHANGELOG.md +6 -1
- data/Gemfile.lock +7 -7
- data/deliveries.gemspec +1 -1
- data/lib/deliveries/couriers/correos_express.rb +3 -3
- data/lib/deliveries/couriers/mondial_relay.rb +3 -3
- data/lib/deliveries/couriers/spring.rb +1 -1
- data/lib/deliveries/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d11e436dd4d34e2e88e3de41473d8f4a2bfa6b2100e525d3d8ae0f356d87549
|
4
|
+
data.tar.gz: c9f732c60544f816d13e12f432e938963cf066d639deebf8b158e4229619e5cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b74a3c207d944930b41bd889261887a87981371ec793cceb217a138619dc4f178951717cac0ccac022c237678acc30f6e949f3e527fe1e165dbb47cd6688c9f7
|
7
|
+
data.tar.gz: da7a4fb1c9776f38ece6afa1944471e2516a9666296fafd0fc4c948ec1a4d4cfce7e390cd6d10743fc478e2836790e53e82ebdfe81052d9ec6059cdbd91cc850
|
data/.github/workflows/main.yml
CHANGED
@@ -1,19 +1,26 @@
|
|
1
1
|
name: Ruby
|
2
2
|
|
3
|
-
on: [push,pull_request]
|
3
|
+
on: [push, pull_request]
|
4
4
|
|
5
5
|
jobs:
|
6
6
|
build:
|
7
7
|
runs-on: ubuntu-latest
|
8
|
+
|
9
|
+
strategy:
|
10
|
+
fail-fast: false
|
11
|
+
matrix:
|
12
|
+
ruby: [2.6, 2.7, '3.0']
|
13
|
+
|
8
14
|
steps:
|
9
15
|
- uses: actions/checkout@v2
|
10
|
-
- name:
|
16
|
+
- name: Install poppler-utils
|
17
|
+
run: sudo apt-get install poppler-utils
|
18
|
+
- name: Set up Ruby ${{ matrix.ruby }}
|
11
19
|
uses: ruby/setup-ruby@v1
|
12
20
|
with:
|
13
|
-
ruby-version:
|
21
|
+
ruby-version: ${{ matrix.ruby }}
|
14
22
|
- name: Run the default task
|
15
23
|
run: |
|
16
|
-
sudo apt-get install poppler-utils
|
17
24
|
gem install bundler -v 2.2.4
|
18
25
|
bundle install
|
19
26
|
bundle exec rake
|
data/CHANGELOG.md
CHANGED
@@ -6,8 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [0.1.1] - 2021-10-11
|
10
|
+
### Fixed
|
11
|
+
- Fix keyword parameter passing to make it compatible with Ruby 3.0.
|
12
|
+
|
9
13
|
## [0.1.0] - 2021-09-27
|
10
14
|
🎉 First release!
|
11
15
|
|
12
|
-
[Unreleased]: https://github.com/ecommerce-ventures/deliveries/compare/v0.1.
|
16
|
+
[Unreleased]: https://github.com/ecommerce-ventures/deliveries/compare/v0.1.1...HEAD
|
17
|
+
[0.1.1]: https://github.com/ecommerce-ventures/deliveries/compare/v0.1.0...v0.1.1
|
13
18
|
[0.1.0]: https://github.com/ecommerce-ventures/deliveries/releases/tag/v0.1.0
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
deliveries (0.1.
|
4
|
+
deliveries (0.1.1)
|
5
5
|
activesupport (>= 5.2.0)
|
6
6
|
hexapdf
|
7
7
|
httparty
|
@@ -12,7 +12,7 @@ PATH
|
|
12
12
|
GEM
|
13
13
|
remote: https://rubygems.org/
|
14
14
|
specs:
|
15
|
-
activesupport (6.1.4)
|
15
|
+
activesupport (6.1.4.1)
|
16
16
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
17
17
|
i18n (>= 1.6, < 2)
|
18
18
|
minitest (>= 5.1)
|
@@ -35,24 +35,24 @@ GEM
|
|
35
35
|
gyoku (1.3.1)
|
36
36
|
builder (>= 2.1.2)
|
37
37
|
hashdiff (1.0.1)
|
38
|
-
hexapdf (0.
|
38
|
+
hexapdf (0.16.0)
|
39
39
|
cmdparse (~> 3.0, >= 3.0.3)
|
40
40
|
geom2d (~> 0.3)
|
41
|
-
httparty (0.
|
41
|
+
httparty (0.20.0)
|
42
42
|
mime-types (~> 3.0)
|
43
43
|
multi_xml (>= 0.5.2)
|
44
|
-
httpi (2.
|
44
|
+
httpi (2.5.0)
|
45
45
|
rack
|
46
46
|
socksify
|
47
47
|
i18n (1.8.10)
|
48
48
|
concurrent-ruby (~> 1.0)
|
49
49
|
mime-types (3.3.1)
|
50
50
|
mime-types-data (~> 3.2015)
|
51
|
-
mime-types-data (3.2021.
|
51
|
+
mime-types-data (3.2021.0901)
|
52
52
|
mini_magick (4.11.0)
|
53
53
|
minitest (5.14.4)
|
54
54
|
multi_xml (0.6.0)
|
55
|
-
nokogiri (1.12.
|
55
|
+
nokogiri (1.12.5-x86_64-linux)
|
56
56
|
racc (~> 1.4)
|
57
57
|
nori (2.6.0)
|
58
58
|
parallel (1.20.1)
|
data/deliveries.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
|
|
15
15
|
|
16
16
|
spec.metadata['homepage_uri'] = spec.homepage
|
17
17
|
spec.metadata['source_code_uri'] = 'https://github.com/ecommerce-ventures/deliveries'
|
18
|
-
spec.metadata['changelog_uri'] = 'https://github.com/ecommerce-ventures/deliveries/CHANGELOG.md'
|
18
|
+
spec.metadata['changelog_uri'] = 'https://github.com/ecommerce-ventures/deliveries/blob/master/CHANGELOG.md'
|
19
19
|
|
20
20
|
# Specify which files should be added to the gem when it is released.
|
21
21
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
@@ -51,7 +51,7 @@ module Deliveries
|
|
51
51
|
points = CollectionPoints::Search.new(postcode: postcode).execute
|
52
52
|
points.each do |point|
|
53
53
|
collection_point_params = CollectionPoints::Search::FormatResponse.new(response: point).execute
|
54
|
-
collection_points << Deliveries::CollectionPoint.new(collection_point_params)
|
54
|
+
collection_points << Deliveries::CollectionPoint.new(**collection_point_params)
|
55
55
|
end
|
56
56
|
|
57
57
|
collection_points
|
@@ -79,7 +79,7 @@ module Deliveries
|
|
79
79
|
).execute
|
80
80
|
|
81
81
|
tracking_info_params = Shipments::Trace::FormatResponse.new(response: response).execute
|
82
|
-
Deliveries::TrackingInfo.new(tracking_info_params)
|
82
|
+
Deliveries::TrackingInfo.new(**tracking_info_params)
|
83
83
|
end
|
84
84
|
|
85
85
|
def pickup_info(tracking_code:, **)
|
@@ -89,7 +89,7 @@ module Deliveries
|
|
89
89
|
|
90
90
|
tracking_info_params = Pickups::Trace::FormatResponse.new(response: response).execute
|
91
91
|
|
92
|
-
Deliveries::TrackingInfo.new(tracking_info_params)
|
92
|
+
Deliveries::TrackingInfo.new(**tracking_info_params)
|
93
93
|
end
|
94
94
|
|
95
95
|
def get_label(tracking_code:, **)
|
@@ -48,7 +48,7 @@ module Deliveries
|
|
48
48
|
collection_points = []
|
49
49
|
[response_result.dig(:points_relais, :point_relais_details)].flatten.compact.each do |point_params|
|
50
50
|
collection_point_params = CollectionPoints::Search::FormatResponse.new(response: point_params).execute
|
51
|
-
collection_points << Deliveries::CollectionPoint.new(collection_point_params)
|
51
|
+
collection_points << Deliveries::CollectionPoint.new(**collection_point_params)
|
52
52
|
end
|
53
53
|
|
54
54
|
collection_points
|
@@ -81,7 +81,7 @@ module Deliveries
|
|
81
81
|
|
82
82
|
if response_result[:stat] == '0' && point_relais_details.present?
|
83
83
|
collection_point_params = CollectionPoints::Search::FormatResponse.new(response: point_relais_details).execute
|
84
|
-
Deliveries::CollectionPoint.new(collection_point_params)
|
84
|
+
Deliveries::CollectionPoint.new(**collection_point_params)
|
85
85
|
else
|
86
86
|
raise Deliveries::APIError.new(
|
87
87
|
StatusCodes.message_for(response_result[:stat].to_i),
|
@@ -154,7 +154,7 @@ module Deliveries
|
|
154
154
|
tracking_info_params = Shipments::Trace::FormatResponse.new(response: response).execute
|
155
155
|
|
156
156
|
tracking_info_params = tracking_info_params.merge(tracking_code: tracking_code)
|
157
|
-
Deliveries::TrackingInfo.new(tracking_info_params)
|
157
|
+
Deliveries::TrackingInfo.new(**tracking_info_params)
|
158
158
|
end
|
159
159
|
|
160
160
|
def pickup_info(tracking_code:, language: 'FR')
|
@@ -30,7 +30,7 @@ module Deliveries
|
|
30
30
|
).execute
|
31
31
|
|
32
32
|
tracking_info_params = Shipments::Trace::FormatResponse.new(response: response).execute
|
33
|
-
Deliveries::TrackingInfo.new(tracking_info_params)
|
33
|
+
Deliveries::TrackingInfo.new(**tracking_info_params)
|
34
34
|
end
|
35
35
|
|
36
36
|
def get_label(tracking_code:, **)
|
data/lib/deliveries/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deliveries
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fran Vega
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2021-
|
14
|
+
date: 2021-10-11 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|
@@ -217,7 +217,7 @@ licenses:
|
|
217
217
|
metadata:
|
218
218
|
homepage_uri: https://github.com/ecommerce-ventures/deliveries
|
219
219
|
source_code_uri: https://github.com/ecommerce-ventures/deliveries
|
220
|
-
changelog_uri: https://github.com/ecommerce-ventures/deliveries/CHANGELOG.md
|
220
|
+
changelog_uri: https://github.com/ecommerce-ventures/deliveries/blob/master/CHANGELOG.md
|
221
221
|
post_install_message:
|
222
222
|
rdoc_options: []
|
223
223
|
require_paths:
|