Skip to content

Releases: rubyconfig/config

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)

1.6.1

07 Nov 09:54
6b8242b
Compare
Choose a tag to compare

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)

1.6.0

03 Nov 10:43
c05be07
Compare
Choose a tag to compare

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?

1.5.1

23 Oct 15:45
effa31b
Compare
Choose a tag to compare

New features:

  • Add parsing of ENV variable values to Boolean type

1.5.0

23 Oct 15:33
3ca8206
Compare
Choose a tag to compare

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

20 Dec 00:06
Compare
Choose a tag to compare

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

20 Dec 00:40
Compare
Choose a tag to compare
  • 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

20 Dec 00:40
Compare
Choose a tag to compare
  • Fixed support for multilevel settings loaded from ENV variables (inspired by @cbeer in #144)

1.2.0

20 Dec 00:38
Compare
Choose a tag to compare
  • Add ability to load settings from ENV variables (#108 thanks @vinceve and @spalladino)
  • Removed Rails 5 deprecation warnings for prepend_before_filter (#141)

1.1.1

20 Dec 00:37
Compare
Choose a tag to compare
  • Downgrade minimum ruby version to 2.0.0 (#136)