ecoportal-api-v2 0.8.14 → 0.8.18

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3480ab100855337eef9de50609f4f4776418de1b09a5a1eac3ee31f936f4cd00
4
- data.tar.gz: 2520bf687a1d00df3d925788600f78c266fcc6599ac816dac1f7df08703bc9e9
3
+ metadata.gz: 752926633d87b225938d5dc32b89e1250d2931a615875df1896052afbabd17de
4
+ data.tar.gz: c3b5522c590eb27125783b31b20f8864d24aef43bd07d72f258ed02548d73581
5
5
  SHA512:
6
- metadata.gz: 011752c7161177026fdcd59a01ee7eb048094eb29c5688e2b68e6ad2aec0a263e93990726c1fca86eb1bfc86d000d360db4d8cf685783f7c2ab8257570258740
7
- data.tar.gz: 012ed55b7472c56f76b2e1bdafd3ce8cb926c67d5d94e6b3349a7c21ade9ff3a20c2caa4974fe9cdc30a6dba8312663edc633ae7d0a66b31117b57e795727dde
6
+ metadata.gz: 2a714d48b68220f8deefed8437772a61830146e6b68453a58f13817a50b1cc746ce7098a131b7919d161b46b850c73a35abb1bc8d414bc0f3c59579c7f25be0a
7
+ data.tar.gz: c919b046a896afb11f8540288d374e8f1c0e5b5d9970793caaaa3814b9b12a9cb3587abf9e0e81f7230d97a72ed34d71f22e319086c637b8bcc02cc338eb3d9c
data/CHANGELOG.md CHANGED
@@ -1,7 +1,23 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## [0.8.14] - 2021-09-xx
4
+ ## [0.8.18] - 2021-09-xx
5
+
6
+ ### Added
7
+ ### Changed
8
+ ### Fixed
9
+
10
+ ## [0.8.17] - 2021-09-29
11
+
12
+ ### Fixed
13
+ - Typo in `Section#attached?`
14
+
15
+ ## [0.8.15] - 2021-09-29
16
+
17
+ ### Fixed
18
+ - Typo in `Section#component?`
19
+
20
+ ## [0.8.14] - 2021-09-28
5
21
 
6
22
  ### Added
7
23
  - `Ecoportal::API::Common::Content::CollectionModel`
@@ -36,7 +52,6 @@ All notable changes to this project will be documented in this file.
36
52
  - Fields belong at least to one section
37
53
  - Sections belong to at least one stage
38
54
 
39
- ### Changed
40
55
  ### Fixed
41
56
  - `Ecoportal::API::Common::Content::ArrayModel#insert_one` was not inserting when not found. Should insert at least at the end.
42
57
 
@@ -40,7 +40,7 @@ module Ecoportal
40
40
 
41
41
  # @return [Array<Ecoportal::API::V2::Page::Stage>] the stage(s) this section belongs to.
42
42
  def stages
43
- ooze.stages.select {|stg| stg.has_section?(self)}
43
+ ooze.stages.select {|stg| stg.section?(self)}
44
44
  end
45
45
 
46
46
  # @return [Boolean] whether or not the section appears in an ooze instance
@@ -63,7 +63,7 @@ module Ecoportal
63
63
  # @param com_or_id [Ecoportal::API::V2::Page::Component, String] Component or `id` thereof
64
64
  # @return [Boolean] whether or not a component/field belongs to this section.
65
65
  def component?(com_or_id)
66
- case
66
+ case com_or_id
67
67
  when Ecoportal::API::V2::Page::Component
68
68
  component?(com_or_id.id)
69
69
  when String
@@ -54,7 +54,7 @@ module Ecoportal
54
54
  if (orphans = sections.unattached).length > 0
55
55
  msg += "There are sections not attached to any stage:"
56
56
  msg += orphans.map do |sec|
57
- "'#{sec.header}' (#{sec.id})"
57
+ "'#{sec.heading}' (#{sec.id})"
58
58
  end.join("\n • ") + "\n"
59
59
  end
60
60
  msg.empty?? true : msg
@@ -1,5 +1,5 @@
1
1
  module Ecoportal
2
2
  module API
3
- GEM2_VERSION = "0.8.14"
3
+ GEM2_VERSION = "0.8.18"
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.8.14
4
+ version: 0.8.18
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-09-27 00:00:00.000000000 Z
11
+ date: 2021-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler