tnt_fuel_adjustment_coefficients 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.gitignore +9 -0
- data/.rubocop.yml +21 -0
- data/.ruby-version +1 -0
- data/.travis.yml +24 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +42 -0
- data/LICENSE +21 -0
- data/README.md +31 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/certs/bob_levups.pem +25 -0
- data/exe/tnt_fuel_adjustment_coefficients +11 -0
- data/lib/tnt_fuel_adjustment_coefficients.rb +63 -0
- data/tnt_fuel_adjustment_coefficients.gemspec +44 -0
- metadata +162 -0
- metadata.gz.sig +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 38ab603b4e5b8f3b5f59578330aa650f9cbe3067561ac2687dae004b0181faad
|
4
|
+
data.tar.gz: 012e49090ddf0e2d5fb0487c30dbc5358ff9d5047759d12cc2293bc22dba5a84
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1e38ca4d86e9ac071fd28a7a004ea8f3447a13c07d8c37b6e9d49fe505c911607b06adf212e205b037c3d69073bf3f05ba65b8d9d8addce8707cf2dc7e09f1c3
|
7
|
+
data.tar.gz: 38150d6d5ae01b1892e725b5d90ec594d7eb94b45bc8424f2e525965526a272ce7e443bcb38a049851173a832851e058919edf466acb282dae61d7cca3095b16
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
Binary file
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
Style/Documentation:
|
2
|
+
Enabled: false
|
3
|
+
|
4
|
+
Style/FrozenStringLiteralComment:
|
5
|
+
Enabled: false
|
6
|
+
|
7
|
+
Style/StringLiterals:
|
8
|
+
Enabled: false
|
9
|
+
|
10
|
+
Style/GuardClause:
|
11
|
+
Exclude:
|
12
|
+
- './*.gemspec'
|
13
|
+
|
14
|
+
Metrics/BlockLength:
|
15
|
+
Exclude:
|
16
|
+
- './*.gemspec'
|
17
|
+
|
18
|
+
Metrics/LineLength:
|
19
|
+
Exclude:
|
20
|
+
- './*.gemspec'
|
21
|
+
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.5.3
|
data/.travis.yml
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
---
|
2
|
+
sudo: false
|
3
|
+
|
4
|
+
language: ruby
|
5
|
+
|
6
|
+
rvm:
|
7
|
+
- 2.3
|
8
|
+
- 2.4
|
9
|
+
- 2.5
|
10
|
+
- 2.6
|
11
|
+
|
12
|
+
os:
|
13
|
+
- linux
|
14
|
+
- osx
|
15
|
+
|
16
|
+
cache:
|
17
|
+
bundler: true
|
18
|
+
|
19
|
+
before_install:
|
20
|
+
- gem install bundler -v 1.17.1
|
21
|
+
|
22
|
+
script:
|
23
|
+
- bundle install
|
24
|
+
- bundle exec rake test
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
tnt_fuel_adjustment_coefficients (0.1.0)
|
5
|
+
http (~> 4.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
addressable (2.5.2)
|
11
|
+
public_suffix (>= 2.0.2, < 4.0)
|
12
|
+
domain_name (0.5.20180417)
|
13
|
+
unf (>= 0.0.5, < 1.0.0)
|
14
|
+
http (4.0.0)
|
15
|
+
addressable (~> 2.3)
|
16
|
+
http-cookie (~> 1.0)
|
17
|
+
http-form_data (~> 2.0)
|
18
|
+
http_parser.rb (~> 0.6.0)
|
19
|
+
http-cookie (1.0.3)
|
20
|
+
domain_name (~> 0.5)
|
21
|
+
http-form_data (2.1.1)
|
22
|
+
http_parser.rb (0.6.0)
|
23
|
+
minitest (5.11.3)
|
24
|
+
minitest-stub_any_instance (1.0.2)
|
25
|
+
public_suffix (3.0.3)
|
26
|
+
rake (12.3.1)
|
27
|
+
unf (0.1.4)
|
28
|
+
unf_ext
|
29
|
+
unf_ext (0.0.7.5)
|
30
|
+
|
31
|
+
PLATFORMS
|
32
|
+
ruby
|
33
|
+
|
34
|
+
DEPENDENCIES
|
35
|
+
bundler (~> 1.17)
|
36
|
+
minitest (~> 5.1)
|
37
|
+
minitest-stub_any_instance (~> 1.0)
|
38
|
+
rake (~> 12.3)
|
39
|
+
tnt_fuel_adjustment_coefficients!
|
40
|
+
|
41
|
+
BUNDLED WITH
|
42
|
+
1.17.1
|
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2010-2017 Google, Inc. http://angularjs.org
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# TNT Fuel Adjustment Coefficients fetcher
|
2
|
+
|
3
|
+
Retrieve current air and road rates applied to TNT shipping costs and
|
4
|
+
convert them to multipliers we can directly use in your app to calculate
|
5
|
+
precise shipping costs?
|
6
|
+
|
7
|
+
## Usage
|
8
|
+
|
9
|
+
Install the gem:
|
10
|
+
|
11
|
+
$ gem install tnt_fuel_adjustment_coefficients
|
12
|
+
|
13
|
+
Run the gem:
|
14
|
+
|
15
|
+
$ tnt_fuel_adjustment_coefficients
|
16
|
+
|
17
|
+
Get the result:
|
18
|
+
|
19
|
+
# Fuel multipliers for novembre 2018
|
20
|
+
# Fetched from https://www.tnt.com/express/fr_fr/site/home/comment-expedier/facturation/surcharges/baremes-et-historiques.html
|
21
|
+
|
22
|
+
AIR_FUEL_MULTIPLIER = 1.1850
|
23
|
+
ROAD_FUEL_MULTIPLIER = 1.1210
|
24
|
+
|
25
|
+
Or use it in your app:
|
26
|
+
|
27
|
+
require 'tnt_fuel_adjustment_coefficients'
|
28
|
+
|
29
|
+
tnt = TNTFuelAdjustmentCoefficients.new
|
30
|
+
tnt.road_multiplier # 0.1121e1
|
31
|
+
tnt.air_multiplier # 0.1185e1
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "tnt_fuel_adjustment_coefficients"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,25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+
9w0BAQsFAAOCAYEAp/4YIwioG2eVCJ/rGuQXhkK4Q1m7yQK3wmm8SzHbn4hRl0TG
|
17
|
+
Bt3Q9/UB/N5w8HLOeYPR0wmfJ7ngrazqAnWPd/2tPFJ5ovy+zy5777ff2KNadCnI
|
18
|
+
PnNYEldJQinX2PFQrLQu6+ia9TFCS+xSGBLNuF6tdxLNj6wwXV4GbmpKCn+roEbw
|
19
|
+
x2KtEWqghlLMLa/NLl80bF4QOiT4hB5bCv3nP5NEJcyaaFPFtXQL5TConaMTZg3S
|
20
|
+
lGv70G/cGpn1QQjBeIJfxi1pSuJ1wKsQ3/kEJZ+qg8wuD1xHAQ03Rjteavbv/isW
|
21
|
+
2Ds/y1oZIwGFXS0eSJGGRAl6RDjg5ODbw1l1qp2EY0rMJjr6khCmfemTj1CHfaPr
|
22
|
+
1r0R3b6fBvWXGHOWc+LYj2Myd3ISW3d3d1GkcvdT6eka4r+3RrQzlC9zxTwcCuJw
|
23
|
+
jT8ozif/0OTSDY7+8Js1LxoE1c1miwLixh66/avBqoFcnMzfSkTmEv2xVoYiCk0M
|
24
|
+
CrJThrTFQhqQDaVx
|
25
|
+
-----END CERTIFICATE-----
|
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
require 'tnt_fuel_adjustment_coefficients'
|
5
|
+
|
6
|
+
tnt = TntFuelAdjustmentCoefficients.new
|
7
|
+
puts "# Fuel multipliers for #{tnt.time_period}"
|
8
|
+
puts "# Fetched from #{tnt.url}"
|
9
|
+
puts
|
10
|
+
puts "AIR_FUEL_MULTIPLIER = #{format '%.4f', tnt.air_multiplier}"
|
11
|
+
puts "ROAD_FUEL_MULTIPLIER = #{format '%.4f', tnt.road_multiplier}"
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "bigdecimal"
|
4
|
+
require "http"
|
5
|
+
|
6
|
+
class TntFuelAdjustmentCoefficients
|
7
|
+
def initialize
|
8
|
+
@road_multiplier = extracted_values.first
|
9
|
+
@air_multiplier = extracted_values.last(3).first
|
10
|
+
end
|
11
|
+
|
12
|
+
def url
|
13
|
+
"https://www.tnt.com/express/fr_fr/site/home/comment-expedier/facturation/surcharges/baremes-et-historiques.html"
|
14
|
+
end
|
15
|
+
|
16
|
+
def time_period
|
17
|
+
return unless @road_multiplier
|
18
|
+
|
19
|
+
@road_multiplier.first.to_s.strip
|
20
|
+
end
|
21
|
+
|
22
|
+
def road_multiplier
|
23
|
+
return unless @air_multiplier
|
24
|
+
|
25
|
+
format_multiplier @road_multiplier.last.to_s
|
26
|
+
end
|
27
|
+
|
28
|
+
def air_multiplier
|
29
|
+
return unless @road_multiplier
|
30
|
+
|
31
|
+
format_multiplier @air_multiplier.last.to_s
|
32
|
+
end
|
33
|
+
|
34
|
+
private
|
35
|
+
|
36
|
+
def response
|
37
|
+
::HTTP.timeout(10).get(url)
|
38
|
+
rescue HTTP::Error
|
39
|
+
''
|
40
|
+
end
|
41
|
+
|
42
|
+
# [
|
43
|
+
# [" novembre 2018 ", "12,10%"],
|
44
|
+
# ["octobre 2018 ", "11,95%"],
|
45
|
+
# [" septembre 2018 ", "11,95%"],
|
46
|
+
# [" novembre 2018 ", "18,50%"],
|
47
|
+
# ["octobre 2018 ", "17,50%"],
|
48
|
+
# [" septembre 2018 ", "17,50%"]
|
49
|
+
# ]
|
50
|
+
def extracted_values
|
51
|
+
@extracted_values ||=
|
52
|
+
response.to_s
|
53
|
+
.scan(/Surcharge d[e']+(.*): (.*)<br>$/)
|
54
|
+
end
|
55
|
+
|
56
|
+
def format_multiplier(string)
|
57
|
+
string.tr!("%", "")
|
58
|
+
string.tr!(",", ".")
|
59
|
+
|
60
|
+
number = (string.to_f / 100 + 1).round(4)
|
61
|
+
BigDecimal(number.to_s)
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
Gem::Specification.new do |s|
|
2
|
+
s.name = "tnt_fuel_adjustment_coefficients"
|
3
|
+
s.version = "0.1.0"
|
4
|
+
s.authors = ["Bob Maerten", "Clément Joubert"]
|
5
|
+
s.email = ["bob@levups.com", "clement@levups.com"]
|
6
|
+
|
7
|
+
s.date = "2018-11-16"
|
8
|
+
s.summary = "Retrieve current month's TNT's fuel surcharges"
|
9
|
+
s.description = "A simple gem to ease/automate getting this data every month."
|
10
|
+
s.homepage = "https://rubygems.org/gems/tnt_fuel_adjustment_coefficients"
|
11
|
+
s.license = "MIT"
|
12
|
+
|
13
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
14
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
15
|
+
if s.respond_to?(:metadata)
|
16
|
+
s.metadata["allowed_push_host"] = "https://rubygems.org"
|
17
|
+
|
18
|
+
s.metadata["homepage_uri"] = s.homepage
|
19
|
+
s.metadata["source_code_uri"] = "https://github.com/levups/tnt_fuel_adjustment_coefficients"
|
20
|
+
s.metadata["changelog_uri"] = "https://github.com/levups/tnt_fuel_adjustment_coefficients/blob/master/CHANGELOG.md"
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
+
end
|
24
|
+
|
25
|
+
s.bindir = "exe"
|
26
|
+
s.executables = "tnt_fuel_adjustment_coefficients"
|
27
|
+
s.require_paths = ["lib"]
|
28
|
+
# Specify which files should be added to the gem when it is released.
|
29
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
30
|
+
s.files = Dir.chdir(File.expand_path(__dir__)) do
|
31
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
32
|
+
end
|
33
|
+
|
34
|
+
# Signature config
|
35
|
+
s.cert_chain = ["certs/bob_levups.pem"]
|
36
|
+
s.signing_key = File.expand_path("~/.ssh/bob_levups-gem-private_key.pem") if $PROGRAM_NAME.end_with?("gem")
|
37
|
+
|
38
|
+
s.add_dependency "http", "~> 4.0"
|
39
|
+
|
40
|
+
s.add_development_dependency "bundler", "~> 1.17"
|
41
|
+
s.add_development_dependency "minitest", "~> 5.1"
|
42
|
+
s.add_development_dependency "minitest-stub_any_instance", "~> 1.0"
|
43
|
+
s.add_development_dependency "rake", "~> 12.3"
|
44
|
+
end
|
metadata
ADDED
@@ -0,0 +1,162 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tnt_fuel_adjustment_coefficients
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Bob Maerten
|
8
|
+
- Clément Joubert
|
9
|
+
autorequire:
|
10
|
+
bindir: exe
|
11
|
+
cert_chain:
|
12
|
+
- |
|
13
|
+
-----BEGIN CERTIFICATE-----
|
14
|
+
MIIEKDCCApCgAwIBAgIBATANBgkqhkiG9w0BAQsFADAfMR0wGwYDVQQDDBRib2Iv
|
15
|
+
REM9bGV2dXBzL0RDPWNvbTAeFw0xODExMTYwODU2MjNaFw0xOTExMTYwODU2MjNa
|
16
|
+
MB8xHTAbBgNVBAMMFGJvYi9EQz1sZXZ1cHMvREM9Y29tMIIBojANBgkqhkiG9w0B
|
17
|
+
AQEFAAOCAY8AMIIBigKCAYEA7XI0+NhEI2y0RnOR6b1sTMXGldA57XhzTorPtk7l
|
18
|
+
CkOeiMBZzzK+femZhA4Y81TyUFSlg3TO/ggqEv2M0poXkz0xAXlzEqPF2P24UBs8
|
19
|
+
yYWzO5RxrVHlm2Y6qS/tT8BtD0onXQQEsRH3q0dMHqGLVXTgLDeZ66Rx6+M8GZ1H
|
20
|
+
PvwqINOgFEhdnWQPhFPZILBRrGo/BrToZFYBRGy4LO4+M1wFxlh4CbVNGK2tnwIM
|
21
|
+
XkmVCzxTq+e+UoWgUrJYTSAvOxXqe8DlwDTeexaBdCVRG6aRIW1EAgctJDunRCTD
|
22
|
+
r/mYiPuZcfkjKZwGpw6oz5+68FpgHz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00:00:00.000000000 Z
|
39
|
+
dependencies:
|
40
|
+
- !ruby/object:Gem::Dependency
|
41
|
+
name: http
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '4.0'
|
47
|
+
type: :runtime
|
48
|
+
prerelease: false
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '4.0'
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
name: bundler
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '1.17'
|
61
|
+
type: :development
|
62
|
+
prerelease: false
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '1.17'
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: minitest
|
70
|
+
requirement: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '5.1'
|
75
|
+
type: :development
|
76
|
+
prerelease: false
|
77
|
+
version_requirements: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '5.1'
|
82
|
+
- !ruby/object:Gem::Dependency
|
83
|
+
name: minitest-stub_any_instance
|
84
|
+
requirement: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '1.0'
|
89
|
+
type: :development
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '1.0'
|
96
|
+
- !ruby/object:Gem::Dependency
|
97
|
+
name: rake
|
98
|
+
requirement: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '12.3'
|
103
|
+
type: :development
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '12.3'
|
110
|
+
description: A simple gem to ease/automate getting this data every month.
|
111
|
+
email:
|
112
|
+
- bob@levups.com
|
113
|
+
- clement@levups.com
|
114
|
+
executables:
|
115
|
+
- tnt_fuel_adjustment_coefficients
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files: []
|
118
|
+
files:
|
119
|
+
- ".gitignore"
|
120
|
+
- ".rubocop.yml"
|
121
|
+
- ".ruby-version"
|
122
|
+
- ".travis.yml"
|
123
|
+
- Gemfile
|
124
|
+
- Gemfile.lock
|
125
|
+
- LICENSE
|
126
|
+
- README.md
|
127
|
+
- Rakefile
|
128
|
+
- bin/console
|
129
|
+
- bin/setup
|
130
|
+
- certs/bob_levups.pem
|
131
|
+
- exe/tnt_fuel_adjustment_coefficients
|
132
|
+
- lib/tnt_fuel_adjustment_coefficients.rb
|
133
|
+
- tnt_fuel_adjustment_coefficients.gemspec
|
134
|
+
homepage: https://rubygems.org/gems/tnt_fuel_adjustment_coefficients
|
135
|
+
licenses:
|
136
|
+
- MIT
|
137
|
+
metadata:
|
138
|
+
allowed_push_host: https://rubygems.org
|
139
|
+
homepage_uri: https://rubygems.org/gems/tnt_fuel_adjustment_coefficients
|
140
|
+
source_code_uri: https://github.com/levups/tnt_fuel_adjustment_coefficients
|
141
|
+
changelog_uri: https://github.com/levups/tnt_fuel_adjustment_coefficients/blob/master/CHANGELOG.md
|
142
|
+
post_install_message:
|
143
|
+
rdoc_options: []
|
144
|
+
require_paths:
|
145
|
+
- lib
|
146
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - ">="
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
151
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - ">="
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '0'
|
156
|
+
requirements: []
|
157
|
+
rubyforge_project:
|
158
|
+
rubygems_version: 2.7.7
|
159
|
+
signing_key:
|
160
|
+
specification_version: 4
|
161
|
+
summary: Retrieve current month's TNT's fuel surcharges
|
162
|
+
test_files: []
|
metadata.gz.sig
ADDED
Binary file
|