ecoportal-api-v2 3.3.4 → 3.3.5

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: c89de46bf0ec5496e672a071c0c402f5b7c4c4e227b01639e48c46affa0d9bf8
4
- data.tar.gz: dbf0124f2f65d2701aefe6ed338a873a759577e206b20021d88475237799a594
3
+ metadata.gz: d9ea2abc82177f2b292bab333e466526dc633c8b849a4af90ce66c7ed8e127f7
4
+ data.tar.gz: 655492d67fe745a2025dbb3b3fc4c928af901a985d40daf80a2fad687c5502d3
5
5
  SHA512:
6
- metadata.gz: a0216dc9983b1889b8d512e1b5b3c2868a28907b4b00b3a22f2f72482bf0cf174586627e287d93e18776af64853047148de47349c5f86440afbf75b3cb0bdc9f
7
- data.tar.gz: 220919e3926f1d9cd1b06d93828ef5e1485f699eb5aa7caa882b9b6b4210e7ed8b87495c88497c7a725ef290a91b7debd6f590d93f3e6ce73512d5399ef565cd
6
+ metadata.gz: c822d0f45c889887c6b65b76ed410b141b814a490cabdeb8144e6135066fa2dd54153fb747dc95213b6038563750f40fbc58fb10d1341b51c239471e4cdba9ff
7
+ data.tar.gz: 1d780d683ba889a1ec606a36877a36e35d2aa4a4fea74c060c75c2b03d052af0529aa8d538d250f1f48cae6546c94bcf2dc79c3007ca9bb123c90595a72328a6
data/CHANGELOG.md CHANGED
@@ -2,6 +2,30 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [3.3.5] - 2026-08-20
6
+
7
+ ### Fixed
8
+
9
+ - **`ClassHelpers#to_time` rescued a constant that does not exist.** The rescue clause read
10
+ `ArgumentArgument`, which appears nowhere in this gem, so the documented `exception: false`
11
+ mode could never work: a failed `Time.parse` raised
12
+ `NameError: uninitialized constant ...ClassHelpers::ArgumentArgument` while Ruby resolved the
13
+ rescue, instead of returning `nil`. Downstream, `ecoportal-api-graphql`'s models inherit this
14
+ helper through DoubleModel, so a null or object-shaped date reaching a `passdate` field
15
+ surfaced as that NameError rather than as nil or a clean `ArgumentError`.
16
+ Adds `spec/ecoportal/api/common/content/class_helpers_spec.rb` -- the first spec that file has
17
+ had -- covering both modes, `Time`/`nil` pass-through and `Date` conversion. The guard was
18
+ verified by re-introducing the typo, which fails the suite with exactly that NameError.
19
+
20
+ ### Added
21
+
22
+ - **CI runs on merge requests.** `.gitlab-ci.yml` previously carried only the `epai:sync`
23
+ include, whose rules exclude MR pipelines, so a merge request produced a pipeline with zero
24
+ jobs -- which GitLab does not create at all. With "only allow merge if pipeline succeeds"
25
+ enabled, every MR was blocked on a pipeline that could not exist. Now: `workflow:` rules that
26
+ admit `merge_request_event`, `rspec` blocking, `rubocop` non-blocking while four pre-existing
27
+ offences remain in `class_helpers.rb`.
28
+
5
29
  ## [3.3.4] - 2026-08-13
6
30
 
7
31
  ### Fixed
@@ -99,7 +99,7 @@ module Ecoportal
99
99
  when String
100
100
  begin
101
101
  Time.parse(value)
102
- rescue ArgumentArgument
102
+ rescue ArgumentError
103
103
  raise if exception
104
104
  nil
105
105
  end
@@ -1,5 +1,5 @@
1
1
  module Ecoportal
2
2
  module API
3
- GEM2_VERSION = '3.3.4'.freeze
3
+ GEM2_VERSION = '3.3.5'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecoportal-api-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.4
4
+ version: 3.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura