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 +4 -4
- data/lib/spree-api-client/stock_items.rb +4 -0
- data/lib/spree-api-client/version.rb +1 -1
- data/spree-api-client.gemspec +4 -4
- metadata +18 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c67ab7a011784ef3f51de575b2e5eb6a8cc405453b813b260b7ce8fcac4d7db3
|
4
|
+
data.tar.gz: c36fc17208636a5f272f8d4ef80de9fab7cb0e403d9924b952ff8eba870444e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/spree-api-client.gemspec
CHANGED
@@ -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'
|
22
|
-
gem.add_dependency 'faraday'
|
23
|
-
gem.add_dependency 'faraday_middleware'
|
21
|
+
gem.add_dependency 'hashie'
|
22
|
+
gem.add_dependency 'faraday'
|
23
|
+
gem.add_dependency 'faraday_middleware'
|
24
24
|
|
25
|
-
gem.add_dependency 'multi_json'
|
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.
|
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-
|
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: '
|
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: '
|
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
|
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
|
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
|
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
|
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: '
|
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: '
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: httparty
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|