Skip to content

Commit

Permalink
Merge pull request #142 from pedelman/fix_faraday_dep
Browse files Browse the repository at this point in the history
Fix issue which caused Faraday to resolve to latest version.
  • Loading branch information
pedelman authored May 2, 2017
2 parents ae157f9 + d443939 commit def011a
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 15 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Your contribution here.

* [#000](https://github.com/bigcommerce/bigcommerce-api-ruby/pull/000): Brief description here. - [@username](https://github.com/username).
* [#142](https://github.com/bigcommerce/bigcommerce-api-ruby/pull/142): Update Faraday gem version. Add support for OAuth SSL options. - [@pedelman](https://github.com/pedelman)
* [#136](https://github.com/bigcommerce/bigcommerce-api-ruby/pull/136): Added accept-encoding: gzip header. - [@adambilsing](https://github.com/adambilsing)
* [#128](https://github.com/bigcommerce/bigcommerce-api-ruby/pull/128): Added support for token generation for storefront login. - [@mattolson](https://github.com/mattolson).

Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ end
require 'rubocop/rake_task'
RuboCop::RakeTask.new(:rubocop)

task default: [:spec, :rubocop]
task default: %i[spec rubocop]
2 changes: 1 addition & 1 deletion bigcommerce.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Gem::Specification.new do |s|
s.add_development_dependency 'bundler'
s.add_development_dependency 'rake'

s.add_dependency 'faraday', '~> 0.9'
s.add_dependency 'faraday', '~> 0.12.0'
s.add_dependency 'faraday_middleware', '~> 0.10.0'
s.add_dependency 'hashie', '~> 3.4'
s.add_dependency 'jwt', '~> 1.5.4'
Expand Down
2 changes: 1 addition & 1 deletion lib/bigcommerce/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module Connection
}.freeze

def self.build(config)
ssl_options = config.ssl if config.auth == 'legacy'
ssl_options = config.ssl || {}
Faraday.new(url: config.api_url, ssl: ssl_options) do |conn|
conn.request :json
conn.headers = HEADERS
Expand Down
2 changes: 1 addition & 1 deletion lib/bigcommerce/resources/geography/country.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Bigcommerce
class Country < Resource
include Bigcommerce::ResourceActions.new(
uri: 'countries/%d',
disable: [:create, :update, :destroy, :destroy_all]
disable: %i[create update destroy destroy_all]
)

property :id
Expand Down
2 changes: 1 addition & 1 deletion lib/bigcommerce/resources/geography/state.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Bigcommerce
class State < Resource
include Bigcommerce::SubresourceActions.new(
uri: 'countries/%d/states/%d',
disable: [:create, :update, :destroy, :destroy_all]
disable: %i[create update destroy destroy_all]
)

property :id
Expand Down
2 changes: 1 addition & 1 deletion lib/bigcommerce/resources/orders/order_coupon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Bigcommerce
class OrderCoupon < Resource
include Bigcommerce::SubresourceActions.new(
uri: 'orders/%d/coupons/%d',
disable: [:create, :update, :destroy, :destroy_all]
disable: %i[create update destroy destroy_all]
)

property :id
Expand Down
2 changes: 1 addition & 1 deletion lib/bigcommerce/resources/orders/order_message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Bigcommerce
class OrderMessage < Resource
include Bigcommerce::SubresourceActions.new(
uri: 'orders/%d/messages/%d',
disable: [:create, :update, :destroy, :destroy_all]
disable: %i[create update destroy destroy_all]
)

property :id
Expand Down
2 changes: 1 addition & 1 deletion lib/bigcommerce/resources/orders/order_product.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Bigcommerce
class OrderProduct < Resource
include Bigcommerce::SubresourceActions.new(
uri: 'orders/%d/products/%d',
disable: [:create, :update, :destroy, :destroy_all]
disable: %i[create update destroy destroy_all]
)

property :id
Expand Down
2 changes: 1 addition & 1 deletion lib/bigcommerce/resources/orders/order_shipping_address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Bigcommerce
class OrderShippingAddress < Resource
include Bigcommerce::SubresourceActions.new(
uri: 'orders/%d/shipping_addresses/%d',
disable: [:create, :update, :destroy, :destroy_all]
disable: %i[create update destroy destroy_all]
)

property :id
Expand Down
2 changes: 1 addition & 1 deletion lib/bigcommerce/resources/orders/order_status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Bigcommerce
class OrderStatus < Resource
include Bigcommerce::ResourceActions.new(
uri: 'order_statuses/%d',
disable: [:create, :update, :destroy, :destroy_all]
disable: %i[create update destroy destroy_all]
)

property :id
Expand Down
2 changes: 1 addition & 1 deletion lib/bigcommerce/resources/orders/order_tax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Bigcommerce
class OrderTax < Resource
include Bigcommerce::SubresourceActions.new(
uri: 'orders/%d/taxes/%d',
disable: [:create, :update, :destroy, :destroy_all]
disable: %i[create update destroy destroy_all]
)

property :id
Expand Down
2 changes: 1 addition & 1 deletion lib/bigcommerce/resources/products/configurable_field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Bigcommerce
class ConfigurableField < Resource
include Bigcommerce::SubresourceActions.new(
uri: 'products/%d/configurable_fields/%d',
disable: [:create, :update]
disable: %i[create update]
)

property :id
Expand Down
2 changes: 1 addition & 1 deletion lib/bigcommerce/resources/products/product_option.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Bigcommerce
class ProductOption < Resource
include Bigcommerce::SubresourceActions.new(
uri: 'products/%d/options/%d',
disable: [:create, :update, :destroy, :destroy_all]
disable: %i[create update destroy destroy_all]
)

property :id
Expand Down
2 changes: 1 addition & 1 deletion lib/bigcommerce/resources/shipping/shipping_method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Bigcommerce
class ShippingMethod < Resource
include Bigcommerce::ResourceActions.new(
uri: 'shipping/methods/%d',
disable: [:create, :update, :destroy, :destroy_all]
disable: %i[create update destroy destroy_all]
)

property :id
Expand Down
2 changes: 1 addition & 1 deletion lib/bigcommerce/resources/tax/tax_class.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Bigcommerce
class TaxClass < Resource
include Bigcommerce::ResourceActions.new(
uri: 'tax_classes/%d',
disable: [:create, :update, :destroy, :destroy_all]
disable: %i[create update destroy destroy_all]
)

property :id
Expand Down

0 comments on commit def011a

Please sign in to comment.