Skip to content

Latest commit

 

History

History
190 lines (112 loc) · 5 KB

CHANGELOG.md

File metadata and controls

190 lines (112 loc) · 5 KB

master / unreleased

  • Now requiring Ruby 2.5+
  • Removed coercible dependency as all coercion is now implemented within the library (backwards compatible)
  • Removed thor dependency and envied CLI
  • Added Ruby 2.7 and 3.0 builds to CI

0.9.1 / 2017-07-06

  • Updates envied check:heroku to support multiline ENV variables #42

0.9.0 / 2017-03-01

  • Support multiple groups #16
  • Replaced rack dependency with stdlib solution using CGI for supporting hash type
  • Now requiring Ruby 2.1.x and up
  • Added float type which resolves #30
  • Added uri type #22
  • Updated extractor to find interpolated ENV vars which fixes #21
  • Various typo fixes #24 and #28
  • Resolved warnings when running tests

0.8.2 / 2017-02-21

Added

  • Rails 5 support #25

Fixed

  • Envfile: type string is also correctly implied when providing a default.

0.8.1 / 2014-10-18

Added

  • the check task uses ENV['ENVIED_GROUPS'] as default groups-option if present

Fixed

  • Rails: you can use ENVied now in config/application.rb and config/environments/*.rb

    For existing projects: rerun the init:rails-task

  • running check:heroku takes Heroku's value of ENVIED_GROUPS into account

  • calling enable_defaults! without arguments now does what it says

Deprecated

  • doing ENVied.require in config/initializers/envied.rb (as previously generated by init:rails-task) is not recommended anymore. It triggers a deprecation warning.

    It's recommended to rerun the init:rails-task.

0.8.0 / 2014-10-04

Added

  • the check:heroku:binstub task uses ENV['HEROKU_APP'] as app-option if present

  • the check and check:heroku task now have a --quiet option

    This prevents output on STDOUT for a successful check. Handy for wrapper-scripts:

     # some bash-script 'ensure-env'
     #!/usr/bin/env bash
     bundle exec envied check --quiet --groups default && $@
    
     $ ./ensure-env echo 'works!'
     works!
    
  • ENVied.require accepts string with groups, e.g. 'default,production'

    This way it's possible to easily require groups using the ENV:

     # config/initializers/envied.rb
     ENVied.require(*ENV['ENVIED_GROUPS'] || Rails.groups)
    
     $ ENVIED_GROUPS='default,production' bin/rails server
    

Fixed

  • extract-task would report at most one variable per line of code.
  • extract-task would not extract variable names with digits

Deprecated

  • titlecase variable types. Use downcased instead: variable :PORT, :integer

Removed

  • extract: test/spec-folder are no longer part of the default globs.

    Use the option --tests to include it:

     $ bundle exec envied extract --tests
    

0.7.2 / 2014-09-07

Added

  • extract-task: see all ENV-variables used in your project.

     $ envied extract
     Found 63 occurrences of 45 variables:
     BUNDLE_GEMFILE
     * config/boot.rb:4
     * config/boot.rb:6
     ...
    
  • version-task (i.e. bin/envied --version)

0.7.1 / 2014-08-29

  • Total refactor (TM).

  • Fix bug in Heroku binstub.

    It checked for group 'default,production' instead of 'default' and 'production'.

0.7.0 / 2014-08-24

  • Add init:rails-task for setup in Rails applications.

0.6.3 / 2014-08-22

  • Fix bug: 'false' was not a coercible value.

0.6.2 / 2014-08-20

  • Add envied check:heroku to do a check on your Heroku app.

  • Add envied check:heroku:binstub to generate script for convenient 'check:heroku'

0.6.1 / 2014-08-13

  • Add envied check to check whether defined variables are present and valid.

0.6.0 / 2014-08-13

  • The configuration now lives in Envfile by default.

0.5.0 / 2014-07-02

  • add Array Hash types

     # in env.rb
     ENVied.configure { variable :TAGS, :Array; variable :HASH, :Hash }
     ENVied.require
    
     $ HASH=a=1&b=2 TAGS=tag1,tag2 ruby -renvied -r./env.rb -e 'p ENVied.TAGS'
     # ["tag1", "tag2"]
     $ HASH='a=1&b=2' TAGS=tag1,tag2 ruby -renvied -r./env.rb -e 'p ENVied.HASH'
     # {'a' => '1', 'b' => '2'}
    

0.4.0 / 2014-05-16

  • groups added

    This allows for more fine-grained requiring. See the section in the README.

  • configuring is now simpler:

     ENVied.configure { variable :RACK_ENV }
     # vs
     ENVied.configure {|env| env.variable :RACK_ENV }
    
  • Deprecate require!. Use require instead.

    Just like requiring groups with Bundler.

  • Deprecate lowercase methods for uppercase ENV-variables.

    ENV['RACK_ENV'] is no longer accessible as ENVied.rack_env, only as ENVied.RACK_ENV. This is not only what you would expect, but it also reduces the chance of clashing with existing class-methods.

0.3.0 / 2014-03-14

  • defaults need to be enabled explicitly:

    ENVied.configure(enable_defaults: Rails.env.development?) { ... }

0.2.0 / 2014-03-14

  • add defaults

0.1.0 / 2014-03-13

  • add defaults