cq-spree-api-client 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 45e24a88c8b24f9b582412503a6de9047a7c194911f9d29b1673d1d29f0d1ff5
4
- data.tar.gz: 5502329450cec215ca414cf02d6f0df952985b9051eb86a813edcc4ae5db66b3
3
+ metadata.gz: c67ab7a011784ef3f51de575b2e5eb6a8cc405453b813b260b7ce8fcac4d7db3
4
+ data.tar.gz: c36fc17208636a5f272f8d4ef80de9fab7cb0e403d9924b952ff8eba870444e2
5
5
  SHA512:
6
- metadata.gz: e072cb26bbdfcf8ce9e39b566b283b4fe8dc934696508c0c1278be3c3abb958a00584df316060ba16e8bd0efd313ff04db439ab68a53b5e08f4f12315a3486d3
7
- data.tar.gz: f5a7c3f5585a931bccadb326194471edbfb5e4030a8d9055630e704195130442b8953f061641e2b96dafcc6b66554d6d7bbfcc533877a89b09df41635978d004
6
+ metadata.gz: 8dfd58565d6b6fa51c5340d2fba38147f2c4d5b5e7d15978be0faec21a4c2b7b93b6f4c25a48fcb0fa26d6c9978c7b5b3a596605efdb816aa56c407cf93cb3da
7
+ data.tar.gz: 532a0c1b42ab2487c71e849d727be5857cc4162a882b195fedaeecb0b0948d4e46a2ae5a62fd0602fc8c310eda056eeb84c0c8aa8595e7788836b5ea5efb175d
@@ -22,6 +22,10 @@ module Spree
22
22
  put("stock_locations/#{location}/stock_items/#{stock_item}", options)
23
23
  end
24
24
 
25
+ def batch_update_stock_items(location=1, options={})
26
+ put("stock_locations/#{location}/stock_items/batch_update", options)
27
+ end
28
+
25
29
  def delete_stock_item(stock_item, location=1, options={})
26
30
  delete("stock_locations/#{location}/stock_items/#{stock_item}", options)
27
31
  end
@@ -1,7 +1,7 @@
1
1
  module Spree
2
2
  module API
3
3
  class Client
4
- VERSION = "0.0.5"
4
+ VERSION = "0.0.6"
5
5
  end
6
6
  end
7
7
  end
@@ -18,11 +18,11 @@ Gem::Specification.new do |gem|
18
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
19
  gem.require_paths = ["lib"]
20
20
 
21
- gem.add_dependency 'hashie', '~> 3.4'
22
- gem.add_dependency 'faraday', '~> 0.9'
23
- gem.add_dependency 'faraday_middleware', '~> 0.9'
21
+ gem.add_dependency 'hashie'
22
+ gem.add_dependency 'faraday'
23
+ gem.add_dependency 'faraday_middleware'
24
24
 
25
- gem.add_dependency 'multi_json', '~> 1.4'
25
+ gem.add_dependency 'multi_json'
26
26
  gem.add_dependency 'httparty'#, '~> 0.9'
27
27
 
28
28
  gem.add_development_dependency 'webmock'
metadata CHANGED
@@ -1,71 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cq-spree-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabian Oudhaarlem
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-03 00:00:00.000000000 Z
11
+ date: 2019-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '3.4'
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '3.4'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0.9'
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '0.9'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: faraday_middleware
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '0.9'
47
+ version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '0.9'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: multi_json
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '1.4'
61
+ version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '1.4'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: httparty
71
71
  requirement: !ruby/object:Gem::Requirement