Skip to content

Latest commit

 

History

History
170 lines (102 loc) · 8.18 KB

CHANGELOG.md

File metadata and controls

170 lines (102 loc) · 8.18 KB

Changelog

Unreleased

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

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

Bug fixes

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

1.7.1

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

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)

1.6.1

Bug fixes

  • Make dry-validation dependency less strict allowing to use newer versions (#183)
  • Fix key? and has_key?, which raise NoMethodError in non Rails environment, by using ActiveSupport #delegate implicitly (#185)
  • Update deep_merge dependency to latest version (v1.2.1) (#191)
  • Upgrade rubocop to version 0.52.1 (#193)
  • Add zip to the list of reserved keywords (#197)

1.6.0

New features

  • Config#fail_on_missing option (default false) to raise a KeyError exception when accessing a non-existing key
  • Add ability to test if a value was set for a given key with key? and has_key? (#182)

1.5.1

New features

  • Add parsing of ENV variable values to Boolean type (#180)

1.5.0

New features

  • Add ability to validate config schema (#155 thanks to @ok32)
  • Add count to the reserved names list (#167 thanks to @carbonin)

Bug fixes

  • Correctly parse env_prefix, which contains env_separator (#177 thanks to @rdodson41)

1.4.0

New features

  • Added support for passing a raw ruby hash into to both Settings.add_source! and Settings.prepend_source! (#108 thanks to @halloffame)

Bug fixes

  • Added new reserved name test (#158 thanks to @milushov)
  • to_hash should not replace nested config objects with Hash (#160 thanks to @seikichi)

1.3.0

  • WARNING: Overwrite arrays found in previously loaded settings file (#137 thanks to @Fryguy and @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
  • Changed default ENV variables loading settings to downcase variable names and parse values
  • Added parsing ENV variables values to Float type
  • Change method definition order in Rails integration module to prevent undefined method preload error (based on @YaroSpace suggestion in #111

1.2.1

  • Fixed support for multilevel settings loaded from ENV variables (inspired by @cbeer in #144)

1.2.0

  • Add ability to load settings from ENV variables (#108 thanks to @vinceve and @spalladino)
  • Removed Rails 5 deprecation warnings for prepend_before_filter (#141)

1.1.1

  • Downgrade minimum ruby version to 2.0.0 (#136)

1.1.0

  • Add ability to specify knockout_prefix option for deep_merge
  • Minor code and documentation refactoring and cleanup

1.0.0

  • RailsConfig is now officially renamed to Config
  • Fixed array descent when converting to hash (#89)
  • Catch OpenStruct reserved keywords (#95 by @dudo)
  • Allows loading before app configuration process (#107 by @Antiarchitect)
  • deep_merge is now properly managed via gemspec (#110)
  • Added prepend_source! (#102)

0.99

  • Released deprecated gem migrating to the new name

0.5.0.beta1

  • Ability to use in Settings file keywords reserved for OpenStruct: select, collect (#95)
  • Made config work without Rails as a hard dependency (#86, #88)
  • Fix generate error when .gitignore is missing (#85)
  • Fix deprecation warning on File.exists? (#81)
  • Add a shortcut method for setting files (#67)
  • Improve YAMLSource load error message by outputting offending file path (#88)

0.4.2

  • Ability to specify the app name when calling the Heroku rake task (#75)

0.4.1

  • Fixed compatibility with Rails 4.1 (#72)
  • Testing suite verifies compatibility with Rails 3.2, 4.0 and 4.1

0.4.0

  • Compatibility with Heroku (#64)

0.3.4

  • Expose Settings in application.rb, so you don't have to duplicate configuration for each environment file (#59)
  • Adding support for Rails 4.1.0.rc (#70)