akeneo 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/akeneo.gemspec +1 -1
- data/lib/akeneo/api.rb +8 -0
- data/lib/akeneo/product_model_service.rb +4 -0
- data/lib/akeneo/product_service.rb +4 -0
- data/lib/akeneo/service_base.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e4514fbb5b3aac6c8793974f99c7142591612b8f512c90874da060cd6407a32
|
4
|
+
data.tar.gz: a77d97af639cd8197ab82023fb866c7dc2fe24ebd359b5580fdb4e9389b99614
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ff483644030738a4b46fb73740073df4f6e8e8fb9346b7a8ec18eec2afccc7486924cfc2354100c1bbde0ad00bcf4cb99acefceab7b8dbf7f196af9614f1a5e
|
7
|
+
data.tar.gz: ab802e777759f4d7fbfd6711358e95a74dccab93e014b6a3516d2b096c1c077a326ed92d07c6b5fb14bed72debce0b13b01c91fca6f3f062429b59f8a264abdd
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/akeneo.gemspec
CHANGED
data/lib/akeneo/api.rb
CHANGED
@@ -40,6 +40,14 @@ module Akeneo
|
|
40
40
|
product_model_service.all(with_family: with_family)
|
41
41
|
end
|
42
42
|
|
43
|
+
def create_or_update_product(code:, options:)
|
44
|
+
product_service.create_or_update(code, options)
|
45
|
+
end
|
46
|
+
|
47
|
+
def create_or_update_product_model(code:, options:)
|
48
|
+
product_model_service.create_or_update(code, options)
|
49
|
+
end
|
50
|
+
|
43
51
|
def product_parent(code)
|
44
52
|
product_model_service.find(code)
|
45
53
|
end
|
data/lib/akeneo/service_base.rb
CHANGED
@@ -38,6 +38,13 @@ module Akeneo
|
|
38
38
|
)
|
39
39
|
end
|
40
40
|
|
41
|
+
def patch_request(path, options = {})
|
42
|
+
HTTParty.patch(
|
43
|
+
"#{@url}/api/rest/v1#{path}",
|
44
|
+
options.merge(headers: default_request_headers)
|
45
|
+
)
|
46
|
+
end
|
47
|
+
|
41
48
|
def pagination_param
|
42
49
|
"pagination_type=#{DEFAULT_PAGINATION_TYPE}"
|
43
50
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: akeneo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AWN Dev Team
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|