Skip to content

Releases: rubyconfig/config

3.1.0

12 May 21:51
Compare
Choose a tag to compare

New features

  • Evaluating ERB in YAML files can now be disabled with Config.evaluate_erb_in_yaml = false. The default value for this option is true for backwards-compatibility. (#303)

3.0.0

16 Mar 05:42
Compare
Choose a tag to compare

BREAKING CHANGES

  • After upgrade behaviour of to_h would change and match behaviour of to_hash. Check #217 for more details.
  • Config::Options#load_env! and Config::Options#reload_env! have been removed. If you need to reload settings after modifying the ENV hash, use Config.reload! or Config::Options#reload! instead.

Bug fixes

  • Added alias to_h for to_hash (#277)

Changes

  • Add Config::Sources::EnvSource for loading settings from flat Hashes with String keys and String values, such as from AWS SecretsManager (#299)

2.2.3

09 Dec 20:29
637f32c
Compare
Choose a tag to compare

Bug fixes

  • Revert added alias to_h for to_hash (#277)

Changes

  • Raise explicit error on environment variable conflicts (#293)

2.2.2

08 Dec 14:45
aa627cf
Compare
Choose a tag to compare

Bug fixes

  • Added alias to_h for to_hash (#277)
  • Prevent unnecessary doubled loading of environment variables (#291)
  • Return Hash from Config::Options#as_json instead of Array of pairs when using ActiveSupport Core Extensions (#292)

Changes

  • Add JRuby 9.2 to the test matrix (#228)
  • Add exit! to reserved keywords (#289)

2.2.1

08 Jan 17:49
7ff7658
Compare
Choose a tag to compare

Performance improvements

  • Get rid of unused Rails Engine class definition (#247)
  • Require dry-validation only when schema is specified (#253)
  • Defer modification of ActionController::Base to when it is loaded in Rails integration (#250)

Bug fixes

  • Fix missing new_ostruct_member in Ruby 2.7 (#255)
  • Fix validation contract documentation (#260)
  • Excluded test application's *.md files from the gem build (#267)

Changes

  • Use sprockets 3.x when running unit tests for Rails 4.2 (#256)
  • Cleanup example Rails application used for testing (#263)
  • Upgrade markdown linter and fix errors (#265)
  • Upgrade development dependencies and test matrix with latest Ruby and Rails versions (#264)
  • Replace Travis CI with GitHub Actions (#266)
  • Add Rails 6.0 to the test matrix (#258)
  • Rename GitHub organization name from railsconfig to rubyconfig (#268)

2.1.0

03 Jan 18:36
9a96a4e
Compare
Choose a tag to compare

New features

  • Add dry-validation contract support (#238)

Changes

  • Get rid of activesupport dependency (#230)
  • Ignore .local files in test environment (#135, #233)
  • Execute default rspec against latest Rails app and load appropriate development dependencies dynamically (#241)
  • Fix inconsistent documentation for ENV prefix and default value in generator (#246)

Bug fixes

  • Fix warnings when running tests in Rails 5 scope (#240
  • Do not run incompatible code coverage on truffleruby (#242

2.0.0

22 Jun 02:00
b1cff98
Compare
Choose a tag to compare

BREAKING CHANGES

After upgrade to dry-schema 1.0 we had to drop support for Rails < 4.2 and Ruby < 2.4.
If you need older version of Ruby or Rails, please stick to 1.x version of this gem.

New features

  • Add merge_hash_arrays as a configuration option (#214)

Changes

  • Upgraded dry-validation dependency to dry-schema 1.0 (#224)
  • Moved constant to be defined on Object instead of Kernel (#227)
  • Add TruffleRuby to the test matrix (#229)

1.7.2

13 Jun 09:12
08a154f
Compare
Choose a tag to compare

Bug fixes

  • Lock max version of dry-validation depending on the ruby version (#223)

1.7.1

13 Jun 08:59
be0f327
Compare
Choose a tag to compare

New features

  • Upgrade dependencies (#211)

Changes

  • Add Ruby 2.5 and Rails 5.1 to the testing matrix on Travis (#201)
  • Add Ruby 2.6 tto the test matrix (#210)
  • Add Rails 5.2 to the test matrix (#212)

1.7.0

09 Feb 15:53
34f62da
Compare
Choose a tag to compare

New features:

  • 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)