shippy_pro_api 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1e70c4fc59ab65610e522b3fd9518af01878b0358f5ead243b71ad7ca1ddae3c
4
+ data.tar.gz: ee5cfd91635d5524c8a6d909a4ddac6c1d6898308f87a993b4d220b180bf6d39
5
+ SHA512:
6
+ metadata.gz: 2a0f0d0b6346380dace2411ce01dd7e9bcc29fc1277b91196d6dd989756727fe5588c91ca7c4fae5db756474dfbe5b506ec54521da6ae56c1df9818986a5a87f
7
+ data.tar.gz: 124d4a9c23f55aa7f1c3e5e859433736b00929757676f0253b65b8d3af117bfc546359fc49946a9ba53cb633b665a86c6f174011ac557599409b290d9d50a739
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,13 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6
3
+
4
+ Style/StringLiterals:
5
+ Enabled: true
6
+ EnforcedStyle: double_quotes
7
+
8
+ Style/StringLiteralsInInterpolation:
9
+ Enabled: true
10
+ EnforcedStyle: double_quotes
11
+
12
+ Layout/LineLength:
13
+ Max: 120
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2023-10-02
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at nicholasfarm27@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in shippy_pro_api.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
11
+
12
+ gem "rubocop", "~> 1.21"
data/Gemfile.lock ADDED
@@ -0,0 +1,89 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ shippy_pro_api (0.1.0)
5
+ activesupport
6
+ faraday (~> 2.7.10)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ activesupport (7.0.7.2)
12
+ concurrent-ruby (~> 1.0, >= 1.0.2)
13
+ i18n (>= 1.6, < 2)
14
+ minitest (>= 5.1)
15
+ tzinfo (~> 2.0)
16
+ ast (2.4.2)
17
+ base64 (0.1.1)
18
+ coderay (1.1.3)
19
+ concurrent-ruby (1.2.2)
20
+ diff-lcs (1.5.0)
21
+ dotenv (2.8.1)
22
+ faraday (2.7.10)
23
+ faraday-net_http (>= 2.0, < 3.1)
24
+ ruby2_keywords (>= 0.0.4)
25
+ faraday-net_http (3.0.2)
26
+ i18n (1.14.1)
27
+ concurrent-ruby (~> 1.0)
28
+ json (2.6.3)
29
+ language_server-protocol (3.17.0.3)
30
+ method_source (1.0.0)
31
+ minitest (5.19.0)
32
+ parallel (1.23.0)
33
+ parser (3.2.2.3)
34
+ ast (~> 2.4.1)
35
+ racc
36
+ pry (0.14.2)
37
+ coderay (~> 1.1)
38
+ method_source (~> 1.0)
39
+ racc (1.7.1)
40
+ rainbow (3.1.1)
41
+ rake (13.0.6)
42
+ regexp_parser (2.8.1)
43
+ rexml (3.2.6)
44
+ rspec (3.12.0)
45
+ rspec-core (~> 3.12.0)
46
+ rspec-expectations (~> 3.12.0)
47
+ rspec-mocks (~> 3.12.0)
48
+ rspec-core (3.12.2)
49
+ rspec-support (~> 3.12.0)
50
+ rspec-expectations (3.12.3)
51
+ diff-lcs (>= 1.2.0, < 2.0)
52
+ rspec-support (~> 3.12.0)
53
+ rspec-mocks (3.12.6)
54
+ diff-lcs (>= 1.2.0, < 2.0)
55
+ rspec-support (~> 3.12.0)
56
+ rspec-support (3.12.1)
57
+ rubocop (1.56.2)
58
+ base64 (~> 0.1.1)
59
+ json (~> 2.3)
60
+ language_server-protocol (>= 3.17.0)
61
+ parallel (~> 1.10)
62
+ parser (>= 3.2.2.3)
63
+ rainbow (>= 2.2.2, < 4.0)
64
+ regexp_parser (>= 1.8, < 3.0)
65
+ rexml (>= 3.2.5, < 4.0)
66
+ rubocop-ast (>= 1.28.1, < 2.0)
67
+ ruby-progressbar (~> 1.7)
68
+ unicode-display_width (>= 2.4.0, < 3.0)
69
+ rubocop-ast (1.29.0)
70
+ parser (>= 3.2.1.0)
71
+ ruby-progressbar (1.13.0)
72
+ ruby2_keywords (0.0.5)
73
+ tzinfo (2.0.6)
74
+ concurrent-ruby (~> 1.0)
75
+ unicode-display_width (2.4.2)
76
+
77
+ PLATFORMS
78
+ arm64-darwin-21
79
+
80
+ DEPENDENCIES
81
+ dotenv
82
+ pry
83
+ rake (~> 13.0)
84
+ rspec (~> 3.0)
85
+ rubocop (~> 1.21)
86
+ shippy_pro_api!
87
+
88
+ BUNDLED WITH
89
+ 2.3.18
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2023 nickfarm27
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,108 @@
1
+ # ShippyProAPI
2
+
3
+ This is an API wrapper gem for ShippyPro API.
4
+
5
+ ## Installation
6
+
7
+ Install the gem and add to the application's Gemfile by executing:
8
+
9
+ $ bundle add shippy_pro_api
10
+
11
+ If bundler is not being used to manage dependencies, install the gem by executing:
12
+
13
+ $ gem install shippy_pro_api
14
+
15
+ ## Usage
16
+
17
+ A client must be initialized with ShippyPro's API key created for the user's account.
18
+
19
+ ```ruby
20
+ client = ShippyProAPI::Client.new(api_key: ENV['SHIPPY_PRO_API_KEY'])
21
+ ```
22
+
23
+ ### Shipment
24
+
25
+ #### Create a shipment
26
+
27
+ ```ruby
28
+ # params is a hash of shipment attributes in snake case
29
+ # note: the example below is not a complete list of attributes required to create a shipment
30
+
31
+ # example:
32
+ params = {
33
+ to_address: {
34
+ name: "John Doe",
35
+ company: "ShippyPro",
36
+ street1: "172 Boulevard de la Villette",
37
+ street2: "19ème Arrondissement",
38
+ city: "Paris",
39
+ state: "",
40
+ zip: "75019",
41
+ country: "FR",
42
+ phone: "+33186652533",
43
+ email: "johndoe@gmail.com"
44
+ },
45
+ from_address: {
46
+ name: "Jane Doe",
47
+ company: "ProShippy",
48
+ street1: "198 Avenue de France",
49
+ street2: "",
50
+ city: "Paris",
51
+ state: "",
52
+ zip: "75013",
53
+ country: "FR",
54
+ phone: "+33186652533",
55
+ email: "janedoe@gmail.com"
56
+ },
57
+ parcels: [
58
+ {
59
+ length: 5,
60
+ width: 5,
61
+ height: 5,
62
+ weight: 10
63
+ }
64
+ ],
65
+ insurance: 0,
66
+ insurance_currency: "EUR",
67
+ cash_on_delivery: 0,
68
+ cash_on_delivery_currency: "EUR",
69
+ content_description: "Shoes",
70
+ total_value: "50.25 EUR",
71
+ shipping_service: "Standard"
72
+ }
73
+
74
+ # create a shipment
75
+ client.shipment.create(params)
76
+ ```
77
+
78
+ #### Retrieve rates
79
+
80
+ ```ruby
81
+ # params is a hash of shipment attributes in snake case
82
+
83
+ client.shipment.retrieve_rates(params)
84
+ ```
85
+
86
+ #### Track a shipment
87
+
88
+ ```ruby
89
+ client.shipment.track("tracking_number")
90
+ ```
91
+
92
+ ## Development
93
+
94
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
95
+
96
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
97
+
98
+ ## Contributing
99
+
100
+ Bug reports and pull requests are welcome on GitHub at https://github.com/PostCo/shippy_pro_api. 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/PostCo/shippy_pro_api/blob/main/CODE_OF_CONDUCT.md).
101
+
102
+ ## License
103
+
104
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
105
+
106
+ ## Code of Conduct
107
+
108
+ Everyone interacting in the ShippyProAPI project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/PostCo/shippy_pro_api/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
@@ -0,0 +1,34 @@
1
+ require 'faraday'
2
+
3
+ module ShippyProAPI
4
+ class Client
5
+ BASE_URL = 'https://www.shippypro.com/api'
6
+
7
+ attr_reader :api_key, :adapter
8
+
9
+ def initialize(api_key:, adapter: Faraday.default_adapter)
10
+ @api_key = api_key
11
+ @adapter = adapter
12
+ end
13
+
14
+ def connection
15
+ @connection ||= Faraday.new do |conn|
16
+ conn.url_prefix = BASE_URL
17
+ conn.headers['Authorization'] = "Basic #{encoded_credentials}"
18
+ conn.request :json
19
+ conn.response :json, content_type: "application/json"
20
+ conn.adapter adapter
21
+ end
22
+ end
23
+
24
+ def shipment
25
+ ShipmentResource.new(self)
26
+ end
27
+
28
+ private
29
+
30
+ def encoded_credentials
31
+ Base64.strict_encode64("#{api_key}:")
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,4 @@
1
+ module ShippyProAPI
2
+ class Error < StandardError
3
+ end
4
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "active_support/core_ext/string"
4
+ require "ostruct"
5
+
6
+ module ShippyProAPI
7
+ class Object < OpenStruct
8
+ def initialize(attributes)
9
+ super to_ostruct(attributes)
10
+ end
11
+
12
+ def to_ostruct(obj)
13
+ if obj.is_a?(Hash)
14
+ OpenStruct.new(obj.map { |key, val| [key.to_s.underscore, to_ostruct(val)] }.to_h)
15
+ elsif obj.is_a?(Array)
16
+ obj.map { |o| to_ostruct(o) }
17
+ else # Assumed to be a primitive value
18
+ obj
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,4 @@
1
+ module ShippyProAPI
2
+ class Rate < Object
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module ShippyProAPI
2
+ class RateError < Object
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module ShippyProAPI
2
+ class Rates < Object
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module ShippyProAPI
2
+ class Shipment < Object
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module ShippyProAPI
2
+ class TrackingInfo < Object
3
+ end
4
+ end
@@ -0,0 +1,84 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "active_support/core_ext/string"
4
+
5
+ module ShippyProAPI
6
+ class Resource
7
+ attr_reader :client
8
+
9
+ def initialize(client)
10
+ @client = client
11
+ end
12
+
13
+ # def get_request(url, params: {}, headers: {})
14
+ # handle_response client.connection.get(url, params, headers)
15
+ # end
16
+
17
+ def post_request(url, body:, headers: {})
18
+ handle_response client.connection.post(url, parse_body(body), headers)
19
+ end
20
+
21
+ # def put_request(url, body:, headers: {})
22
+ # handle_response client.connection.put(url, parse_body(body), headers)
23
+ # end
24
+
25
+ private
26
+
27
+ def handle_response(response)
28
+ error_message = response.body
29
+
30
+ case response.status
31
+ when 400
32
+ raise Error, "A bad request or a validation exception has occurred. #{error_message}"
33
+ when 401
34
+ raise Error, "Invalid authorization credentials. #{error_message}"
35
+ when 403
36
+ raise Error, "Connection doesn't have permission to access the resource. #{error_message}"
37
+ when 404
38
+ raise Error, "The resource you have specified cannot be found. #{error_message}"
39
+ when 429
40
+ raise Error, "The API rate limit for your application has been exceeded. #{error_message}"
41
+ when 500
42
+ raise Error,
43
+ "An unhandled error with the server. Contact the ShippyPro team if problems persist. #{error_message}"
44
+ when 503
45
+ raise Error,
46
+ "API is currently unavailable – typically due to a scheduled outage – try again soon. #{error_message}"
47
+ end
48
+
49
+ response
50
+ end
51
+
52
+ def parse_body(params)
53
+ camelize_selected_keys(params)
54
+ end
55
+
56
+ # camelcase the param keys except for the to_address, from_address, and parcels keys and their respective nested keys
57
+
58
+ # example
59
+ # {:parcels=>[{:test=>"yes"}], :foo=>"bar"}
60
+ # returns
61
+ # {"parcels"=>[{:test=>"yes"}], "Foo"=>"bar")
62
+
63
+ def camelize_selected_keys(params)
64
+ if params.is_a?(Hash)
65
+ params.each_with_object({}) do |(key, value), new_hash|
66
+ key = key.to_s
67
+ if %w[to_address from_address parcels].include?(key)
68
+ new_hash[key] = value
69
+ else
70
+ new_hash[key.camelcase] = camelize_selected_keys(value)
71
+ end
72
+ end
73
+ elsif params.is_a?(Array)
74
+ params.map { |value| camelize_selected_keys(value) }
75
+ else
76
+ params
77
+ end
78
+ end
79
+
80
+ def parse_response(response)
81
+ response.body.deep_transform_keys { |key| key.to_s.underscore }
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ShippyProAPI
4
+ class ShipmentResource < Resource
5
+ def create(attributes)
6
+ Shipment.new(post_request("Ship", body: attributes).body)
7
+ end
8
+
9
+ def retrieve_rates(attributes)
10
+ response = post_request("GetRates", body: attributes).body
11
+
12
+ available_rates = response['Rates']&.map { |rate| Rate.new(rate) }
13
+ rates_errors = response['RatesErrors']&.map { |rate| RateError.new(rate) }
14
+
15
+ Rates.new(rates: available_rates, rates_errors: rates_errors)
16
+ end
17
+
18
+ def track(tracking_number)
19
+ attributes = { code: tracking_number }
20
+
21
+ TrackingInfo.new(post_request("GetTracking", body: attributes).body)
22
+ end
23
+
24
+ private
25
+
26
+ def post_request(method, body:)
27
+ attributes = {
28
+ method: method,
29
+ params: body
30
+ }
31
+ super("", body: attributes)
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ShippyProAPI
4
+ VERSION = "0.1.1"
5
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "shippy_pro_api/version"
4
+
5
+ module ShippyProAPI
6
+ autoload :Client, 'shippy_pro_api/client'
7
+ autoload :Error, 'shippy_pro_api/error'
8
+ autoload :Object, 'shippy_pro_api/object'
9
+ autoload :Resource, 'shippy_pro_api/resource'
10
+
11
+ autoload :Rate, 'shippy_pro_api/objects/rate'
12
+ autoload :RateError, 'shippy_pro_api/objects/rate_error'
13
+ autoload :Rates, 'shippy_pro_api/objects/rates'
14
+ autoload :Shipment, 'shippy_pro_api/objects/shipment'
15
+ autoload :TrackingInfo, 'shippy_pro_api/objects/tracking_info'
16
+
17
+ autoload :ShipmentResource, 'shippy_pro_api/resources/shipment'
18
+ end
@@ -0,0 +1,4 @@
1
+ module ShippyProAPI
2
+ VERSION: String
3
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
+ end
metadata ADDED
@@ -0,0 +1,138 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: shippy_pro_api
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - nickfarm27
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-10-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: faraday
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 2.7.10
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 2.7.10
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: dotenv
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ description:
84
+ email:
85
+ - nicholasfarm27@gmail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".rspec"
91
+ - ".rubocop.yml"
92
+ - CHANGELOG.md
93
+ - CODE_OF_CONDUCT.md
94
+ - Gemfile
95
+ - Gemfile.lock
96
+ - LICENSE.txt
97
+ - README.md
98
+ - Rakefile
99
+ - lib/shippy_pro_api.rb
100
+ - lib/shippy_pro_api/client.rb
101
+ - lib/shippy_pro_api/error.rb
102
+ - lib/shippy_pro_api/object.rb
103
+ - lib/shippy_pro_api/objects/rate.rb
104
+ - lib/shippy_pro_api/objects/rate_error.rb
105
+ - lib/shippy_pro_api/objects/rates.rb
106
+ - lib/shippy_pro_api/objects/shipment.rb
107
+ - lib/shippy_pro_api/objects/tracking_info.rb
108
+ - lib/shippy_pro_api/resource.rb
109
+ - lib/shippy_pro_api/resources/shipment.rb
110
+ - lib/shippy_pro_api/version.rb
111
+ - sig/shippy_pro_api.rbs
112
+ homepage: https://github.com/PostCo/shippy_pro_api
113
+ licenses:
114
+ - MIT
115
+ metadata:
116
+ homepage_uri: https://github.com/PostCo/shippy_pro_api
117
+ source_code_uri: https://github.com/PostCo/shippy_pro_api
118
+ changelog_uri: https://github.com/PostCo/shippy_pro_api/releases
119
+ post_install_message:
120
+ rdoc_options: []
121
+ require_paths:
122
+ - lib
123
+ required_ruby_version: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ">="
126
+ - !ruby/object:Gem::Version
127
+ version: 2.6.0
128
+ required_rubygems_version: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ requirements: []
134
+ rubygems_version: 3.3.18
135
+ signing_key:
136
+ specification_version: 4
137
+ summary: ShippyPro API Wrapper
138
+ test_files: []