config 1.6.0 → 1.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 208da22ed967b6e2d8122a591eb0b34cb0d7e574
4
- data.tar.gz: 155481bf4b306be34a9e36641d73f3a3464af0b1
3
+ metadata.gz: 902f4b4b5e42d70c5b1a75092e3b1150c6c22f69
4
+ data.tar.gz: 319118c629c0ee4f31e7f95a61fca6cc8a36b7c0
5
5
  SHA512:
6
- metadata.gz: 89c487205d5b8ed2f29902aad3e0b1f57ffe9503328231d89fe5f8b3487aee97199fdb8b3eb5d00ad118025e3e33201cf5dc264344f8d249afe979a3b1eab272
7
- data.tar.gz: a0a7faace3de2e72c84e51f940aebfa6a22fadaa7d257c081f5097993bcf98e2e6ccbaa6c049aee495b82579887b1775ae9658daf2215286f5357d7cd0eb3966
6
+ metadata.gz: 8a63c569455ad70bc8b7b3562b11166306c79dbb88655b15a6f215c2909bd3ca0d97b25e8e82cdd10b5b07814fccd2027fc4f48388b776ee521a1554c85814da
7
+ data.tar.gz: 8e08429aaa4c9369627a7f13fb66820ebde7ca0c4d95354aa81cb0a695000501025f8afe11021954a2bebc4cb68f7f29b424cd482ed8af2e7463f111ad1f0d7b
@@ -4,33 +4,44 @@
4
4
 
5
5
  ...
6
6
 
7
+ ## 1.6.1
8
+
9
+ **Bug fixes:**
10
+ * Make dry-validation dependency less strict allowing to use newer versions ([#183](https://github.com/railsconfig/config/pull/183))
11
+ * Fix `key?` and `has_key?`, which raise NoMethodError in non Rails environment, by using ActiveSupport `#delegate` implicitly ([#185](https://github.com/railsconfig/config/pull/185))
12
+
7
13
  ## 1.6.0
8
14
 
9
- ### New features
15
+ **New features:**
10
16
 
11
17
  * `Config#fail_on_missing` option (default `false`) to raise a `KeyError` exception when accessing a non-existing key
12
- * Add ability to test if a value was set for a given key with `key?` and `has_key?`
18
+ * Add ability to test if a value was set for a given key with `key?` and `has_key?` ([#182](https://github.com/railsconfig/config/pull/182))
13
19
 
14
20
  ## 1.5.1
15
21
 
16
- ### New features
17
- * Add parsing of ENV variable values to Boolean type
22
+ **New features:**
23
+
24
+ * Add parsing of ENV variable values to Boolean type ([#180](https://github.com/railsconfig/config/pull/180))
18
25
 
19
26
  ## 1.5.0
20
27
 
21
- ### New features
28
+ **New features:**
29
+
22
30
  * Add ability to validate config schema ([#155](https://github.com/railsconfig/config/pull/155) thanks to [@ok32](https://github.com/ok32))
23
31
  * Add count to the reserved names list ([#167](https://github.com/railsconfig/config/pull/167) thanks to [@carbonin](https://github.com/carbonin))
24
32
 
25
- ### Bug fixes
33
+ **Bug fixes:**
34
+
26
35
  * Correctly parse `env_prefix`, which contains `env_separator` ([#177](https://github.com/railsconfig/config/pull/177) thanks to [@rdodson41](https://github.com/rdodson41))
27
36
 
28
37
  ## 1.4.0
29
38
 
30
- ### New features
39
+ **New features:**
40
+
31
41
  * Added support for passing a raw ruby hash into to both `Settings.add_source!` and `Settings.prepend_source!` ([#108](https://github.com/railsconfig/config/pull/159) thanks to [@halloffame](https://github.com/halloffame))
32
42
 
33
- ### Bug fixes
43
+ **Bug fixes:**
44
+
34
45
  * Added new reserved name `test` ([#158](https://github.com/railsconfig/config/pull/158) thanks to [@milushov](https://github.com/milushov))
35
46
  * `to_hash` should not replace nested config objects with Hash ([#160](https://github.com/railsconfig/config/issues/160) thanks to [@seikichi](https://github.com/seikichi))
36
47
 
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
26
26
 
27
27
  s.add_dependency 'activesupport', '>= 3.0'
28
28
  s.add_dependency 'deep_merge', '~> 1.1.1'
29
- s.add_dependency 'dry-validation', '~> 0.10.4' if RUBY_VERSION >= '2.1'
29
+ s.add_dependency 'dry-validation', '>= 0.10.4' if RUBY_VERSION >= '2.1'
30
30
 
31
31
  s.add_development_dependency 'bundler', '~> 1.13', '>= 1.13.6'
32
32
  s.add_development_dependency 'rake', '~> 12.0', '>= 12.0.0'
@@ -153,7 +153,13 @@ module Config
153
153
  end
154
154
  end
155
155
 
156
- delegate :key?, :has_key?, to: :table
156
+ def key?(key)
157
+ table.key?(key)
158
+ end
159
+
160
+ def has_key?(key)
161
+ table.has_key?(key)
162
+ end
157
163
 
158
164
  def method_missing(method_name, *args)
159
165
  if Config.fail_on_missing && method_name !~ /.*(?==\z)/m
@@ -1,3 +1,3 @@
1
1
  module Config
2
- VERSION = '1.6.0'
2
+ VERSION = '1.6.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Kuczynski
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-11-03 00:00:00.000000000 Z
13
+ date: 2017-11-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -44,14 +44,14 @@ dependencies:
44
44
  name: dry-validation
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - "~>"
47
+ - - ">="
48
48
  - !ruby/object:Gem::Version
49
49
  version: 0.10.4
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - "~>"
54
+ - - ">="
55
55
  - !ruby/object:Gem::Version
56
56
  version: 0.10.4
57
57
  - !ruby/object:Gem::Dependency