ecoportal-api-v2 3.2.4 → 3.2.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: c565450f97f891cf38d1affbce3b016793243f23147e253188f0f7eb2de93a0a
4
- data.tar.gz: 4d71fb79e4c95b49f3ff63f14459c6cdfd5d2909d6938e277b0bed3314e88d53
3
+ metadata.gz: '0807af17a542ea9e65f93a574d8141046620f6d24ff41e2a9e1dabd30d2567fc'
4
+ data.tar.gz: 56dae5b09d407ec5c5d4759a9369f29bea0fb9d7d6a7c8297ae1fcd55b82cf0c
5
5
  SHA512:
6
- metadata.gz: 8ddf9c56c933d761cfd5784532d20e0560edcbb3de609310a6f4f04e2a40e84fcf9d50f6338fd928fdf0c49d8fc3242c1fd99b20bada056f8ea6ea044fdec776
7
- data.tar.gz: 29a0689127ddc17a6d150be4b2a95be531e608222c8b5a761fc892c0c87966befad9cca05f3eeaf6956b91e9a77f09697557ecc37ab0a44222ff7eba969d5706
6
+ metadata.gz: 6503b5ddad47eb282f10522486cfc00d212c2a028cb4829b9016259c557475d80da9b858d601d45e59dff63546da21b6ccd58c4bf20c3d0efeb24a1c52b63117
7
+ data.tar.gz: 275fd85fc9cdbd23ac5f166f5c83385152313201f6bad07d516df45f90adeb7f025211c7e841ed7c068b9686d4be1dcfef5319849bca31b4230e7f9b8202bbd7
data/CHANGELOG.md CHANGED
@@ -12,6 +12,12 @@ All notable changes to this project will be documented in this file.
12
12
 
13
13
  ### Fixed
14
14
 
15
+ ## [3.2.5] - 2025-05-17
16
+
17
+ ### Fixed
18
+
19
+ - **typo** `#patch_diff` call.
20
+
15
21
  ## [3.2.4] - 2025-05-17
16
22
 
17
23
  ### Fixed
@@ -1,5 +1,5 @@
1
1
  module Ecoportal::API::Common::Content::DoubleModel::Diffable
2
- class DiffService
2
+ class PatchDiffService
3
3
  include Ecoportal::API::Common::Content::HashDiffPatch
4
4
 
5
5
  attr_reader :subject
@@ -8,8 +8,8 @@ module Ecoportal::API::Common::Content::DoubleModel::Diffable
8
8
  @subject = subject
9
9
  end
10
10
 
11
- def patch_diff
12
- super(
11
+ def diff
12
+ patch_diff(
13
13
  curr_doc,
14
14
  prev_doc
15
15
  )
@@ -4,9 +4,9 @@ module Ecoportal
4
4
  module Content
5
5
  class DoubleModel
6
6
  module Diffable
7
- require_relative 'diffable/diff_service'
7
+ require_relative 'diffable/patch_diff_service'
8
8
 
9
- DIFF_CLASS = DiffService
9
+ DIFF_CLASS = PatchDiffService
10
10
 
11
11
  class << self
12
12
  include Content::Includer
@@ -25,7 +25,7 @@ module Ecoportal
25
25
  # @return [nil, Hash] the patch `Hash` model including only
26
26
  # the changes between `original_doc` and `doc`.
27
27
  def as_update
28
- diff_class.new(self).patch_diff
28
+ diff_class.new(self).diff
29
29
  end
30
30
 
31
31
  # @return [Boolean] stating if there are changes.
@@ -1,5 +1,5 @@
1
1
  module Ecoportal
2
2
  module API
3
- GEM2_VERSION = '3.2.4'.freeze
3
+ GEM2_VERSION = '3.2.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.2.4
4
+ version: 3.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura
@@ -232,7 +232,7 @@ files:
232
232
  - lib/ecoportal/api/common/content/double_model/attributable/simple.rb
233
233
  - lib/ecoportal/api/common/content/double_model/base.rb
234
234
  - lib/ecoportal/api/common/content/double_model/diffable.rb
235
- - lib/ecoportal/api/common/content/double_model/diffable/diff_service.rb
235
+ - lib/ecoportal/api/common/content/double_model/diffable/patch_diff_service.rb
236
236
  - lib/ecoportal/api/common/content/double_model/double_doc.rb
237
237
  - lib/ecoportal/api/common/content/double_model/double_doc/base.rb
238
238
  - lib/ecoportal/api/common/content/double_model/double_doc/linkable_doc.rb