config_x 0.1.0 → 0.1.1
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/README.md +2 -1
- data/lib/config_x/interface/builder.rb +1 -0
- data/lib/config_x/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 505826df32360bdea04b7ac2cbebfb3a06636849
|
|
4
|
+
data.tar.gz: 17628a43959a95d92c19aa3f5dd86265568c2170
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: abaa4e3c1ef7e3537e937c98fec6f2af53056c5f8c7e03ae236d786dc6ba78529919edf766cfb283747f734f9737cfc5fea5682828b07b03a5bff30c3a5cb408
|
|
7
|
+
data.tar.gz: e2134aaf2088c2dc377f29bb18162ce85ec8dd8b1035d092ef6ee49fad2b3d126ed3fc43c49780ced8e15567662b8cf7df9ac64562ab4cbb0dd9b73691bff07e
|
data/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# ConfigX
|
|
2
2
|
|
|
3
|
-
ConfigX provides you with a simple DSL to configure classes, modules and objects.
|
|
3
|
+
ConfigX provides you with a simple DSL to configure classes, modules and objects. The interface is kind of like
|
|
4
|
+
attr accessors and class attr accessors on steroids. It comes with a few useful features.
|
|
4
5
|
|
|
5
6
|
1. Default values
|
|
6
7
|
2. Attr accessors
|
|
@@ -110,6 +110,7 @@ module ConfigX
|
|
|
110
110
|
elsif namespaced_config[variable_name]
|
|
111
111
|
namespaced_config[variable_name]
|
|
112
112
|
elsif value = namespaced_config[proc_name] || opts[:default]
|
|
113
|
+
return value if opts[:eval] == false
|
|
113
114
|
value = evaluate_config_proc_or_value(value, instance_exec: opts[:instance_exec])
|
|
114
115
|
namespaced_config[variable_name] = value if opts[:memoize]
|
|
115
116
|
value
|
data/lib/config_x/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: config_x
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andreas Robecke
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-05-
|
|
11
|
+
date: 2017-05-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|