flex_commerce_api 0.8.1 → 0.8.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ca38dba4a1fd2e2fc35b89ae3f66a7c22ba83ce2300bfcc5ccca0eb56febdcd
4
- data.tar.gz: 551f7ba8158e64c66d2c076fabbdb99279a3441fdc27ff5ac6799c041808b378
3
+ metadata.gz: d86e4e9f3b5426f6f48162d765f57a3ee84f6d4edce274be7aac13650a39cfb4
4
+ data.tar.gz: 903c6d2b76ca6d8a5504b7de2da4268e405367a50d84eb13c0f9fe174053ac35
5
5
  SHA512:
6
- metadata.gz: e148bcc1259523c421add780130a28a3d445696c086e4b894f56a4432d480c512b08da6aa4e575d06f040f05000db776301759a993dc8920aff2be069cf83922
7
- data.tar.gz: be0b5a2e09f14d3638ab5d7ff75da1953f5c5fdf19c57c44ef5af67aaaffb1be0f81ecfe98225df8b81a1fba6185d71aee7b16d62e7d0e6c86f796ce8a122de3
6
+ metadata.gz: a8f5c5d91ab5763a9943c7a1a9a7f4ef523efb0048e715e914aa8da0f025dcd1bf43ce0698946369ae85835cf9919ea52e295df36582c2424d68b0410b1ede53
7
+ data.tar.gz: 51895fb66baab3f8d52940bc26ca915fd2e1d6100720aad1687bd6d25416dcd00fb3e4d08ae9b9d439104adaac649ebb57c982609f947058bf9be823165321a9
@@ -17,7 +17,7 @@ jobs:
17
17
  - name: Set up Ruby 2.7
18
18
  uses: actions/setup-ruby@v1
19
19
  with:
20
- version: 2.7.x
20
+ ruby-version: 2.7.x
21
21
 
22
22
  - name: Publish to RubyGems
23
23
  run: |
@@ -1,4 +1,4 @@
1
- require 'faraday-http-cache'
1
+ require "faraday-http-cache"
2
2
 
3
3
  module FlexCommerceApi
4
4
  module JsonApiClientExtension
@@ -10,9 +10,10 @@ module FlexCommerceApi
10
10
  add_json_api_extension = options.fetch(:add_json_api_extension, true)
11
11
  authenticate = options.fetch(:authenticate, true)
12
12
  include_previewed = options.fetch :include_previewed, false
13
- @faraday = Faraday.new(site) do |builder|
13
+ @faraday = Faraday.new(site) { |builder|
14
14
  builder.request :json
15
15
  builder.use JsonApiClientExtension::SaveRequestBodyMiddleware
16
+ builder.use JsonApiClientExtension::ForwardedForMiddleware
16
17
  builder.use JsonApiClientExtension::JsonFormatMiddleware if add_json_api_extension
17
18
  builder.use JsonApiClientExtension::PreviewedRequestMiddleware if include_previewed
18
19
  builder.use JsonApiClient::Middleware::JsonRequest
@@ -29,7 +30,7 @@ module FlexCommerceApi
29
30
  builder.adapter *adapter_options
30
31
  builder.options[:open_timeout] = options.fetch(:open_timeout)
31
32
  builder.options[:timeout] = options.fetch(:timeout)
32
- end
33
+ }
33
34
  faraday.basic_auth(ApiBase.username, ApiBase.password) if authenticate
34
35
 
35
36
  yield(self) if block_given?
@@ -42,6 +43,7 @@ module FlexCommerceApi
42
43
  end
43
44
 
44
45
  private
46
+
45
47
  def cache_options(options)
46
48
  {
47
49
  # treats the cache like a client, not a proxy
@@ -1,3 +1,3 @@
1
1
  module FlexCommerceApi
2
- VERSION = "0.8.1"
2
+ VERSION = "0.8.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flex_commerce_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Taylor