template_class 1.2.1 → 1.2.2
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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/template_class/bulk_instantiable.rb +9 -2
- data/lib/template_class/template.rb +0 -4
- data/lib/template_class/version.rb +1 -1
- data/lib/template_class.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 735dddf04d44a0c4c68d440b9bd03cce3492a2fc1cd9a3ebad7c5c45693ab105
|
4
|
+
data.tar.gz: 769971cbd1122fbc11ac80e587bef01d76fc1a4c24708747d9978f5956fc609a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b317516970986d38dc1e8f637ea481c861a6e9d54f0de880fddcac129a74b857431177dcbdd7df10ec52861e13e9450e911bfde2ab06a58fe55063b79d898451
|
7
|
+
data.tar.gz: 4f387baf8ab79ff206af4222df6cdb481af980a1283e6cc76343bb35fd5cc65f2a47a37786ae3a144acd609fc219de95ace09d29b4dd2e8415b17d4581309861
|
data/CHANGELOG.md
CHANGED
@@ -10,8 +10,15 @@ module TemplateClass
|
|
10
10
|
into.const_set constant.name.demodulize.to_sym, constant[*args]
|
11
11
|
end
|
12
12
|
.tap { return unless with_overrides } # rubocop:disable Lint/NonLocalExitFromIterator
|
13
|
-
.
|
14
|
-
|
13
|
+
.map do |instance|
|
14
|
+
Object
|
15
|
+
.const_source_location(instance.module_parent_name)
|
16
|
+
.first
|
17
|
+
.delete_suffix('.rb')
|
18
|
+
.then { "#{_1}/#{instance.name.demodulize.underscore}" }
|
19
|
+
end
|
20
|
+
.each do |path|
|
21
|
+
require path
|
15
22
|
rescue LoadError
|
16
23
|
nil
|
17
24
|
end
|
data/lib/template_class.rb
CHANGED
@@ -1,3 +1,10 @@
|
|
1
1
|
require_relative 'template_class/version'
|
2
|
+
|
3
|
+
require 'active_support/concern'
|
4
|
+
require 'active_support/core_ext/string/inflections'
|
5
|
+
require 'active_support/core_ext/module/delegation'
|
6
|
+
require 'active_support/core_ext/module/attribute_accessors'
|
7
|
+
require 'active_support/core_ext/module/introspection'
|
8
|
+
|
2
9
|
require_relative 'template_class/template'
|
3
10
|
require_relative 'template_class/bulk_instantiable'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: template_class
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Moku S.r.l.
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-01-
|
12
|
+
date: 2025-01-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|