Skip to content

Releases: dry-rb/dry-configurable

v0.8.2

25 Feb 11:36
v0.8.2
b8bb1f0
Compare
Choose a tag to compare

0.8.2 - 2019-02-25

Fixed

  • Test interface support for modules (Neznauy)

Compare v0.8.1...v0.8.2

v0.8.1

06 Feb 14:00
v0.8.1
8683ab8
Compare
Choose a tag to compare

0.8.1 - 2019-02-06

Fixed

  • .configure doesn't require a block, this makes the behavior consistent with the previous versions (flash-gordon)

Compare v0.8.0...v0.8.1

v0.8.0

05 Feb 09:28
v0.8.0
2af6aec
Compare
Choose a tag to compare

0.8.0 - 2019-02-05

Fixed

  • A number of bugs related to inheriting settings from parent class were fixed. Ideally, new behavior will be 💯 predictable but if you observe any anomaly, please report (flash-gordon)

Added

  • Support for instance-level configuration landed. For usage, include the module instead of extending (flash-gordon)
    class App
      include Dry::Configurable
    
      setting :database
    end
    
    production = App.new
    production.config.database = ENV['DATABASE_URL']
    production.finalize!
    
    development = App.new
    development.config.database = 'jdbc:sqlite:memory'
    development.finalize!
  • Config values can be set from a hash with .update. Nested settings are supported (flash-gordon)
    class App
      extend Dry::Configurable
    
      setting :db do
        setting :host
        setting :port
      end
    
      config.update(YAML.load(File.read("config.yml")))
    end

Changed

  • [BREAKING] Minimal supported Ruby version is set to 2.3 (flash-gordon)

Compare v0.7.0...v0.8.0