ecoportal-api-v2 0.9.4 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -2
- data/lib/ecoportal/api/v2/page/component/images_field.rb +4 -0
- data/lib/ecoportal/api/v2_version.rb +1 -1
- 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: b4a2c3d92ddeb876e56bd7059d4ca1b3a9a9ce5537371b69a6eebf6f78c7e577
|
4
|
+
data.tar.gz: c973b20893ac8e57b066d4cda1e685235caaf9dbda60dee8b5e943062eaee831
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4234c62329be25117a0e40fa7576f038e314480f10be190bf0c5492e9dfd4798683f7dec2a5e60cfd9cd5eaff63104e7ec49db2264b207915bd355b5bcc3585c
|
7
|
+
data.tar.gz: fb7c035cbb19dfa76f63140c5dc2a256b826d88cfbbc5ddf2e14936c68b4dbeab42afec1687813606c363a3bc1ce9739b811f09aaab4905fa58b40405192ee6c
|
data/CHANGELOG.md
CHANGED
@@ -1,16 +1,21 @@
|
|
1
1
|
# Change Log
|
2
2
|
All notable changes to this project will be documented in this file.
|
3
3
|
|
4
|
-
## [0.9.
|
4
|
+
## [0.9.6] - 2022-11-xx
|
5
5
|
|
6
6
|
### Added
|
7
7
|
### Changed
|
8
8
|
### Fixed
|
9
9
|
|
10
|
+
## [0.9.5] - 2022-11-17
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
- `Ecoportal::API::V2::Page::Component::ImagesField#empty?` missed to add this one.
|
14
|
+
|
10
15
|
## [0.9.4] - 2022-11-15
|
11
16
|
|
12
17
|
### Added
|
13
|
-
- `Ecoportal::API::V2::Page::Component::
|
18
|
+
- `Ecoportal::API::V2::Page::Component::ImagesField#add_image`
|
14
19
|
- `empty?` method to components
|
15
20
|
|
16
21
|
## [0.9.3] - 2022-10-11
|
@@ -17,6 +17,10 @@ module Ecoportal
|
|
17
17
|
passboolean :strech, :no_popup, :hide_options
|
18
18
|
embeds_many :images, klass: "Ecoportal::API::V2::Page::Component::Image", order_key: :weight
|
19
19
|
|
20
|
+
def empty?
|
21
|
+
images.empty?
|
22
|
+
end
|
23
|
+
|
20
24
|
def add_image(upload_id, pos: NOT_USED, before: NOT_USED, after: NOT_USED)
|
21
25
|
image_doc = images.items_class.new_doc
|
22
26
|
images.upsert!(image_doc, pos: pos, before: before, after: after) do |image|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ecoportal-api-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oscar Segura
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|