spree-api-client 0.2.3 → 0.2.5

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: bdb452de010ece9605e8f57e419b5c0dc8570c71cadf1ec6b4a46b44bd54e19f
4
- data.tar.gz: 1b21a6698ab40d88c05f4e7375aca47509564691071eaf6c861257f5233735ea
3
+ metadata.gz: 67d6635e5c79e15954da4a4dcb9a1195c40c7934b413793f489812a50ebc6a62
4
+ data.tar.gz: 0ed5f6068609f7c7ef10f5c7a63784e0f6a018af01318c5ba4b2e8fce2ee641b
5
5
  SHA512:
6
- metadata.gz: 76964aba29ad2d91fd8113068d14c9e53c07be7e1c0ff118db3604b01864367f4368fb5ce73e590d06a0bda57a202abd74a4fdaddec13cb9f5dcede357fea17a
7
- data.tar.gz: 6be8f467279351f436cc9f2e214dc65391ae7422a94a21b13e26e7fef5d07b49b555f130e166cf2c80a368b12cc312fd6016a781a03eb123cec2660e73c6045d
6
+ metadata.gz: 2c610df0bd9d36699a06b6018f518fcfa4f397e7d145b2cd13048725d7bbf3cd46114d26e9bfb832aae23b5a61242cc7ae45858e515821d910e7e39f485cfb44
7
+ data.tar.gz: 8ce57ca19a2c3a719569b0d862386f9ea1c2c5178578b94a79b7e7b7a49e828e9617c7cc9d083929429f573edc3c24fdf794c1687db0eaeef50edca19d44d0c7
@@ -26,7 +26,7 @@ module SpreeClient
26
26
  # @param [Hash] Attributes
27
27
  # @return [Struct]
28
28
  def new(**args)
29
- resource_class.new **args
29
+ resource_class.new(**args)
30
30
  end
31
31
 
32
32
  # Gets all products or filter with params
@@ -63,7 +63,7 @@ module SpreeClient
63
63
  # @param [Struct,Hash] Model instance
64
64
  # @return [Boolean]
65
65
  def create(resource)
66
- resource = new **resource unless resource.is_a? resource_class
66
+ resource = new(**resource) unless resource.is_a? resource_class
67
67
 
68
68
  @response = api.class.post endpoint(resource),
69
69
  body: params(resource),
@@ -78,7 +78,7 @@ module SpreeClient
78
78
  # @param [Struct,Hash]
79
79
  # @return [Boolean]
80
80
  def update(resource)
81
- resource = new resource unless resource.is_a? resource_class
81
+ resource = new(**resource) unless resource.is_a? resource_class
82
82
 
83
83
  @response = api.class.patch endpoint(resource),
84
84
  body: params(resource),
@@ -6,7 +6,8 @@ module SpreeClient
6
6
  price sku deleted_at prototype_id option_values_hash
7
7
  weight height width depth shipping_category_id
8
8
  tax_category_id cost_currency cost_price
9
- option_type_ids taxon_ids pay_what_you_can].freeze
9
+ option_type_ids taxon_ids pay_what_you_can
10
+ extra_attributes].freeze
10
11
 
11
12
  VARIANT = %i[id name presentation cost_price discontinue_on
12
13
  lock_version position track_inventory product_id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - f
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-29 00:00:00.000000000 Z
11
+ date: 2023-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -111,14 +111,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
111
111
  requirements:
112
112
  - - ">="
113
113
  - !ruby/object:Gem::Version
114
- version: 2.6.0
114
+ version: 2.7.0
115
115
  required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - ">="
118
118
  - !ruby/object:Gem::Version
119
119
  version: '0'
120
120
  requirements: []
121
- rubygems_version: 3.1.2
121
+ rubygems_version: 3.3.26
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: Spree Ecommerce API client