ecoportal-api-v2 0.8.24 → 0.8.25

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: fb1c34f7a92da53d66d3274e36401d853d62054e53706515dcc62d4f5a5447e7
4
- data.tar.gz: 6443519538afe51f6e41544ad4be7ca652379fb1b812add8a45655e00467b853
3
+ metadata.gz: 6d0fd873fa135b382e7a8e272ab0bbdee729e6d15ebaceea8b4699fb3af650f2
4
+ data.tar.gz: 55e54d6e2b07d8108f2ca1a915118133ca6d4180519e6c8cafb7eacc449c60b0
5
5
  SHA512:
6
- metadata.gz: e55afda3b52bc454997937bb18a523a993069497df4aa2104d434bf345f992e2ea0a08ecc06db0911427ccc634d79cbeddc1f2c7b6ef6bd929868807d06ebec8
7
- data.tar.gz: 143157a46e72041e54aace3f0c28a9f056295c2ddd41e3358a3472a4e6b447faa2486a8782fe3961b42e7f93627d88749af68da1c3d753ca1bc85273a87b2abc
6
+ metadata.gz: 907b384d0f7f31fc9f1d656c7e535c814ac7bbe4d0d8034d7c80f924b3896f4cc8855296e871fa0f1c9d4dc4cff12e05bbedd893c4750dc9d34d02d355678531
7
+ data.tar.gz: 9ca8fc0aaf31e37dfd61abdc45e42269abacbb3220b6dcc5fa020a26f5f3e1096dbb2723ed23d8036281db86453c2a187f026877f98e94324a614daa23ae10c2
data/CHANGELOG.md CHANGED
@@ -1,10 +1,18 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## [0.8.24] - 2022-01-05
4
+ ## [0.8.25] - 2022-02-04
5
5
 
6
6
  ### Added
7
+ - `Ecoportal::API::V2::Page::Component::ReferenceField#add` to add new references
8
+
7
9
  ### Changed
10
+ - `Ecoportal::API::Common::Content::HashDiffPatch#patch_data`
11
+ - Added support for model objects with no `patch_ver` (so diffs are calculated as well)
12
+
13
+ ### Fixed
14
+
15
+ ## [0.8.24] - 2022-01-05
8
16
 
9
17
  ### Fixed
10
18
  - `Ecoportal::API::V2::Page#stages?` do not generate an object to this purpose
@@ -88,6 +88,7 @@ module Ecoportal
88
88
  elsif a && a.key?("patch_ver")
89
89
  data_hash["patch_ver"] = a["patch_ver"]
90
90
  end
91
+ data_hash.delete("force_patch")
91
92
  end
92
93
  end
93
94
  end
@@ -16,6 +16,14 @@ module Ecoportal
16
16
  end
17
17
  end
18
18
 
19
+ def add(ref_id)
20
+ doc["references"].push({
21
+ "id" => ref_id,
22
+ "weight" => 0,
23
+ "patch_ver" => 0
24
+ })
25
+ end
26
+
19
27
  def to_s(delimiter: "\n")
20
28
  reference_ids.to_a.join(delimiter)
21
29
  end
@@ -1,5 +1,5 @@
1
1
  module Ecoportal
2
2
  module API
3
- GEM2_VERSION = "0.8.24"
3
+ GEM2_VERSION = "0.8.25"
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.24
4
+ version: 0.8.25
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-01-05 00:00:00.000000000 Z
11
+ date: 2022-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler