akeneo 1.4.1 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/akeneo.gemspec +1 -1
- data/lib/akeneo/api.rb +4 -0
- data/lib/akeneo/media_files_service.rb +19 -0
- data/lib/akeneo/services.rb +5 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e23e9957d939ac3ec1b78110e9c1488e9b7603661a635bb2c0ea6ec7ea6de067
|
4
|
+
data.tar.gz: 03c61f430ae6e7df2ea18d687b6a0a4fbe969d983bcfca02fe8c72e27d213a4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24adead0b454a21ba3f9d5e01c08f8bfc03284451b29deedafa6ff1b971d030839d0f66fd3a0e5264e7c92accf24e3aee2f7a0c837e320eced2b469f1acaffaf
|
7
|
+
data.tar.gz: 1b73fae84742e1e1a94066f96db9186e5795a31d28d0a6c9db5b41cbe1ad18ca1b3cec0697b115634d00d54b406114d29d5a96fcf5f4b0ce0e20c12e70cf4c97
|
data/Gemfile.lock
CHANGED
data/akeneo.gemspec
CHANGED
data/lib/akeneo/api.rb
CHANGED
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative './service_base.rb'
|
4
|
+
|
5
|
+
module Akeneo
|
6
|
+
class MediaFilesService < ServiceBase
|
7
|
+
def find(code)
|
8
|
+
response = get_request("/media-files/#{code}")
|
9
|
+
|
10
|
+
response.parsed_response if response.success?
|
11
|
+
end
|
12
|
+
|
13
|
+
def download(code)
|
14
|
+
response = get_request("/media-files/#{code}/download")
|
15
|
+
|
16
|
+
response.parsed_response if response.success?
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/lib/akeneo/services.rb
CHANGED
@@ -9,6 +9,7 @@ require_relative './measure_family_service'
|
|
9
9
|
require_relative './product_model_service'
|
10
10
|
require_relative './product_service'
|
11
11
|
require_relative './published_product_service'
|
12
|
+
require_relative './media_files_service'
|
12
13
|
|
13
14
|
module Akeneo
|
14
15
|
module Services
|
@@ -52,5 +53,9 @@ module Akeneo
|
|
52
53
|
def published_product_service
|
53
54
|
PublishedProductService.new(url: url, access_token: fresh_access_token)
|
54
55
|
end
|
56
|
+
|
57
|
+
def media_files_service
|
58
|
+
MediaFilesService.new(url: url, access_token: fresh_access_token)
|
59
|
+
end
|
55
60
|
end
|
56
61
|
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.5.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-02-
|
11
|
+
date: 2019-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -153,6 +153,7 @@ files:
|
|
153
153
|
- lib/akeneo/family_service.rb
|
154
154
|
- lib/akeneo/image_service.rb
|
155
155
|
- lib/akeneo/measure_family_service.rb
|
156
|
+
- lib/akeneo/media_files_service.rb
|
156
157
|
- lib/akeneo/product_model_service.rb
|
157
158
|
- lib/akeneo/product_service.rb
|
158
159
|
- lib/akeneo/published_product_service.rb
|
@@ -178,8 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
179
|
- !ruby/object:Gem::Version
|
179
180
|
version: '0'
|
180
181
|
requirements: []
|
181
|
-
|
182
|
-
rubygems_version: 2.7.6
|
182
|
+
rubygems_version: 3.0.2
|
183
183
|
signing_key:
|
184
184
|
specification_version: 4
|
185
185
|
summary: API client for accessing Akeneo
|