dry-configurable 0.1.6 → 0.1.7
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/.codeclimate.yml +23 -0
- data/.ruby-version +1 -0
- data/.travis.yml +1 -2
- data/Gemfile +4 -0
- data/README.md +13 -8
- data/lib/dry/configurable.rb +2 -2
- data/lib/dry/configurable/config.rb +1 -1
- data/lib/dry/configurable/version.rb +1 -1
- data/spec/spec_helper.rb +5 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 58a630055aefd53b2ec5d0261f353e9779dcab8f
|
|
4
|
+
data.tar.gz: 42b5d3dddc4d819a6e80adcd3d9b341fed1cbea0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d13cd68936ab7a5f96ed705011b1bd5cfb8112091a825fa2fb38e3afe4fdfd72be2f2646504dd00c543bc95ef310e1bb67b1a3d129c683a0d73b63ab3d31a0f0
|
|
7
|
+
data.tar.gz: 5ac518f3fc7f260431a9b5122045c6a53b32929529c2384618ef870fc2da399e9ffa4cc66d20239258a7422c14501b16431fcbe0aac26e9bba940bd0bf63d77f
|
data/.codeclimate.yml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
engines:
|
|
2
|
+
rubocop:
|
|
3
|
+
enabled: true
|
|
4
|
+
checks:
|
|
5
|
+
Rubocop/Metrics/LineLength:
|
|
6
|
+
enabled: true
|
|
7
|
+
max: 120
|
|
8
|
+
Rubocop/Style/Documentation:
|
|
9
|
+
enabled: false
|
|
10
|
+
Rubocop/Lint/HandleExceptions:
|
|
11
|
+
enabled: true
|
|
12
|
+
exclude:
|
|
13
|
+
- rakelib/*.rake
|
|
14
|
+
Rubocop/Style/FileName:
|
|
15
|
+
enabled: true
|
|
16
|
+
exclude:
|
|
17
|
+
- lib/dry-configurable.rb
|
|
18
|
+
ratings:
|
|
19
|
+
paths:
|
|
20
|
+
- lib/**/*.rb
|
|
21
|
+
exclude_paths:
|
|
22
|
+
- spec/**/*
|
|
23
|
+
- examples/**/*
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.0.0-p247
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
[gitter]: https://gitter.im/dry-rb/chat
|
|
2
|
+
[gem]: https://rubygems.org/gems/dry-configurable
|
|
3
|
+
[travis]: https://travis-ci.org/dry-rb/dry-configurable
|
|
4
|
+
[code_climate]: https://codeclimate.com/github/dry-rb/dry-configurable
|
|
5
|
+
[inch]: http://inch-ci.org/github/dry-rb/dry-configurable
|
|
6
|
+
|
|
7
|
+
# dry-configurable [][gitter]
|
|
8
|
+
|
|
9
|
+
[][gem]
|
|
10
|
+
[][travis]
|
|
11
|
+
[][code_climate]
|
|
12
|
+
[][code_climate]
|
|
13
|
+
[][inch]
|
|
9
14
|
|
|
10
15
|
## Synopsis
|
|
11
16
|
|
data/lib/dry/configurable.rb
CHANGED
|
@@ -48,9 +48,9 @@ module Dry
|
|
|
48
48
|
#
|
|
49
49
|
# @api public
|
|
50
50
|
def config
|
|
51
|
+
return @_config if defined?(@_config)
|
|
51
52
|
@_config_mutex.synchronize do
|
|
52
|
-
|
|
53
|
-
@_config = Config.new(*_settings.keys).new(*_settings.values) unless _settings.empty?
|
|
53
|
+
@_config ||= Config.new(*_settings.keys).new(*_settings.values) unless _settings.empty?
|
|
54
54
|
end
|
|
55
55
|
end
|
|
56
56
|
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dry-configurable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andy Holland
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-07-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: concurrent-ruby
|
|
@@ -73,10 +73,12 @@ executables: []
|
|
|
73
73
|
extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
|
75
75
|
files:
|
|
76
|
+
- .codeclimate.yml
|
|
76
77
|
- .gitignore
|
|
77
78
|
- .rspec
|
|
78
79
|
- .rubocop.yml
|
|
79
80
|
- .rubocop_todo.yml
|
|
81
|
+
- .ruby-version
|
|
80
82
|
- .travis.yml
|
|
81
83
|
- Gemfile
|
|
82
84
|
- LICENSE
|