config 1.0.0.beta1 → 2.2.3
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 +5 -5
- data/CHANGELOG.md +201 -5
- data/CONTRIBUTING.md +32 -0
- data/LICENSE.md +1 -2
- data/README.md +308 -103
- data/config.gemspec +44 -36
- data/lib/config/compatibility.rb +3 -0
- data/lib/config/configuration.rb +36 -0
- data/lib/config/{tasks.rb → integrations/heroku.rb} +3 -3
- data/lib/config/integrations/rails/railtie.rb +38 -0
- data/lib/config/{integration → integrations}/sinatra.rb +2 -2
- data/lib/config/options.rb +99 -19
- data/lib/config/sources/hash_source.rb +16 -0
- data/lib/config/sources/yaml_source.rb +8 -8
- data/lib/config/tasks/heroku.rake +3 -4
- data/lib/config/validation/error.rb +13 -0
- data/lib/config/validation/schema.rb +20 -0
- data/lib/config/validation/validate.rb +25 -0
- data/lib/config/version.rb +1 -1
- data/lib/config.rb +45 -28
- data/lib/generators/config/templates/config.rb +55 -0
- metadata +94 -430
- data/.codeclimate.yml +0 -6
- data/.gitignore +0 -14
- data/.rspec +0 -2
- data/.ruby-gemset +0 -1
- data/.ruby-version +0 -1
- data/.travis.yml +0 -23
- data/Appraisals +0 -15
- data/Gemfile +0 -6
- data/Rakefile +0 -42
- data/gemfiles/rails_3.gemfile +0 -7
- data/gemfiles/rails_4.1.gemfile +0 -7
- data/gemfiles/rails_4.2.gemfile +0 -7
- data/gemfiles/rails_4.gemfile +0 -7
- data/lib/config/engine.rb +0 -5
- data/lib/config/integration/rails.rb +0 -36
- data/lib/config/railtie.rb +0 -9
- data/lib/generators/config/templates/rails_config.rb +0 -3
- data/spec/app/rails_3/Rakefile +0 -7
- data/spec/app/rails_3/app/assets/javascripts/application.js +0 -13
- data/spec/app/rails_3/app/assets/stylesheets/application.css +0 -13
- data/spec/app/rails_3/app/controllers/application_controller.rb +0 -3
- data/spec/app/rails_3/app/helpers/application_helper.rb +0 -2
- data/spec/app/rails_3/app/models/.gitkeep +0 -0
- data/spec/app/rails_3/app/views/layouts/application.html.erb +0 -14
- data/spec/app/rails_3/bin/bundle +0 -3
- data/spec/app/rails_3/bin/rails +0 -4
- data/spec/app/rails_3/bin/rake +0 -4
- data/spec/app/rails_3/config/application.rb +0 -29
- data/spec/app/rails_3/config/boot.rb +0 -5
- data/spec/app/rails_3/config/database.yml +0 -25
- data/spec/app/rails_3/config/environment.rb +0 -5
- data/spec/app/rails_3/config/environments/development.rb +0 -42
- data/spec/app/rails_3/config/environments/production.rb +0 -72
- data/spec/app/rails_3/config/environments/test.rb +0 -42
- data/spec/app/rails_3/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/app/rails_3/config/initializers/inflections.rb +0 -15
- data/spec/app/rails_3/config/initializers/mime_types.rb +0 -5
- data/spec/app/rails_3/config/initializers/secret_token.rb +0 -7
- data/spec/app/rails_3/config/initializers/session_store.rb +0 -8
- data/spec/app/rails_3/config/initializers/wrap_parameters.rb +0 -14
- data/spec/app/rails_3/config/locales/en.yml +0 -5
- data/spec/app/rails_3/config/routes.rb +0 -2
- data/spec/app/rails_3/config/settings.yml +0 -7
- data/spec/app/rails_3/config.ru +0 -4
- data/spec/app/rails_3/db/.gitkeep +0 -0
- data/spec/app/rails_3/public/404.html +0 -26
- data/spec/app/rails_3/public/422.html +0 -26
- data/spec/app/rails_3/public/500.html +0 -25
- data/spec/app/rails_3/script/rails +0 -6
- data/spec/app/rails_4/Rakefile +0 -6
- data/spec/app/rails_4/app/assets/javascripts/application.js +0 -13
- data/spec/app/rails_4/app/assets/stylesheets/application.css +0 -13
- data/spec/app/rails_4/app/controllers/application_controller.rb +0 -5
- data/spec/app/rails_4/app/helpers/application_helper.rb +0 -2
- data/spec/app/rails_4/app/models/.keep +0 -0
- data/spec/app/rails_4/app/views/layouts/application.html.erb +0 -14
- data/spec/app/rails_4/bin/bundle +0 -3
- data/spec/app/rails_4/bin/rails +0 -4
- data/spec/app/rails_4/bin/rake +0 -4
- data/spec/app/rails_4/config/application.rb +0 -27
- data/spec/app/rails_4/config/boot.rb +0 -5
- data/spec/app/rails_4/config/database.yml +0 -25
- data/spec/app/rails_4/config/environment.rb +0 -5
- data/spec/app/rails_4/config/environments/development.rb +0 -34
- data/spec/app/rails_4/config/environments/production.rb +0 -85
- data/spec/app/rails_4/config/environments/test.rb +0 -41
- data/spec/app/rails_4/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/app/rails_4/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/app/rails_4/config/initializers/inflections.rb +0 -16
- data/spec/app/rails_4/config/initializers/mime_types.rb +0 -5
- data/spec/app/rails_4/config/initializers/secret_token.rb +0 -12
- data/spec/app/rails_4/config/initializers/session_store.rb +0 -3
- data/spec/app/rails_4/config/initializers/wrap_parameters.rb +0 -14
- data/spec/app/rails_4/config/locales/en.yml +0 -23
- data/spec/app/rails_4/config/routes.rb +0 -2
- data/spec/app/rails_4/config/settings.yml +0 -7
- data/spec/app/rails_4/config.ru +0 -4
- data/spec/app/rails_4/db/.keep +0 -0
- data/spec/app/rails_4/public/404.html +0 -58
- data/spec/app/rails_4/public/422.html +0 -58
- data/spec/app/rails_4/public/500.html +0 -57
- data/spec/app/rails_4.1/Rakefile +0 -6
- data/spec/app/rails_4.1/app/assets/javascripts/application.js +0 -13
- data/spec/app/rails_4.1/app/assets/stylesheets/application.css +0 -15
- data/spec/app/rails_4.1/app/controllers/application_controller.rb +0 -5
- data/spec/app/rails_4.1/app/helpers/application_helper.rb +0 -2
- data/spec/app/rails_4.1/app/models/.keep +0 -0
- data/spec/app/rails_4.1/app/views/layouts/application.html.erb +0 -14
- data/spec/app/rails_4.1/bin/bundle +0 -3
- data/spec/app/rails_4.1/bin/rails +0 -4
- data/spec/app/rails_4.1/bin/rake +0 -4
- data/spec/app/rails_4.1/config/application.rb +0 -27
- data/spec/app/rails_4.1/config/boot.rb +0 -5
- data/spec/app/rails_4.1/config/database.yml +0 -25
- data/spec/app/rails_4.1/config/environment.rb +0 -5
- data/spec/app/rails_4.1/config/environments/development.rb +0 -42
- data/spec/app/rails_4.1/config/environments/production.rb +0 -88
- data/spec/app/rails_4.1/config/environments/test.rb +0 -44
- data/spec/app/rails_4.1/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/app/rails_4.1/config/initializers/cookies_serializer.rb +0 -3
- data/spec/app/rails_4.1/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/app/rails_4.1/config/initializers/inflections.rb +0 -16
- data/spec/app/rails_4.1/config/initializers/mime_types.rb +0 -4
- data/spec/app/rails_4.1/config/initializers/session_store.rb +0 -3
- data/spec/app/rails_4.1/config/initializers/wrap_parameters.rb +0 -14
- data/spec/app/rails_4.1/config/locales/en.yml +0 -23
- data/spec/app/rails_4.1/config/routes.rb +0 -2
- data/spec/app/rails_4.1/config/secrets.yml +0 -22
- data/spec/app/rails_4.1/config/settings.yml +0 -7
- data/spec/app/rails_4.1/config.ru +0 -4
- data/spec/app/rails_4.1/db/.keep +0 -0
- data/spec/app/rails_4.1/public/404.html +0 -67
- data/spec/app/rails_4.1/public/422.html +0 -67
- data/spec/app/rails_4.1/public/500.html +0 -66
- data/spec/app/rails_4.2/Rakefile +0 -6
- data/spec/app/rails_4.2/app/assets/images/.keep +0 -0
- data/spec/app/rails_4.2/app/assets/javascripts/application.js +0 -16
- data/spec/app/rails_4.2/app/assets/stylesheets/application.css +0 -15
- data/spec/app/rails_4.2/app/controllers/application_controller.rb +0 -5
- data/spec/app/rails_4.2/app/controllers/concerns/.keep +0 -0
- data/spec/app/rails_4.2/app/helpers/application_helper.rb +0 -2
- data/spec/app/rails_4.2/app/mailers/.keep +0 -0
- data/spec/app/rails_4.2/app/models/.keep +0 -0
- data/spec/app/rails_4.2/app/models/concerns/.keep +0 -0
- data/spec/app/rails_4.2/app/views/layouts/application.html.erb +0 -14
- data/spec/app/rails_4.2/bin/bundle +0 -3
- data/spec/app/rails_4.2/bin/rails +0 -8
- data/spec/app/rails_4.2/bin/rake +0 -8
- data/spec/app/rails_4.2/bin/setup +0 -29
- data/spec/app/rails_4.2/bin/spring +0 -15
- data/spec/app/rails_4.2/config/application.rb +0 -31
- data/spec/app/rails_4.2/config/boot.rb +0 -3
- data/spec/app/rails_4.2/config/database.yml +0 -25
- data/spec/app/rails_4.2/config/environment.rb +0 -5
- data/spec/app/rails_4.2/config/environments/development.rb +0 -41
- data/spec/app/rails_4.2/config/environments/production.rb +0 -79
- data/spec/app/rails_4.2/config/environments/test.rb +0 -42
- data/spec/app/rails_4.2/config/initializers/assets.rb +0 -11
- data/spec/app/rails_4.2/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/app/rails_4.2/config/initializers/cookies_serializer.rb +0 -3
- data/spec/app/rails_4.2/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/app/rails_4.2/config/initializers/inflections.rb +0 -16
- data/spec/app/rails_4.2/config/initializers/mime_types.rb +0 -4
- data/spec/app/rails_4.2/config/initializers/session_store.rb +0 -3
- data/spec/app/rails_4.2/config/initializers/wrap_parameters.rb +0 -14
- data/spec/app/rails_4.2/config/locales/en.yml +0 -23
- data/spec/app/rails_4.2/config/routes.rb +0 -56
- data/spec/app/rails_4.2/config/secrets.yml +0 -22
- data/spec/app/rails_4.2/config/settings.yml +0 -7
- data/spec/app/rails_4.2/config.ru +0 -4
- data/spec/app/rails_4.2/db/seeds.rb +0 -7
- data/spec/app/rails_4.2/public/404.html +0 -67
- data/spec/app/rails_4.2/public/422.html +0 -67
- data/spec/app/rails_4.2/public/500.html +0 -66
- data/spec/app/rails_4.2/public/favicon.ico +0 -0
- data/spec/app/rails_4.2/public/robots.txt +0 -5
- data/spec/config_spec.rb +0 -317
- data/spec/fixtures/bool_override/config1.yml +0 -2
- data/spec/fixtures/bool_override/config2.yml +0 -2
- data/spec/fixtures/custom_types/hash.yml +0 -7
- data/spec/fixtures/deep_merge/config1.yml +0 -28
- data/spec/fixtures/deep_merge/config2.yml +0 -28
- data/spec/fixtures/deep_merge2/config1.yml +0 -3
- data/spec/fixtures/deep_merge2/config2.yml +0 -2
- data/spec/fixtures/development.yml +0 -4
- data/spec/fixtures/empty1.yml +0 -0
- data/spec/fixtures/empty2.yml +0 -0
- data/spec/fixtures/env/settings.yml +0 -4
- data/spec/fixtures/malformed.yml +0 -6
- data/spec/fixtures/reserved_keywords.yml +0 -2
- data/spec/fixtures/settings.yml +0 -21
- data/spec/fixtures/settings2.yml +0 -1
- data/spec/fixtures/with_erb.yml +0 -4
- data/spec/options_spec.rb +0 -84
- data/spec/sources/yaml_source_spec.rb +0 -77
- data/spec/spec_helper.rb +0 -54
- data/spec/support/rails_config_helper.rb +0 -22
- data/spec/support/shared_contexts/rake.rb +0 -8
- data/spec/tasks/db_spec.rb +0 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 2212e68e8bb8e15f821b9420db10ec3111edcaa43bffe5450ae850d5228b3107
|
|
4
|
+
data.tar.gz: de9c513f5a6450a95e113071adf79c3d3b3e2f3485a018e14ab72241a2f419e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ae72b6c10869bbca57d7c476e5ba7b48637b6c94c083176b2c7321710bd4daebe5f41c03d3daf69157dd3f599f63f11d74e19141e98716ae3ef20c8c33469ba3
|
|
7
|
+
data.tar.gz: 07e79c9a667587218a3370c03e912c113795fa00a9f50350065834c91b9d858e03ee1447da078e6ec5af19c32faa5317f3a94b071478d4b96397317504891ac7
|
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,199 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
...
|
|
6
|
+
|
|
7
|
+
## 2.2.3
|
|
8
|
+
|
|
9
|
+
### Bug fixes
|
|
10
|
+
|
|
11
|
+
* Revert added alias to_h for to_hash ([#277](https://github.com/railsconfig/config/issues/277))
|
|
12
|
+
|
|
13
|
+
### Changes
|
|
14
|
+
|
|
15
|
+
* Raise explicit error on environment variable conflicts ([#293](https://github.com/railsconfig/config/issues/293))
|
|
16
|
+
|
|
17
|
+
## 2.2.2
|
|
18
|
+
|
|
19
|
+
### Bug fixes
|
|
20
|
+
|
|
21
|
+
* Added alias to_h for to_hash ([#277](https://github.com/railsconfig/config/issues/277))
|
|
22
|
+
* Prevent unnecessary doubled loading of environment variables ([#291](https://github.com/rubyconfig/config/pull/291))
|
|
23
|
+
* Return `Hash` from `Config::Options#as_json` instead of `Array` of pairs when using ActiveSupport Core Extensions ([#292](https://github.com/rubyconfig/config/pull/292))
|
|
24
|
+
|
|
25
|
+
### Changes
|
|
26
|
+
|
|
27
|
+
* Add JRuby 9.2 to the test matrix ([#228](https://github.com/railsconfig/config/issues/228))
|
|
28
|
+
* Add exit! to reserved keywords ([#289](https://github.com/railsconfig/config/issues/289))
|
|
29
|
+
|
|
30
|
+
## 2.2.1
|
|
31
|
+
|
|
32
|
+
### Performance improvements
|
|
33
|
+
|
|
34
|
+
* Get rid of unused Rails Engine class definition ([#247](https://github.com/rubyconfig/config/pull/247))
|
|
35
|
+
* Require dry-validation only when schema is specified ([#253](https://github.com/rubyconfig/config/pull/253))
|
|
36
|
+
* Defer modification of `ActionController::Base` to when it is loaded in Rails integration ([#250](https://github.com/rubyconfig/config/pull/250))
|
|
37
|
+
|
|
38
|
+
### Bug fixes
|
|
39
|
+
|
|
40
|
+
* Fix missing new_ostruct_member in Ruby 2.7 ([#255](https://github.com/rubyconfig/config/pull/255))
|
|
41
|
+
* Fix validation contract documentation ([#260](https://github.com/rubyconfig/config/pull/260))
|
|
42
|
+
* Excluded test application's *.md files from the gem build ([#267](https://github.com/rubyconfig/config/pull/267))
|
|
43
|
+
|
|
44
|
+
### Changes
|
|
45
|
+
|
|
46
|
+
* Use sprockets 3.x when running unit tests for Rails 4.2 ([#256](https://github.com/rubyconfig/config/pull/256))
|
|
47
|
+
* Cleanup example Rails application used for testing ([#263](https://github.com/rubyconfig/config/pull/263))
|
|
48
|
+
* Upgrade markdown linter and fix errors ([#265](https://github.com/rubyconfig/config/pull/265))
|
|
49
|
+
* Upgrade development dependencies and test matrix with latest Ruby and Rails versions ([#264](https://github.com/rubyconfig/config/pull/264))
|
|
50
|
+
* Replace Travis CI with GitHub Actions ([#266](https://github.com/rubyconfig/config/pull/266))
|
|
51
|
+
* Add Rails 6.0 to the test matrix ([#258](https://github.com/rubyconfig/config/pull/258))
|
|
52
|
+
* Rename GitHub organization name from `railsconfig` to `rubyconfig` ([#268](https://github.com/rubyconfig/config/pull/268))
|
|
53
|
+
|
|
54
|
+
## 2.1.0
|
|
55
|
+
|
|
56
|
+
### New features
|
|
57
|
+
|
|
58
|
+
* Add dry-validation contract support ([#238](https://github.com/rubyconfig/config/pull/238))
|
|
59
|
+
|
|
60
|
+
### Changes
|
|
61
|
+
|
|
62
|
+
* Get rid of activesupport dependency ([#230](https://github.com/rubyconfig/config/pull/230))
|
|
63
|
+
* Ignore .local files in test environment ([#135](https://github.com/rubyconfig/config/issues/135), [#233](https://github.com/rubyconfig/config/pull/233))
|
|
64
|
+
* Execute default rspec against latest Rails app and load appropriate development dependencies dynamically ([#241](https://github.com/rubyconfig/config/pull/241))
|
|
65
|
+
* Fix inconsistent documentation for ENV prefix and default value in generator ([#246](https://github.com/rubyconfig/config/pull/246))
|
|
66
|
+
|
|
67
|
+
### Bug fixes
|
|
68
|
+
|
|
69
|
+
* Fix warnings when running tests in Rails 5 scope ([#240](https://github.com/rubyconfig/config/issues/240)
|
|
70
|
+
* Do not run incompatible code coverage on truffleruby ([#242](https://github.com/rubyconfig/config/issues/242)
|
|
71
|
+
|
|
72
|
+
## 2.0.0
|
|
73
|
+
|
|
74
|
+
### BREAKING CHANGES
|
|
75
|
+
|
|
76
|
+
After upgrade to dry-schema 1.0 we had to drop support for Rails `< 4.2` and Ruby `< 2.4`.
|
|
77
|
+
If you need older version of Ruby or Rails, please stick to 1.x version of this gem.
|
|
78
|
+
|
|
79
|
+
### New features
|
|
80
|
+
|
|
81
|
+
* Add `merge_hash_arrays` as a configuration option ([#214](https://github.com/rubyconfig/config/pull/214))
|
|
82
|
+
|
|
83
|
+
### Changes
|
|
84
|
+
|
|
85
|
+
* Upgraded dry-validation dependency to dry-schema 1.0 ([#224](https://github.com/rubyconfig/config/pull/224))
|
|
86
|
+
* Moved constant to be defined on `Object` instead of `Kernel` ([#227](https://github.com/rubyconfig/config/issues/227))
|
|
87
|
+
* Add TruffleRuby to the test matrix ([#229](https://github.com/rubyconfig/config/issues/229))
|
|
88
|
+
|
|
89
|
+
## 1.7.2
|
|
90
|
+
|
|
91
|
+
### Bug fixes
|
|
92
|
+
|
|
93
|
+
* Lock max version of dry-validation depending on the ruby version ([#223](https://github.com/rubyconfig/config/pull/223))
|
|
94
|
+
|
|
95
|
+
## 1.7.1
|
|
96
|
+
|
|
97
|
+
### New features
|
|
98
|
+
|
|
99
|
+
* Upgrade dependencies ([#211](https://github.com/rubyconfig/config/pull/211))
|
|
100
|
+
|
|
101
|
+
### Changes
|
|
102
|
+
|
|
103
|
+
* Add Ruby 2.5 and Rails 5.1 to the testing matrix on Travis ([#201](https://github.com/rubyconfig/config/pull/201))
|
|
104
|
+
* Add Ruby 2.6 to the test matrix ([#210](https://github.com/rubyconfig/config/pull/210))
|
|
105
|
+
* Add Rails 5.2 to the test matrix ([#212](https://github.com/rubyconfig/config/pull/212))
|
|
106
|
+
|
|
107
|
+
## 1.7.0
|
|
108
|
+
|
|
109
|
+
### New features
|
|
110
|
+
|
|
111
|
+
* **WARNING:** `nil` values will from now on overwrite an existing value when merging configs! This change of behavior can be reverted via `config.merge_nil_values = false` in your Config initializer ([#196](https://github.com/rubyconfig/config/pull/196))
|
|
112
|
+
|
|
113
|
+
## 1.6.1
|
|
114
|
+
|
|
115
|
+
### Bug fixes
|
|
116
|
+
|
|
117
|
+
* Make dry-validation dependency less strict allowing to use newer versions ([#183](https://github.com/rubyconfig/config/pull/183))
|
|
118
|
+
* Fix `key?` and `has_key?`, which raise NoMethodError in non Rails environment, by using ActiveSupport `#delegate` implicitly ([#185](https://github.com/rubyconfig/config/pull/185))
|
|
119
|
+
* Update `deep_merge` dependency to latest version (v1.2.1) ([#191](https://github.com/rubyconfig/config/pull/191))
|
|
120
|
+
* Upgrade `rubocop` to version 0.52.1 ([#193](https://github.com/rubyconfig/config/pull/193))
|
|
121
|
+
* Add `zip` to the list of reserved keywords ([#197](https://github.com/rubyconfig/config/pull/197))
|
|
122
|
+
|
|
123
|
+
## 1.6.0
|
|
124
|
+
|
|
125
|
+
### New features
|
|
126
|
+
|
|
127
|
+
* `Config#fail_on_missing` option (default `false`) to raise a `KeyError` exception when accessing a non-existing key
|
|
128
|
+
* Add ability to test if a value was set for a given key with `key?` and `has_key?` ([#182](https://github.com/rubyconfig/config/pull/182))
|
|
129
|
+
|
|
130
|
+
## 1.5.1
|
|
131
|
+
|
|
132
|
+
### New features
|
|
133
|
+
|
|
134
|
+
* Add parsing of ENV variable values to Boolean type ([#180](https://github.com/rubyconfig/config/pull/180))
|
|
135
|
+
|
|
136
|
+
## 1.5.0
|
|
137
|
+
|
|
138
|
+
### New features
|
|
139
|
+
|
|
140
|
+
* Add ability to validate config schema ([#155](https://github.com/rubyconfig/config/pull/155) thanks to [@ok32](https://github.com/ok32))
|
|
141
|
+
* Add count to the reserved names list ([#167](https://github.com/rubyconfig/config/pull/167) thanks to [@carbonin](https://github.com/carbonin))
|
|
142
|
+
|
|
143
|
+
### Bug fixes
|
|
144
|
+
|
|
145
|
+
* Correctly parse `env_prefix`, which contains `env_separator` ([#177](https://github.com/rubyconfig/config/pull/177) thanks to [@rdodson41](https://github.com/rdodson41))
|
|
146
|
+
|
|
147
|
+
## 1.4.0
|
|
148
|
+
|
|
149
|
+
### New features
|
|
150
|
+
|
|
151
|
+
* Added support for passing a raw ruby hash into to both `Settings.add_source!` and `Settings.prepend_source!` ([#108](https://github.com/rubyconfig/config/pull/159) thanks to [@halloffame](https://github.com/halloffame))
|
|
152
|
+
|
|
153
|
+
### Bug fixes
|
|
154
|
+
|
|
155
|
+
* Added new reserved name `test` ([#158](https://github.com/rubyconfig/config/pull/158) thanks to [@milushov](https://github.com/milushov))
|
|
156
|
+
* `to_hash` should not replace nested config objects with Hash ([#160](https://github.com/rubyconfig/config/issues/160) thanks to [@seikichi](https://github.com/seikichi))
|
|
157
|
+
|
|
158
|
+
## 1.3.0
|
|
159
|
+
|
|
160
|
+
* **WARNING:** Overwrite arrays found in previously loaded settings file ([#137](https://github.com/rubyconfig/config/pull/137) thanks to [@Fryguy](https://github.com/Fryguy) and [@dtaniwaki](https://github.com/dtaniwaki)) - this is a change breaking previous behaviour. If you want to keep Config to work as before, which is merging arrays found in following loaded settings file, please add `config.overwrite_arrays = false` to your Config initializer
|
|
161
|
+
* Changed default ENV variables loading settings to downcase variable names and parse values
|
|
162
|
+
* Added parsing ENV variables values to Float type
|
|
163
|
+
* Change method definition order in Rails integration module to prevent undefined method `preload` error (based on [@YaroSpace](https://github.com/YaroSpace) suggestion in [#111](https://github.com/rubyconfig/config/issues/111)
|
|
164
|
+
|
|
165
|
+
## 1.2.1
|
|
166
|
+
|
|
167
|
+
* Fixed support for multilevel settings loaded from ENV variables (inspired by [@cbeer](https://github.com/cbeer) in [#144](https://github.com/rubyconfig/config/pull/144))
|
|
168
|
+
|
|
169
|
+
## 1.2.0
|
|
170
|
+
|
|
171
|
+
* Add ability to load settings from ENV variables ([#108](https://github.com/rubyconfig/config/issues/108) thanks to [@vinceve](https://github.com/vinceve) and [@spalladino](https://github.com/spalladino))
|
|
172
|
+
* Removed Rails 5 deprecation warnings for prepend_before_filter ([#141](https://github.com/rubyconfig/config/pull/141))
|
|
173
|
+
|
|
174
|
+
## 1.1.1
|
|
175
|
+
|
|
176
|
+
* Downgrade minimum ruby version to 2.0.0 ([#136](https://github.com/rubyconfig/config/issues/136))
|
|
177
|
+
|
|
178
|
+
## 1.1.0
|
|
179
|
+
|
|
180
|
+
* Add ability to specify knockout_prefix option for deep_merge
|
|
181
|
+
* Minor code and documentation refactoring and cleanup
|
|
182
|
+
|
|
183
|
+
## 1.0.0
|
|
184
|
+
|
|
185
|
+
* `rubyconfig` is now officially renamed to `Config`
|
|
186
|
+
* Fixed array descent when converting to hash ([#89](https://github.com/rubyconfig/config/pull/89))
|
|
187
|
+
* Catch OpenStruct reserved keywords ([#95](https://github.com/rubyconfig/config/pull/95) by [@dudo](https://github.com/dudo))
|
|
188
|
+
* Allows loading before app configuration process ([#107](https://github.com/rubyconfig/config/pull/107) by [@Antiarchitect](https://github.com/Antiarchitect))
|
|
189
|
+
* `deep_merge` is now properly managed via gemspec ([#110](https://github.com/rubyconfig/config/pull/110))
|
|
190
|
+
* Added `prepend_source!` ([#102](https://github.com/rubyconfig/config/pull/102))
|
|
191
|
+
|
|
192
|
+
## 0.99
|
|
193
|
+
|
|
194
|
+
* Released deprecated gem migrating to the new name
|
|
195
|
+
|
|
196
|
+
## 0.5.0.beta1
|
|
2
197
|
|
|
3
198
|
* Ability to use in Settings file keywords reserved for OpenStruct: select, collect ([#95](https://github.com/railsjedi/config/issues/95))
|
|
4
199
|
* Made config work without Rails as a hard dependency ([#86](https://github.com/railsjedi/config/issues/86), [#88](https://github.com/railsjedi/config/issues/88))
|
|
@@ -7,19 +202,20 @@
|
|
|
7
202
|
* Add a shortcut method for setting files ([#67](https://github.com/railsjedi/config/issues/67))
|
|
8
203
|
* Improve YAMLSource load error message by outputting offending file path ([#88](https://github.com/railsjedi/config/issues/88))
|
|
9
204
|
|
|
10
|
-
|
|
205
|
+
## 0.4.2
|
|
206
|
+
|
|
11
207
|
* Ability to specify the app name when calling the Heroku rake task ([#75](https://github.com/railsjedi/config/issues/75))
|
|
12
208
|
|
|
13
|
-
|
|
209
|
+
## 0.4.1
|
|
14
210
|
|
|
15
211
|
* Fixed compatibility with Rails 4.1 ([#72](https://github.com/railsjedi/config/issues/72))
|
|
16
212
|
* Testing suite verifies compatibility with Rails 3.2, 4.0 and 4.1
|
|
17
213
|
|
|
18
|
-
|
|
214
|
+
## 0.4.0
|
|
19
215
|
|
|
20
216
|
* Compatibility with Heroku ([#64](https://github.com/railsjedi/config/issues/64))
|
|
21
217
|
|
|
22
|
-
|
|
218
|
+
## 0.3.4
|
|
23
219
|
|
|
24
220
|
* Expose Settings in application.rb, so you don't have to duplicate configuration for each environment file ([#59](https://github.com/railsjedi/config/issues/59))
|
|
25
221
|
* Adding support for Rails 4.1.0.rc ([#70](https://github.com/railsjedi/config/issues/70))
|
data/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Install appraisal
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
gem install bundler -v 1.17.3
|
|
7
|
+
gem install appraisal
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Bundle
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
bundle install
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Bootstrap
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
appraisal install
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Run the test suite:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
appraisal rspec
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
If you modified any of the documentation files verify their format:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
mdl *.md
|
|
32
|
+
```
|
data/LICENSE.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
1
|
+
# The MIT License (MIT)
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2010-2014 Jacques Crocker, Fred Wu, Piotr Kuczynski
|
|
4
4
|
|
|
@@ -20,7 +20,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
21
|
THE SOFTWARE.
|
|
22
22
|
|
|
23
|
-
|
|
24
23
|
Third-party materials and licenses:
|
|
25
24
|
|
|
26
25
|
* Config contains Deep Merge (deep_merge.rb) which is governed by the MIT license
|