fedex_rate_getter 0.1.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9284bc1551b6536592a805000b5f612d5adf7e5f972b398e8b0054f79962333b
4
+ data.tar.gz: 6e2c632974b44ce6f1d0e777b9a925e8909b991e30723d52dc099993228bda15
5
+ SHA512:
6
+ metadata.gz: c2ca178c499078e50c9da9adbc53de8ca9b084f1fdfc12b782c669b9073e406240dcc4e035c46ca81b7c187fae0a292f38d9ca83306f0777613df46b65bcb8e1
7
+ data.tar.gz: f4c6da665b9e1ee864e0bb9c734c8c70218b5e9ae43292f041f8195dba119049fb38d18f1d47dbaffd339d90625e778f21681ae2b06bc46b01b2e73f2e608651
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.7.4
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ ---
2
+ language: ruby
3
+ cache: bundler
4
+ rvm:
5
+ - 2.7.4
6
+ before_install: gem install bundler -v 2.1.4
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at TODO: Write your email address. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,10 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in fedex_rate_getter.gemspec
4
+ gemspec
5
+
6
+ gem "rake", "~> 12.0"
7
+ gem "rspec", "~> 3.0"
8
+ gem 'faraday', '~> 0.9.2'
9
+ gem 'libxml-ruby', '~> 3.2.3'
10
+ gem 'activesupport', '~> 5.0'
data/Gemfile.lock ADDED
@@ -0,0 +1,53 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ fedex_rate_getter (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ activesupport (5.2.8.1)
10
+ concurrent-ruby (~> 1.0, >= 1.0.2)
11
+ i18n (>= 0.7, < 2)
12
+ minitest (~> 5.1)
13
+ tzinfo (~> 1.1)
14
+ concurrent-ruby (1.1.10)
15
+ diff-lcs (1.5.0)
16
+ faraday (0.9.2)
17
+ multipart-post (>= 1.2, < 3)
18
+ i18n (1.12.0)
19
+ concurrent-ruby (~> 1.0)
20
+ libxml-ruby (3.2.3)
21
+ minitest (5.16.3)
22
+ multipart-post (2.2.3)
23
+ rake (12.3.3)
24
+ rspec (3.11.0)
25
+ rspec-core (~> 3.11.0)
26
+ rspec-expectations (~> 3.11.0)
27
+ rspec-mocks (~> 3.11.0)
28
+ rspec-core (3.11.0)
29
+ rspec-support (~> 3.11.0)
30
+ rspec-expectations (3.11.0)
31
+ diff-lcs (>= 1.2.0, < 2.0)
32
+ rspec-support (~> 3.11.0)
33
+ rspec-mocks (3.11.1)
34
+ diff-lcs (>= 1.2.0, < 2.0)
35
+ rspec-support (~> 3.11.0)
36
+ rspec-support (3.11.0)
37
+ thread_safe (0.3.6)
38
+ tzinfo (1.2.10)
39
+ thread_safe (~> 0.1)
40
+
41
+ PLATFORMS
42
+ x86_64-darwin-21
43
+
44
+ DEPENDENCIES
45
+ activesupport (~> 5.0)
46
+ faraday (~> 0.9.2)
47
+ fedex_rate_getter!
48
+ libxml-ruby (~> 3.2.3)
49
+ rake (~> 12.0)
50
+ rspec (~> 3.0)
51
+
52
+ BUNDLED WITH
53
+ 2.3.19
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 TODO: Write your name
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,75 @@
1
+ ## Installation
2
+
3
+ Add this line to your application's Gemfile:
4
+
5
+ ```ruby
6
+ gem 'fedex_rate_getter'
7
+ ```
8
+
9
+ And then execute:
10
+
11
+ $ bundle install
12
+
13
+ Or install it yourself as:
14
+
15
+ $ gem install fedex_rate_getter
16
+
17
+ ## Usage
18
+
19
+ ```ruby
20
+ require 'fedex_rate_getter'
21
+
22
+
23
+ FedexRateGetter::Rate.get(credentials, quote_params)
24
+ ```
25
+
26
+ These are the correct structures for:
27
+
28
+ ```json
29
+
30
+ quote_params = {
31
+ address_from: {
32
+ zip: "64000",
33
+ country: "MX"
34
+ },
35
+ address_to: {
36
+ zip: "64000",
37
+ country: "MX"
38
+ },
39
+ parcel: {
40
+ length: 25,
41
+ width: 28,
42
+ height: 46.0,
43
+ distance_unit: "cm",
44
+ weight: 6.5,
45
+ mass_unit: "kg"
46
+ }
47
+ }
48
+
49
+ credentials = {
50
+ user_credential: {
51
+ key: 'bkjdkeEWIgUhxdghtLw9L', # api key
52
+ password: '6p8oOccHmDwuJZCyJs44wQ0Iw' # api password
53
+ },
54
+ client_detail: {
55
+ account_number: '510087720', #fedex account number
56
+ metter_number: '119238439', #fedex metter number
57
+ language_code: 'es', # language [es, en, ...]
58
+ locale_code: 'mx' # Country code [mx, usa, ...]
59
+ }
60
+ }
61
+ ```
62
+
63
+
64
+ ## Contributing
65
+
66
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/fedex_rate_getter. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/fedex_rate_getter/blob/master/CODE_OF_CONDUCT.md).
67
+
68
+
69
+ ## License
70
+
71
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
72
+
73
+ ## Code of Conduct
74
+
75
+ Everyone interacting in the FedexRateGetter project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/fedex_rate_getter/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "fedex_rate_getter"
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,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,33 @@
1
+ require_relative 'lib/fedex_rate_getter/version'
2
+ require_relative "lib/fedex_rate_getter/version"
3
+ require_relative "lib/fedex_rate_getter/connection"
4
+ require_relative "lib/fedex_rate_getter/formatter/body"
5
+ require_relative "lib/fedex_rate_getter/formatter/response"
6
+
7
+
8
+ Gem::Specification.new do |spec|
9
+ spec.name = "fedex_rate_getter"
10
+ spec.version = FedexRateGetter::VERSION
11
+ spec.authors = ["Write your name"]
12
+ spec.email = ["Write your email address"]
13
+
14
+ spec.summary = %q{Write a short summary, because RubyGems requires one.}
15
+ spec.description = %q{Write a longer description or delete this line.}
16
+ spec.homepage = "http://github.com"
17
+ spec.license = "MIT"
18
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
19
+
20
+ # Specify which files should be added to the gem when it is released.
21
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
22
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
23
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
24
+ end
25
+
26
+ spec.bindir = "exe"
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ["lib"]
29
+
30
+ spec.add_runtime_dependency 'libxml-ruby', '~> 3.2.3'
31
+ spec.add_runtime_dependency 'activesupport', '~> 5.0'
32
+ spec.add_runtime_dependency 'faraday', '~> 0.9.2'
33
+ end
@@ -0,0 +1,17 @@
1
+ require 'faraday'
2
+
3
+ module FedexRateGetter
4
+ class Connection
5
+ API_URL = 'https://wsbeta.fedex.com:443/xml'
6
+
7
+ attr_accessor :api_connection
8
+
9
+ def initialize
10
+ @api_connection = Faraday.new(API_URL)
11
+ end
12
+
13
+ def get_rates(body)
14
+ api_connection.post(API_URL, body, 'Content-Type' => 'application/xml')
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,122 @@
1
+ require 'libxml'
2
+
3
+ module FedexRateGetter
4
+ module Formatter
5
+ class Body
6
+ attr_accessor :body
7
+
8
+ def initialize(credentials, quote_params)
9
+ @body = build_body(credentials, quote_params)
10
+ end
11
+
12
+ private
13
+
14
+ # Creates an XML as requested by the FedEx Api based on the given params
15
+ # @params {JSon} credentials, quote_params
16
+ def build_body(credentials, quote_params)
17
+ doc = create_doc
18
+
19
+ format_credentials(doc, credentials)
20
+ format_params(doc, quote_params)
21
+
22
+ doc.root.to_s
23
+ end
24
+
25
+
26
+ def format_credentials(doc, credentials)
27
+ # root
28
+ doc.root << (auth = create_node('WebAuthenticationDetail'))
29
+ doc.root << (client = create_node('ClientDetail'))
30
+ doc.root << (version = create_node('Version'))
31
+
32
+ # auth
33
+ auth << (user = create_node('UserCredential'))
34
+ user << create_node('Key', credentials[:user_credential][:key])
35
+ user << create_node('Password', credentials[:user_credential][:password])
36
+
37
+ # client
38
+ client << create_node('AccountNumber', credentials[:client_detail][:account_number])
39
+ client << create_node('MeterNumber', credentials[:client_detail][:metter_number])
40
+ client << (local = create_node('Localization'))
41
+ local << create_node('LanguageCode', credentials[:client_detail][:language_code].downcase)
42
+ local << create_node('LocaleCode', credentials[:client_detail][:locale_code].downcase)
43
+
44
+ # version
45
+ version << create_node('ServiceId', 'crs')
46
+ version << create_node('Major', 13)
47
+ version << create_node('Intermediate', 0)
48
+ version << create_node('Minor', 0)
49
+ end
50
+
51
+ def format_params(doc, quote_params)
52
+ # root
53
+ doc.root << create_node('ReturnTransitAndCommit', true)
54
+ doc.root << (request = create_node('RequestedShipment'))
55
+
56
+ request << create_node('DropoffType', 'REGULAR_PICKUP')
57
+ request << create_node('PackagingType', 'YOUR_PACKAGING')
58
+ request << (shipper = create_node('Shipper'))
59
+ request << (recipient = create_node('Recipient'))
60
+
61
+ # shipper
62
+ shipper << (ship_address = create_node('Address'))
63
+ ship_address << create_node('StreetLines', quote_params[:address_from][:street_lines]&.upcase)
64
+ ship_address << create_node('City', quote_params[:address_from][:city]&.upcase)
65
+ ship_address << create_node('StateOrProvinceCode', 'XX')
66
+ ship_address << create_node('PostalCode', quote_params[:address_from][:zip])
67
+ ship_address << create_node('CountryCode', quote_params[:address_from][:country]&.upcase)
68
+
69
+
70
+ # recipient
71
+ recipient << (recip_address = create_node('Address'))
72
+ recip_address << create_node('StreetLines', quote_params[:address_to][:street_lines]&.upcase)
73
+ recip_address << create_node('City', quote_params[:address_to][:city]&.upcase)
74
+ recip_address << create_node('StateOrProvinceCode', 'XX')
75
+ recip_address << create_node('PostalCode', quote_params[:address_to][:zip])
76
+ recip_address << create_node('CountryCode', quote_params[:address_to][:country]&.upcase)
77
+ recip_address << create_node('Residential', false)
78
+
79
+ # shipping info
80
+ request << (ship_charges = create_node('ShippingChargesPayment'))
81
+ ship_charges << create_node('PaymentType', 'SENDER')
82
+ request << create_node('RateRequestTypes', 'ACCOUNT')
83
+ request << create_node('PackageCount', 1)
84
+
85
+ # parcel
86
+ request << (parcel = create_node('RequestedPackageLineItems'))
87
+ parcel << create_node('GroupPackageCount', 1)
88
+
89
+ parcel << (weight = create_node('Weight'))
90
+ weight << create_node('Units', quote_params[:parcel][:mass_unit]&.upcase)
91
+ weight << create_node('Value', quote_params[:parcel][:weight])
92
+
93
+ parcel << (dim = create_node('Dimensions'))
94
+ dim << create_node('Length', quote_params[:parcel][:length]&.to_i)
95
+ dim << create_node('Width', quote_params[:parcel][:width]&.to_i)
96
+ dim << create_node('Height', quote_params[:parcel][:height]&.to_i)
97
+ dim << create_node('Units', quote_params[:parcel][:distance_unit]&.upcase)
98
+ end
99
+
100
+ # Creates one node to the xml to be inserted
101
+ # @param {String} name of the node
102
+ # @param {String,Numeric,Boolean} value of the node
103
+ # @return [LibXML::XML::Node]
104
+ def create_node(name, value = nil)
105
+ node = LibXML::XML::Node.new(name)
106
+ node.content = value.nil? ? '' : value.to_s
107
+
108
+ node
109
+ end
110
+
111
+ # Creates the xml document
112
+ # @return[LibXML::XML::Document] doc
113
+ def create_doc
114
+ doc = LibXML::XML::Document.new
115
+ doc.root = LibXML::XML::Node.new('RateRequest')
116
+ LibXML::XML::Attr.new(doc.root, 'xmlns', 'http://fedex.com/ws/rate/v13')
117
+
118
+ doc
119
+ end
120
+ end
121
+ end
122
+ end
@@ -0,0 +1,54 @@
1
+ require 'active_support/core_ext/hash'
2
+
3
+ module FedexRateGetter
4
+ module Formatter
5
+ class Response
6
+ attr_accessor :response, :hashed
7
+
8
+ # @Attribute[hashed] hash format extracted directly from fedex api xml
9
+ # @Attribute[response] json format
10
+ def initialize(response)
11
+ @hashed = Hash.from_xml(response)
12
+ @response = transform_response
13
+ end
14
+
15
+ private
16
+
17
+ # Transforms the xml given by fedex into a more readable hash
18
+ # @return [Array] response. An array with the rates
19
+ def transform_response
20
+ # If it fails will return the hashed response directly from FedExApi
21
+ return error unless hashed['RateReply']['HighestSeverity'] == 'SUCCESS'
22
+
23
+ response = hashed['RateReply']['RateReplyDetails'].map do |rate|
24
+ next if rate['ServiceType'].blank?
25
+
26
+ details = rate['RatedShipmentDetails'].last['ShipmentRateDetail']['TotalNetChargeWithDutiesAndTaxes']
27
+
28
+ {
29
+ price: details['Amount'],
30
+ currency: details['Currency'],
31
+ service_level: {
32
+ name: beautify_type(rate['ServiceType']),
33
+ token: rate['ServiceType']
34
+ }
35
+ }
36
+ end
37
+
38
+ response.compact
39
+ end
40
+
41
+ # Just an error
42
+ def error
43
+ { error: hashed }
44
+ end
45
+
46
+ # Beautify the service type value
47
+ # @param {String} HELLO_WORLD
48
+ # @return [String] Hello world
49
+ def beautify_type(type)
50
+ type.gsub('_',' ').capitalize
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,3 @@
1
+ module FedexRateGetter
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,34 @@
1
+ require "fedex_rate_getter/version"
2
+ require "fedex_rate_getter/connection"
3
+ require "fedex_rate_getter/formatter/body"
4
+ require "fedex_rate_getter/formatter/response"
5
+
6
+ module FedexRateGetter
7
+ class Rate
8
+ attr_accessor :something
9
+
10
+ def initialize
11
+ @something = 'hola mundo'
12
+ end
13
+
14
+ # Main method. returns shipping rate
15
+ # @params [Json, Json] credentials, quote_params
16
+ # @return [Array] array of requested rates
17
+ def self.get(credentials, quote_params)
18
+ # enable the api connection
19
+ connection = FedexRateGetter::Connection.new
20
+
21
+ # format body
22
+ body = FedexRateGetter::Formatter::Body.new(credentials, quote_params).body
23
+
24
+ # make a call to the api
25
+ res = connection.get_rates(body)
26
+
27
+ # return
28
+ FedexRateGetter::Formatter::Response.new(res.body).response
29
+ end
30
+
31
+ private
32
+
33
+ end
34
+ end
metadata ADDED
@@ -0,0 +1,103 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: fedex_rate_getter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Write your name
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-09-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: libxml-ruby
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 3.2.3
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 3.2.3
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '5.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: faraday
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.9.2
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.9.2
55
+ description: Write a longer description or delete this line.
56
+ email:
57
+ - Write your email address
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - ".gitignore"
63
+ - ".rspec"
64
+ - ".ruby-version"
65
+ - ".travis.yml"
66
+ - CODE_OF_CONDUCT.md
67
+ - Gemfile
68
+ - Gemfile.lock
69
+ - LICENSE.txt
70
+ - README.md
71
+ - Rakefile
72
+ - bin/console
73
+ - bin/setup
74
+ - fedex_rate_getter.gemspec
75
+ - lib/fedex_rate_getter.rb
76
+ - lib/fedex_rate_getter/connection.rb
77
+ - lib/fedex_rate_getter/formatter/body.rb
78
+ - lib/fedex_rate_getter/formatter/response.rb
79
+ - lib/fedex_rate_getter/version.rb
80
+ homepage: http://github.com
81
+ licenses:
82
+ - MIT
83
+ metadata: {}
84
+ post_install_message:
85
+ rdoc_options: []
86
+ require_paths:
87
+ - lib
88
+ required_ruby_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: 2.3.0
93
+ required_rubygems_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ requirements: []
99
+ rubygems_version: 3.1.6
100
+ signing_key:
101
+ specification_version: 4
102
+ summary: Write a short summary, because RubyGems requires one.
103
+ test_files: []