glue_gun_dsl 0.1.19 → 0.1.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/glue_gun/dsl.rb +5 -1
- data/lib/glue_gun/version.rb +1 -1
- 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: d372ee94e1c1e2eea155447eb1cdb85a2e0b064e2645528dc8c624cc48a10825
|
4
|
+
data.tar.gz: 766a7cdad82a723ad9e0dd38bc151be81782ef6f3420473c5a912319fe648691
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8776e38f53fa08187a26349fced6d516b57afb72469dca06421d583aa9c50b0d53cef3be513bb9bdb131c7b69e44ba4637afc0ec66634aa06f3527f3808ad8ac
|
7
|
+
data.tar.gz: 15faafc27a3812f4ec9ddb9b76d56c79512737e2960b8f746e680bd88954484b1274ef79f735b45fa116edd831a18ea564962e489cdba2983b2923a421d81737
|
data/lib/glue_gun/dsl.rb
CHANGED
@@ -272,6 +272,10 @@ module GlueGun
|
|
272
272
|
@dependencies ||= {}
|
273
273
|
end
|
274
274
|
|
275
|
+
def inspect
|
276
|
+
"#<#{self.class} #{attributes.map { |k, v| "#{k}: #{v.inspect}" }.join(", ")}>"
|
277
|
+
end
|
278
|
+
|
275
279
|
def validate_dependencies
|
276
280
|
errors.clear
|
277
281
|
self.class.dependency_definitions.keys.each do |component_type|
|
@@ -414,7 +418,7 @@ module GlueGun
|
|
414
418
|
def build_dependency_attributes(option_config, dep_attributes, parent)
|
415
419
|
option_config.attributes.each do |attr_name, attr_config|
|
416
420
|
if dep_attributes.key?(attr_name)
|
417
|
-
|
421
|
+
dep_attributes[attr_name]
|
418
422
|
else
|
419
423
|
value = if attr_config.source && parent.respond_to?(attr_config.source)
|
420
424
|
parent.send(attr_config.source)
|
data/lib/glue_gun/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glue_gun_dsl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brett Shollenberger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|