ecoportal-api-v2 0.8.21 → 0.8.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/lib/ecoportal/api/v2/page/section.rb +2 -3
- 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: d6699a6cd1b82c54b0bf097dde24c034b4b114faa6cf23a7765429c384d45b3d
|
|
4
|
+
data.tar.gz: eef7fb625d8073d7de972f028fe9628886eb04e3b1eee6e9a8bf760170e64a1c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b6eb538df89c4d99b7715d23c75c3eea53a4ffbb3063c612a797a7aebe58f4e427393c410a10e7b67b3744f4986d550c24659ad4d17b9dd870d742f924c0d7c7
|
|
7
|
+
data.tar.gz: 3da71eae2f509fa6a7afaf7b6744e18210741efddffa5f7d06858de091922f1dccbc64017be8dbc9b13bc8f6aaaaea4abb0b94b433f8a7bb178f07407268dd57
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
+
## [0.8.22] - 2021-12-23
|
|
5
|
+
|
|
6
|
+
### Added
|
|
7
|
+
### Changed
|
|
8
|
+
### Fixed
|
|
9
|
+
- `Ecoportal::API::V2::Page::Section#add_component` was not using correctly `before` and `after`
|
|
10
|
+
- It was not correctly translating them into the existing component
|
|
11
|
+
|
|
4
12
|
## [0.8.21] - 2021-12-15
|
|
5
13
|
|
|
6
14
|
### Added
|
|
@@ -11,7 +19,7 @@ All notable changes to this project will be documented in this file.
|
|
|
11
19
|
|
|
12
20
|
### Changed
|
|
13
21
|
- Re-exposed `Ecoportal::API::V2::Stages#ordered`
|
|
14
|
-
|
|
22
|
+
|
|
15
23
|
### Fixed
|
|
16
24
|
- `Ecoportal::API::V2::Page::Component::ImagesField#images` typo in `klass`
|
|
17
25
|
|
|
@@ -137,7 +137,7 @@ module Ecoportal
|
|
|
137
137
|
if before
|
|
138
138
|
before_fld = to_component(before, side: side)
|
|
139
139
|
elsif after
|
|
140
|
-
after_fld = to_component(
|
|
140
|
+
after_fld = to_component(after, side: side)
|
|
141
141
|
end
|
|
142
142
|
|
|
143
143
|
if split?
|
|
@@ -145,7 +145,6 @@ module Ecoportal
|
|
|
145
145
|
else
|
|
146
146
|
ids_ary = component_ids
|
|
147
147
|
end
|
|
148
|
-
|
|
149
148
|
ids_ary.insert_one(field.id, before: before_fld&.id, after: after_fld&.id)
|
|
150
149
|
self
|
|
151
150
|
end
|
|
@@ -168,7 +167,7 @@ module Ecoportal
|
|
|
168
167
|
|
|
169
168
|
fields.find do |fld|
|
|
170
169
|
found = nil
|
|
171
|
-
found ||=
|
|
170
|
+
found ||= fld.id == value.id if value.is_a?(Ecoportal::API::V2::Page::Component)
|
|
172
171
|
found ||= fld.id == value
|
|
173
172
|
found ||= same_string?(fld.label, value)
|
|
174
173
|
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.8.
|
|
4
|
+
version: 0.8.22
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Oscar Segura
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-12-
|
|
11
|
+
date: 2021-12-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|