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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fabf2bda9e67e4cb622c1f248b736cc8fb18f50e6ca4faed446e8d653921864
|
4
|
+
data.tar.gz: eae102b95a361093fc72a39f59de097cebc99617a9b9787c6c132490887329a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
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.
|
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-
|
11
|
+
date: 2022-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|