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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 221d5b580361d663ead77df095ca7dd833b758c4b5ee1abca477cb0f4e2ac07f
4
- data.tar.gz: 2c22b60ee833628b5c21209bc00b42a29b456b3e42283c04113113f4687ae71c
3
+ metadata.gz: b4a2c3d92ddeb876e56bd7059d4ca1b3a9a9ce5537371b69a6eebf6f78c7e577
4
+ data.tar.gz: c973b20893ac8e57b066d4cda1e685235caaf9dbda60dee8b5e943062eaee831
5
5
  SHA512:
6
- metadata.gz: 2a95f288bc76b1f18187bc6dbc612ce5d034d6ea6655829ea309acbe53862051c388701de9c99c58b76fd41a40e4ae6d1c1fea4343e077b70da610addf1e9bac
7
- data.tar.gz: c72c8eba1d55203ff3fa4c3d6d1d3ec76c922e99897ec41b300d97138526d8b1df8391ddf75ec410b25246699a2afcf49958914c58c7a8a0f6484ffe504428de
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.5] - 2022-11-xx
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::Image#add_image`
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|
@@ -1,5 +1,5 @@
1
1
  module Ecoportal
2
2
  module API
3
- GEM2_VERSION = "0.9.4"
3
+ GEM2_VERSION = "0.9.5"
4
4
  end
5
5
  end
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
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-15 00:00:00.000000000 Z
11
+ date: 2022-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler