prodigi 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: 85b513da35ef1844f970271bb663a50fc090b34c8ecdc009d1cb3fa27f4b7941
4
+ data.tar.gz: 4f550491b3fe9daf8678eebc9ff00e1650702b82162ab4f3c2419c673005cbab
5
+ SHA512:
6
+ metadata.gz: f74ae257ba2296ec5397faaa55dfb400b1c3103ba4da0580b1220b8c6f2a21c7456313d0da0bd4f2b720f742670e9c65bf20e249902f8276890fa3c926ed4c4d
7
+ data.tar.gz: 760e033a45dc23c42a0530821523237d3fb5e78b74f534588beb61c7054b3871322f2a9520d3b7dcf9966edf6522f7a80e8bdfbb7f92cf8bf88daa09288dda74
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] - 2022-01-16
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 robindtclark@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,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in prodigi.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+ gem "minitest", "~> 5.0"
10
+ gem "rubocop", "~> 1.21"
data/Gemfile.lock ADDED
@@ -0,0 +1,71 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ prodigi (0.1.1)
5
+ faraday (~> 1.8)
6
+ faraday_middleware (~> 1.2)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ ast (2.4.2)
12
+ faraday (1.9.3)
13
+ faraday-em_http (~> 1.0)
14
+ faraday-em_synchrony (~> 1.0)
15
+ faraday-excon (~> 1.1)
16
+ faraday-httpclient (~> 1.0)
17
+ faraday-multipart (~> 1.0)
18
+ faraday-net_http (~> 1.0)
19
+ faraday-net_http_persistent (~> 1.0)
20
+ faraday-patron (~> 1.0)
21
+ faraday-rack (~> 1.0)
22
+ faraday-retry (~> 1.0)
23
+ ruby2_keywords (>= 0.0.4)
24
+ faraday-em_http (1.0.0)
25
+ faraday-em_synchrony (1.0.0)
26
+ faraday-excon (1.1.0)
27
+ faraday-httpclient (1.0.1)
28
+ faraday-multipart (1.0.3)
29
+ multipart-post (>= 1.2, < 3)
30
+ faraday-net_http (1.0.1)
31
+ faraday-net_http_persistent (1.2.0)
32
+ faraday-patron (1.0.0)
33
+ faraday-rack (1.0.0)
34
+ faraday-retry (1.0.3)
35
+ faraday_middleware (1.2.0)
36
+ faraday (~> 1.0)
37
+ minitest (5.15.0)
38
+ multipart-post (2.1.1)
39
+ parallel (1.21.0)
40
+ parser (3.1.0.0)
41
+ ast (~> 2.4.1)
42
+ rainbow (3.1.1)
43
+ rake (13.0.6)
44
+ regexp_parser (2.2.0)
45
+ rexml (3.2.5)
46
+ rubocop (1.25.0)
47
+ parallel (~> 1.10)
48
+ parser (>= 3.1.0.0)
49
+ rainbow (>= 2.2.2, < 4.0)
50
+ regexp_parser (>= 1.8, < 3.0)
51
+ rexml
52
+ rubocop-ast (>= 1.15.1, < 2.0)
53
+ ruby-progressbar (~> 1.7)
54
+ unicode-display_width (>= 1.4.0, < 3.0)
55
+ rubocop-ast (1.15.1)
56
+ parser (>= 3.0.1.1)
57
+ ruby-progressbar (1.11.0)
58
+ ruby2_keywords (0.0.5)
59
+ unicode-display_width (2.1.0)
60
+
61
+ PLATFORMS
62
+ arm64-darwin-21
63
+
64
+ DEPENDENCIES
65
+ minitest (~> 5.0)
66
+ prodigi!
67
+ rake (~> 13.0)
68
+ rubocop (~> 1.21)
69
+
70
+ BUNDLED WITH
71
+ 2.2.32
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Robin Clark
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,76 @@
1
+ # Prodigi API Rubygem
2
+
3
+ The easiest and most complete rubygem for [Prodigi](https://www.prodigi.com) Worldwide Printing Service. Currently supports [API v4](https://www.prodigi.com/print-api/docs/reference/#introduction).
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'prodigi'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install prodigi
20
+
21
+ ## Usage
22
+
23
+ To access the API, you'll need to create a Prodigi::Client and pass in your API key. You can find your API key at https://dashboard.prodigi.com/settings/integrations
24
+
25
+ API URL defaults to sandbox unless PRODIGI_API_URL env variable exists with live url present.
26
+
27
+ ```ruby
28
+ client = Prodigi::Client:new(api_key: ENV["PRODIGI_API_KEY"])
29
+ ```
30
+
31
+ The client then gives you access to each of the resources.
32
+
33
+ ## Resources
34
+
35
+ The gem maps as closely as we can to the Prodigi API so you can easily convert API examples to gem code.
36
+
37
+ Responses are created as objects like Prodigi::Order. Having types like Prodigi::Quote is handy for understanding what type of object you're working with. They're built using OpenStruct so you can easily access data in a Ruby-ish way.
38
+
39
+ ### Orders
40
+
41
+ ```ruby
42
+ client.orders.list
43
+ client.orders.create({})
44
+ client.orders.retrieve(prodigi_order_id: "id")
45
+ client.orders.actions
46
+ client.orders.update_shipping(prodigi_order_id: "id", {})
47
+ client.orders.update_recipient(prodigi_order_id: "id", {})
48
+ client.orders.update_metadata(prodigi_order_id: "id", {})
49
+ client.orders.cancel(prodigi_order_id: "id", {})
50
+ ```
51
+
52
+ ### Quotes
53
+
54
+ ```ruby
55
+ client.quotes.create({})
56
+ ```
57
+
58
+ ### Products
59
+
60
+ ```ruby
61
+ client.products.create({})
62
+ ```
63
+
64
+ ## Contributing
65
+
66
+ 1. Fork it ( https://github.com/rdtclark/prodigi/fork )
67
+ 2. Create your feature branch (git checkout -b my-new-feature)
68
+ 3. Commit your changes (git commit -am 'Add some feature')
69
+ 4. Push to the branch (git push origin my-new-feature)
70
+ 5. Create a new Pull Request
71
+
72
+ When adding methods, add to the list of DEFINITIONS in lib/vultr.rb. Additionally, write a spec and add it to the list in the README.
73
+
74
+ ## License
75
+
76
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT)
data/Rakefile ADDED
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rake/testtask"
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "test"
8
+ t.libs << "lib"
9
+ t.test_files = FileList["test/**/*_test.rb"]
10
+ end
11
+
12
+ require "rubocop/rake_task"
13
+
14
+ RuboCop::RakeTask.new
15
+
16
+ task default: %i[test rubocop]
data/bin/console ADDED
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "bundler/setup"
5
+ require "prodigi"
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ client = Prodigi::Client.new(api_key: ENV["PRODIGI_API_KEY"])
15
+ # client.connection.get("orders", {}, { "X-API-Key": client.api_key })
16
+
17
+ require "irb"
18
+ 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
Binary file
@@ -0,0 +1,36 @@
1
+ module Prodigi
2
+ class Client
3
+ BASE_URL = ENV.fetch('PRODIGI_API_URL',"https://api.sandbox.prodigi.com/v4.0")
4
+
5
+ attr_reader :api_key, :adapter
6
+
7
+ def initialize(api_key:, adapter: Faraday.default_adapter, stubs: nil)
8
+ @api_key = api_key
9
+ @adapter = adapter
10
+
11
+ # Tests stubs for requests
12
+ @stubs = stubs
13
+ end
14
+
15
+ def orders
16
+ OrderResource.new(self)
17
+ end
18
+
19
+ def quotes
20
+ QuoteResource.new(self)
21
+ end
22
+
23
+ def products
24
+ ProductResource.new(self)
25
+ end
26
+
27
+ def connection
28
+ @connection ||= Faraday.new do |conn|
29
+ conn.url_prefix = BASE_URL
30
+ conn.request :json
31
+ conn.response :json, content_type: "application/json"
32
+ conn.adapter adapter, @stubs
33
+ end
34
+ end
35
+ end
36
+ end
@@ -0,0 +1,20 @@
1
+ module Prodigi
2
+ class Collection
3
+ attr_reader :data, :has_more, :next_url
4
+
5
+ def self.from_response(response, key:, type:)
6
+ body = response.body
7
+ new(
8
+ data: body[key].map { |attrs| type.new(attrs) },
9
+ has_more: body.dig("hasMore"),
10
+ next_url: body.dig("nextUrl")
11
+ )
12
+ end
13
+
14
+ def initialize(data:, has_more:, next_url:)
15
+ @data = data
16
+ @has_more = has_more
17
+ if @has_more == true; @next_url = next_url else @next_url = nil end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,4 @@
1
+ module Prodigi
2
+ class Error < StandardError
3
+ end
4
+ end
@@ -0,0 +1,19 @@
1
+ require "ostruct"
2
+
3
+ module Prodigi
4
+ class Object < OpenStruct
5
+ def initialize(attributes)
6
+ super to_ostruct(attributes)
7
+ end
8
+
9
+ def to_ostruct(obj)
10
+ if obj.is_a?(Hash)
11
+ OpenStruct.new(obj.map { |key, val| [key, to_ostruct(val)] }.to_h)
12
+ elsif obj.is_a?(Array)
13
+ obj.map { |o| to_ostruct(o) }
14
+ else # Assumed to be a primitive value
15
+ obj
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,4 @@
1
+ module Prodigi
2
+ class Order < Object
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module Prodigi
2
+ class Product < Object
3
+ end
4
+ end
@@ -0,0 +1,4 @@
1
+ module Prodigi
2
+ class Quote < Object
3
+ end
4
+ end
@@ -0,0 +1,53 @@
1
+ module Prodigi
2
+ class Resource
3
+ attr_reader :client
4
+
5
+ def initialize(client)
6
+ @client = client
7
+ end
8
+
9
+ def get_request(url, params: {}, headers: {})
10
+ handle_response client.connection.get(url, params, default_headers.merge(headers))
11
+ end
12
+
13
+ def post_request(url, body:, headers: {})
14
+ handle_response client.connection.post(url, body, default_headers.merge(headers))
15
+ end
16
+
17
+ def patch_request(url, body:, headers: {})
18
+ handle_response client.connection.patch(url, body, default_headers.merge(headers))
19
+ end
20
+
21
+ def put_request(url, body:, headers: {})
22
+ handle_response client.connection.put(url, body, default_headers.merge(headers))
23
+ end
24
+
25
+ def delete_request(url, params: {}, headers: {})
26
+ handle_response client.connection.delete(url, params, default_headers.merge(headers))
27
+ end
28
+
29
+ def default_headers
30
+ { "X-API-Key": client.api_key }
31
+ end
32
+
33
+ def handle_response(response)
34
+ message = response.body["statusText"]
35
+ case response.status
36
+ when 400
37
+ raise Error, "Bad request: the request is malformed in some manner. #{message}"
38
+ when 401
39
+ raise Error, "Unauthorised: your credentials are missing or incorrect. #{message}"
40
+ when 403
41
+ raise Error, message
42
+ when 404
43
+ raise Error, "Not found: the resource does not exist (or does not exist in your account). #{message}"
44
+ when 429
45
+ raise Error, message
46
+ when 500
47
+ raise Error, "Internal server error: Please contact support@prodigi.com. #{message}"
48
+ end
49
+
50
+ response
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,61 @@
1
+ module Prodigi
2
+ class OrderResource < Resource
3
+
4
+ def list(**params)
5
+ response = get_request("orders", params: params)
6
+ Collection.from_response(response, key: "orders", type: Order)
7
+ end
8
+
9
+ def create(**attributes)
10
+ response = post_request("orders", body: attributes)
11
+ if response.body.dig("outcome") == "Created"
12
+ Order.new response.body.dig("order")
13
+ end
14
+ end
15
+
16
+ def retrieve(prodigi_order_id:)
17
+ response = get_request("orders/#{prodigi_order_id}")
18
+ if response.body.dig("outcome") == "Ok"
19
+ Order.new response.body.dig("order")
20
+ end
21
+ end
22
+
23
+ def actions(prodigi_order_id:)
24
+ response = get_request("orders/#{prodigi_order_id}/actions")
25
+ if response.body.dig("outcome") == "Ok"
26
+ Object.new response.body
27
+ end
28
+ end
29
+
30
+ def update_shipping(prodigi_order_id:, **attributes)
31
+ response = post_request("orders/#{prodigi_order_id}/actions/updateShipping",
32
+ body: attributes)
33
+ if response.body.dig("outcome") == "Updated"
34
+ Order.new response.body.dig("order")
35
+ end
36
+ end
37
+
38
+ def update_recipient(prodigi_order_id:, **attributes)
39
+ response = post_request("orders/#{prodigi_order_id}/actions/updateRecipient",
40
+ body: attributes)
41
+ if response.body.dig("outcome") == "Updated"
42
+ Order.new response.body.dig("order")
43
+ end
44
+ end
45
+
46
+ def update_metadata(prodigi_order_id:, **attributes)
47
+ response = post_request("orders/#{prodigi_order_id}/actions/updateMetadata", body: attributes)
48
+ if response.body.dig("outcome") == "Updated"
49
+ Order.new response.body.dig("order")
50
+ end
51
+ end
52
+
53
+ def cancel(prodigi_order_id:, **attributes)
54
+ response = post_request("orders/#{prodigi_order_id}/actions/cancel",
55
+ body: attributes)
56
+ if response.body.dig('outcome') == "Cancelled"
57
+ Order.new response.body.dig('order')
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,12 @@
1
+ module Prodigi
2
+ class ProductResource < Resource
3
+
4
+ def details(sku:)
5
+ response = get_request("products/#{sku}")
6
+ if response.body.dig("outcome") == "Ok"
7
+ Product.new response.body.dig("product")
8
+ end
9
+ end
10
+
11
+ end
12
+ end
@@ -0,0 +1,12 @@
1
+ module Prodigi
2
+ class QuoteResource < Resource
3
+
4
+ def create(**attributes)
5
+ response = post_request("quotes", body: attributes)
6
+ if response.body.dig("outcome") == "Created"
7
+ Quote.new response.body
8
+ end
9
+ end
10
+
11
+ end
12
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Prodigi
4
+ VERSION = "0.1.1"
5
+ end
data/lib/prodigi.rb ADDED
@@ -0,0 +1,21 @@
1
+ require "faraday"
2
+ require "faraday_middleware"
3
+ require_relative "prodigi/version"
4
+
5
+ module Prodigi
6
+ autoload :Client, "prodigi/client"
7
+ autoload :Collection, "prodigi/collection"
8
+ autoload :Error, "prodigi/error"
9
+ autoload :Resource, "prodigi/resource"
10
+ autoload :Object, "prodigi/object"
11
+
12
+ # High-level categories of Prodigi API calls
13
+ autoload :OrderResource, "prodigi/resources/orders"
14
+ autoload :QuoteResource, "prodigi/resources/quotes"
15
+ autoload :ProductResource, "prodigi/resources/products"
16
+
17
+ # Classes used to return a nicer object wrapping the response data
18
+ autoload :Order, "prodigi/objects/order"
19
+ autoload :Quote, "prodigi/objects/quote"
20
+ autoload :Product, "prodigi/objects/product"
21
+ end
metadata ADDED
@@ -0,0 +1,98 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: prodigi
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Robin Clark
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-01-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.8'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.8'
27
+ - !ruby/object:Gem::Dependency
28
+ name: faraday_middleware
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.2'
41
+ description: Ruby bindings for the Prodigi API. Prodigi API can be found here https://www.prodigi.com/print-api
42
+ email:
43
+ - robindtclark@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".rubocop.yml"
49
+ - CHANGELOG.md
50
+ - CODE_OF_CONDUCT.md
51
+ - Gemfile
52
+ - Gemfile.lock
53
+ - LICENSE.txt
54
+ - README.md
55
+ - Rakefile
56
+ - bin/console
57
+ - bin/setup
58
+ - lib/prodigi.rb
59
+ - lib/prodigi/.client.rb.swp
60
+ - lib/prodigi/client.rb
61
+ - lib/prodigi/collection.rb
62
+ - lib/prodigi/error.rb
63
+ - lib/prodigi/object.rb
64
+ - lib/prodigi/objects/order.rb
65
+ - lib/prodigi/objects/product.rb
66
+ - lib/prodigi/objects/quote.rb
67
+ - lib/prodigi/resource.rb
68
+ - lib/prodigi/resources/orders.rb
69
+ - lib/prodigi/resources/products.rb
70
+ - lib/prodigi/resources/quotes.rb
71
+ - lib/prodigi/version.rb
72
+ homepage: https://github.com/rdtclark/prodigi.rb
73
+ licenses:
74
+ - MIT
75
+ metadata:
76
+ homepage_uri: https://github.com/rdtclark/prodigi.rb
77
+ source_code_uri: https://github.com/rdtclark/prodigi.rb
78
+ changelog_uri: https://github.com/rdtclark/prodigi/CHANGELOG.md
79
+ post_install_message:
80
+ rdoc_options: []
81
+ require_paths:
82
+ - lib
83
+ required_ruby_version: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ version: 2.6.0
88
+ required_rubygems_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ requirements: []
94
+ rubygems_version: 3.3.3
95
+ signing_key:
96
+ specification_version: 4
97
+ summary: Ruby bindings for Prodigi API
98
+ test_files: []