commercelayer 0.1.0

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: 50a6aa08353826eb43574ff81b0387d1136b88fb39946c394af88380470886f4
4
+ data.tar.gz: 92ca39e58335bbfb8c26de25a2e6947e674752505fa0d33046e6960a6ebadda2
5
+ SHA512:
6
+ metadata.gz: 98d89c5cb67c0b00482406c0a882c81002d5cf558e94ab5bc50652cd7159425c0b3af4b5a3f7730a03ad545e041d98202b8712f2d6158aa2d56135b6dc2a9c7d
7
+ data.tar.gz: 8ba9f85c0f79625bb7d2477cd022a81925325768fec7069de415bba6517b1c411740bc1b9ab9000679d2c71236daac6c46c8d89c0fc5fe4b2f71df9239f7c9c9
data/.gitignore ADDED
@@ -0,0 +1,12 @@
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
12
+ .env
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.1
5
+ before_install: gem install bundler -v 1.16.1
@@ -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 filippo@commercelayer.io. 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 [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in commercelayer.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,79 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ commercelayer (0.1.0)
5
+ jsonapi-consumer (~> 1.0)
6
+ oauth2 (~> 1.4.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ activemodel (5.2.0)
12
+ activesupport (= 5.2.0)
13
+ activesupport (5.2.0)
14
+ concurrent-ruby (~> 1.0, >= 1.0.2)
15
+ i18n (>= 0.7, < 2)
16
+ minitest (~> 5.1)
17
+ tzinfo (~> 1.1)
18
+ addressable (2.5.2)
19
+ public_suffix (>= 2.0.2, < 4.0)
20
+ concurrent-ruby (1.0.5)
21
+ diff-lcs (1.3)
22
+ dotenv (2.5.0)
23
+ faraday (0.12.2)
24
+ multipart-post (>= 1.2, < 3)
25
+ faraday_middleware (0.12.2)
26
+ faraday (>= 0.7.4, < 1.0)
27
+ i18n (1.0.1)
28
+ concurrent-ruby (~> 1.0)
29
+ jsonapi-consumer (1.0.1)
30
+ activemodel (>= 3.2)
31
+ activesupport (>= 3.2)
32
+ addressable (~> 2.5.2)
33
+ faraday (>= 0.9)
34
+ faraday_middleware
35
+ jwt (1.5.6)
36
+ minitest (5.11.3)
37
+ multi_json (1.13.1)
38
+ multi_xml (0.6.0)
39
+ multipart-post (2.0.0)
40
+ oauth2 (1.4.0)
41
+ faraday (>= 0.8, < 0.13)
42
+ jwt (~> 1.0)
43
+ multi_json (~> 1.3)
44
+ multi_xml (~> 0.5)
45
+ rack (>= 1.2, < 3)
46
+ public_suffix (3.0.2)
47
+ rack (2.0.5)
48
+ rake (10.5.0)
49
+ rspec (3.7.0)
50
+ rspec-core (~> 3.7.0)
51
+ rspec-expectations (~> 3.7.0)
52
+ rspec-mocks (~> 3.7.0)
53
+ rspec-core (3.7.1)
54
+ rspec-support (~> 3.7.0)
55
+ rspec-expectations (3.7.0)
56
+ diff-lcs (>= 1.2.0, < 2.0)
57
+ rspec-support (~> 3.7.0)
58
+ rspec-mocks (3.7.0)
59
+ diff-lcs (>= 1.2.0, < 2.0)
60
+ rspec-support (~> 3.7.0)
61
+ rspec-support (3.7.1)
62
+ thread_safe (0.3.6)
63
+ tzinfo (1.2.5)
64
+ thread_safe (~> 0.1)
65
+ vcr (4.0.0)
66
+
67
+ PLATFORMS
68
+ ruby
69
+
70
+ DEPENDENCIES
71
+ bundler (~> 1.16)
72
+ commercelayer!
73
+ dotenv
74
+ rake (~> 10.0)
75
+ rspec (~> 3.0)
76
+ vcr
77
+
78
+ BUNDLED WITH
79
+ 1.16.1
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Filippo Conforti
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,43 @@
1
+ # Commercelayer
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/commercelayer`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'commercelayer'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install commercelayer
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ 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.
30
+
31
+ 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 tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/commercelayer_ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the Commercelayer project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/commercelayer_ruby/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,15 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "commercelayer"
5
+ require "dotenv/load"
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
+ require "irb"
15
+ 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,41 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "commercelayer/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "commercelayer"
8
+ spec.version = Commercelayer::VERSION
9
+ spec.authors = ["Filippo Conforti"]
10
+ spec.email = ["filippo@commercelayer.io"]
11
+
12
+ spec.summary = "commercelayer"
13
+ spec.description = "The Official Commerce Layer Ruby Client"
14
+ spec.homepage = "https://github.com/commercelayer/commercelayer_ruby"
15
+ spec.license = "MIT"
16
+
17
+ # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
+ # to allow pushing to a single host or delete this section to allow pushing to any host.
19
+ if spec.respond_to?(:metadata)
20
+ spec.metadata["allowed_push_host"] = "https://rubygems.org"
21
+ else
22
+ raise "RubyGems 2.0 or newer is required to protect against " \
23
+ "public gem pushes."
24
+ end
25
+
26
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
27
+ f.match(%r{^(test|spec|features)/})
28
+ end
29
+ spec.bindir = "exe"
30
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
+ spec.require_paths = ["lib"]
32
+
33
+ spec.add_development_dependency "bundler", "~> 1.16"
34
+ spec.add_development_dependency "rake", "~> 10.0"
35
+ spec.add_development_dependency "rspec", "~> 3.0"
36
+ spec.add_development_dependency 'vcr'
37
+ spec.add_development_dependency 'dotenv'
38
+
39
+ spec.add_dependency "jsonapi-consumer", "~> 1.0"
40
+ spec.add_dependency "oauth2", "~> 1.4.0"
41
+ end
@@ -0,0 +1,251 @@
1
+ ---
2
+ resources:
3
+ address:
4
+ name: Address
5
+ relationships: {}
6
+ credit_card:
7
+ name: CreditCard
8
+ relationships:
9
+ order:
10
+ type: has_one
11
+ class_name: Order
12
+ customer_address:
13
+ name: CustomerAddress
14
+ relationships:
15
+ customer:
16
+ type: has_one
17
+ class_name: Customer
18
+ address:
19
+ type: has_one
20
+ class_name: Address
21
+ customer_password_reset:
22
+ name: CustomerPasswordReset
23
+ relationships:
24
+ customer:
25
+ type: has_one
26
+ class_name: Customer
27
+ customer_payment_source:
28
+ name: CustomerPaymentSource
29
+ relationships:
30
+ customer:
31
+ type: has_one
32
+ class_name: Customer
33
+ payment_source:
34
+ type: has_one
35
+ class_name: PaymentSource
36
+ customer_subscription:
37
+ name: CustomerSubscription
38
+ relationships:
39
+ customer:
40
+ type: has_one
41
+ class_name: Customer
42
+ customer:
43
+ name: Customer
44
+ relationships:
45
+ customer_addresses:
46
+ type: has_many
47
+ class_name: CustomerAddress
48
+ customer_payment_sources:
49
+ type: has_many
50
+ class_name: CustomerPaymentSource
51
+ customer_subscriptions:
52
+ type: has_many
53
+ class_name: CustomerSubscription
54
+ orders:
55
+ type: has_many
56
+ class_name: Order
57
+ delivery_lead_time:
58
+ name: DeliveryLeadTime
59
+ relationships:
60
+ stock_location:
61
+ type: has_one
62
+ class_name: StockLocation
63
+ shipping_method:
64
+ type: has_one
65
+ class_name: ShippingMethod
66
+ inventory_model:
67
+ name: InventoryModel
68
+ relationships:
69
+ stock_levels:
70
+ type: has_many
71
+ class_name: StockLevel
72
+ line_item:
73
+ name: LineItem
74
+ relationships:
75
+ order:
76
+ type: has_one
77
+ class_name: Order
78
+ item:
79
+ type: has_one
80
+ class_name: Item
81
+ market:
82
+ name: Market
83
+ relationships:
84
+ merchant:
85
+ type: has_one
86
+ class_name: Merchant
87
+ price_list:
88
+ type: has_one
89
+ class_name: PriceList
90
+ inventory_model:
91
+ type: has_one
92
+ class_name: InventoryModel
93
+ merchant:
94
+ name: Merchant
95
+ relationships:
96
+ address:
97
+ type: has_one
98
+ class_name: Address
99
+ order:
100
+ name: Order
101
+ relationships:
102
+ market:
103
+ type: has_one
104
+ class_name: Market
105
+ customer:
106
+ type: has_one
107
+ class_name: Customer
108
+ shipping_address:
109
+ type: has_one
110
+ class_name: Address
111
+ billing_address:
112
+ type: has_one
113
+ class_name: Address
114
+ payment_method:
115
+ type: has_one
116
+ class_name: PaymentMethod
117
+ payment_source:
118
+ type: has_one
119
+ class_name: PaymentSource
120
+ line_items:
121
+ type: has_many
122
+ class_name: LineItem
123
+ shipments:
124
+ type: has_many
125
+ class_name: Shipment
126
+ parcel:
127
+ name: Parcel
128
+ relationships:
129
+ shipment:
130
+ type: has_one
131
+ class_name: Shipment
132
+ payment_method:
133
+ name: PaymentMethod
134
+ relationships:
135
+ market:
136
+ type: has_one
137
+ class_name: Market
138
+ paypal_payment:
139
+ name: PaypalPayment
140
+ relationships:
141
+ order:
142
+ type: has_one
143
+ class_name: Order
144
+ price_list:
145
+ name: PriceList
146
+ relationships:
147
+ prices:
148
+ type: has_many
149
+ class_name: Price
150
+ price:
151
+ name: Price
152
+ relationships:
153
+ price_list:
154
+ type: has_one
155
+ class_name: PriceList
156
+ sku:
157
+ type: has_one
158
+ class_name: Sku
159
+ shipment:
160
+ name: Shipment
161
+ relationships:
162
+ shipping_category:
163
+ type: has_one
164
+ class_name: ShippingCategory
165
+ stock_location:
166
+ type: has_one
167
+ class_name: StockLocation
168
+ shipping_address:
169
+ type: has_one
170
+ class_name: Address
171
+ shipping_method:
172
+ type: has_one
173
+ class_name: ShippingMethod
174
+ available_shipping_methods:
175
+ type: has_many
176
+ class_name: ShippingMethod
177
+ parcels:
178
+ type: has_many
179
+ class_name: Parcel
180
+ shipping_category:
181
+ name: ShippingCategory
182
+ relationships:
183
+ skus:
184
+ type: has_many
185
+ class_name: Sku
186
+ shipping_method:
187
+ name: ShippingMethod
188
+ relationships:
189
+ market:
190
+ type: has_one
191
+ class_name: Market
192
+ shipping_zone:
193
+ type: has_one
194
+ class_name: ShippingZone
195
+ shipping_category:
196
+ type: has_one
197
+ class_name: ShippingCategory
198
+ delivery_lead_time_for_shipment:
199
+ type: has_one
200
+ class_name: DeliveryLeadTime
201
+ shipping_zone:
202
+ name: ShippingZone
203
+ relationships: {}
204
+ sku:
205
+ name: Sku
206
+ relationships:
207
+ shipping_category:
208
+ type: has_one
209
+ class_name: ShippingCategory
210
+ prices:
211
+ type: has_many
212
+ class_name: Price
213
+ stock_items:
214
+ type: has_many
215
+ class_name: StockItem
216
+ delivery_lead_times:
217
+ type: has_many
218
+ class_name: DeliveryLeadTime
219
+ stock_item:
220
+ name: StockItem
221
+ relationships:
222
+ stock_location:
223
+ type: has_one
224
+ class_name: StockLocation
225
+ sku:
226
+ type: has_one
227
+ class_name: Sku
228
+ stock_level:
229
+ name: StockLevel
230
+ relationships:
231
+ stock_location:
232
+ type: has_one
233
+ class_name: StockLocation
234
+ inventory_model:
235
+ type: has_one
236
+ class_name: InventoryModel
237
+ stock_location:
238
+ name: StockLocation
239
+ relationships:
240
+ address:
241
+ type: has_one
242
+ class_name: Address
243
+ stock_levels:
244
+ type: has_many
245
+ class_name: StockLevel
246
+ stock_items:
247
+ type: has_many
248
+ class_name: StockItem
249
+ webhook:
250
+ name: Webhook
251
+ relationships: {}
@@ -0,0 +1,26 @@
1
+ require "oauth2"
2
+
3
+ module Commercelayer
4
+ class Client
5
+
6
+ def initialize(options={})
7
+ @client_id = options[:client_id]
8
+ @client_secret = options[:client_secret]
9
+ @scope = options[:scope]
10
+ @site = options[:site]
11
+ end
12
+
13
+ def authorize!
14
+ Resource.site = @site + "/api/"
15
+ Resource.authorize_with = get_access_token
16
+ end
17
+
18
+ private
19
+ def get_access_token(options={})
20
+ oauth2_client = OAuth2::Client.new(@client_id, @client_secret, site: @site)
21
+ access_token = oauth2_client.client_credentials.get_token(scope: @scope)
22
+ access_token.token
23
+ end
24
+
25
+ end
26
+ end
@@ -0,0 +1,23 @@
1
+ require "jsonapi/consumer"
2
+ require 'yaml'
3
+
4
+ module Commercelayer
5
+ class Resource < JSONAPI::Consumer::Resource
6
+ # self.connection_options = {} # Faraday connection options
7
+ # self.json_key_format = :dasherized_key # (default: underscored_key)
8
+ # self.route_format = :dasherized_route # (default: underscored_route)
9
+ # self.site = 'http://uashmama.commercelayer.test/api/'
10
+ end
11
+
12
+ resources = YAML::load_file(File.join(__dir__, '../../config/resources.yml'))["resources"].deep_symbolize_keys
13
+
14
+ resources.each do |resource_key, resource_values|
15
+ resource_class = Class.new(Resource) do
16
+ resource_values[:relationships].each do |name, options|
17
+ send options[:type], name, class_name: options[:class_name]
18
+ end
19
+ end
20
+ Commercelayer.const_set(resource_values[:name], resource_class)
21
+ end
22
+
23
+ end
@@ -0,0 +1,3 @@
1
+ module Commercelayer
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,3 @@
1
+ require "commercelayer/version"
2
+ require "commercelayer/client"
3
+ require "commercelayer/resource"
metadata ADDED
@@ -0,0 +1,160 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: commercelayer
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Filippo Conforti
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-07-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.16'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.16'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: vcr
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
+ - !ruby/object:Gem::Dependency
84
+ name: jsonapi-consumer
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: oauth2
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 1.4.0
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 1.4.0
111
+ description: The Official Commerce Layer Ruby Client
112
+ email:
113
+ - filippo@commercelayer.io
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".gitignore"
119
+ - ".rspec"
120
+ - ".travis.yml"
121
+ - CODE_OF_CONDUCT.md
122
+ - Gemfile
123
+ - Gemfile.lock
124
+ - LICENSE.txt
125
+ - README.md
126
+ - Rakefile
127
+ - bin/console
128
+ - bin/setup
129
+ - commercelayer.gemspec
130
+ - config/resources.yml
131
+ - lib/commercelayer.rb
132
+ - lib/commercelayer/client.rb
133
+ - lib/commercelayer/resource.rb
134
+ - lib/commercelayer/version.rb
135
+ homepage: https://github.com/commercelayer/commercelayer_ruby
136
+ licenses:
137
+ - MIT
138
+ metadata:
139
+ allowed_push_host: https://rubygems.org
140
+ post_install_message:
141
+ rdoc_options: []
142
+ require_paths:
143
+ - lib
144
+ required_ruby_version: !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - ">="
147
+ - !ruby/object:Gem::Version
148
+ version: '0'
149
+ required_rubygems_version: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
154
+ requirements: []
155
+ rubyforge_project:
156
+ rubygems_version: 2.7.7
157
+ signing_key:
158
+ specification_version: 4
159
+ summary: commercelayer
160
+ test_files: []