ecoportal-api-v2 0.8.32 → 0.8.33

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 61f3db1a50844d2f5ca194ff29939ed8daa393a6d3596e50a670ebc0f99e58db
4
- data.tar.gz: b39bd03de67e23d12a48e12fdc19de1b33d131a1c4bec1aa193bf35fcbdc1035
3
+ metadata.gz: 7fabf2bda9e67e4cb622c1f248b736cc8fb18f50e6ca4faed446e8d653921864
4
+ data.tar.gz: eae102b95a361093fc72a39f59de097cebc99617a9b9787c6c132490887329a0
5
5
  SHA512:
6
- metadata.gz: fba38418ad4ed3febd3859f0d4d096d75f079aa1e7abc745ca76a7deb5479de93ab5fecede2954646691e1aa17ee66348e04a8f349d2f8800f06ca36e76efa28
7
- data.tar.gz: dcfad6f62286db5b028d3ab1b29b29a0f34c04c4a8d73d2cdc01c060601d92e678d6e51f96a4ce6caa22e10d9f3bb36ec97dc8f9fef4b894c5c52ba5332e388a
6
+ metadata.gz: f5ce62ecf9835b548b0c73d59c892d82697e3be52aadf8a7c0e60e7acd90e97ddfccd243b67bc6c6fea99504e3fc382b0a67203dd7cbad4a779990568e12d1aa
7
+ data.tar.gz: c954614084116b80c01893be0d7c8fd03b5cd276e936ff87a2be7e0e933b811aa6d4fdb7d3db2a081f7709760bdbdb15a28abd40dbde4b3c485b5aaa24a2214f
data/CHANGELOG.md CHANGED
@@ -1,11 +1,22 @@
1
1
  # Change Log
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## [0.8.33] - 2022-09-xx
4
+ ## [0.8.34] - 2022-09-xx
5
5
 
6
6
  ### Added
7
+
8
+ ### Changed
9
+
10
+ ### Fixed
11
+
12
+
13
+ ## [0.8.33] - 2022-09-23
14
+
7
15
  ### Changed
16
+ - `Ecoportal::API::Common::Content::DoubleModel#embeds_many`: added new_class name collision prevention
17
+
8
18
  ### Fixed
19
+ - `Ecoportal::API::Common::ClassHelpers.new_class`: should accept `name` parameter to be a class itself
9
20
 
10
21
 
11
22
  ## [0.8.32] - 2022-09-19
@@ -72,7 +72,7 @@ module Ecoportal
72
72
  # @yieldparam child_class [Class] the new class
73
73
  # @return [Class] the new generated class
74
74
  def new_class(name = "Child#{uid}", inherits: self, namespace: inherits)
75
- name = name.to_sym.freeze
75
+ name = name.to_s.to_sym.freeze
76
76
  class_name = to_constant(name)
77
77
 
78
78
  unless target_class = resolve_class("#{namespace}::#{class_name}", exception: false)
@@ -198,7 +198,7 @@ module Ecoportal
198
198
  if enum_class
199
199
  eclass = enum_class
200
200
  elsif klass
201
- eclass = new_class(method, inherits: Common::Content::CollectionModel) do |dim_class|
201
+ eclass = new_class("#{method}::#{klass}", inherits: Common::Content::CollectionModel) do |dim_class|
202
202
  dim_class.klass = klass
203
203
  dim_class.order_matters = order_matters
204
204
  dim_class.order_key = order_key
@@ -1,5 +1,5 @@
1
1
  module Ecoportal
2
2
  module API
3
- GEM2_VERSION = "0.8.32"
3
+ GEM2_VERSION = "0.8.33"
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.32
4
+ version: 0.8.33
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-09-19 00:00:00.000000000 Z
11
+ date: 2022-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler