Skip to content

dep: bump anyway_config from 2.0.6 to 2.1.0

George Koltsov requested to merge dependabot-bundler-anyway_config-2.1.0 into master

Bumps anyway_config from 2.0.6 to 2.1.0.

Release notes

Sourced from anyway_config's releases.

2.1.0 🎄

This release is dedicated to the Ruby 3.0 release.

Features

  • Added ability to specify the default YAML configs directory as a plain string or Pathname.

For example:

Anyway::Settings.default_config_path = "path/to/configs"
or in Rails
config.anyway_config.default_config_path = Rails.root.join("my/configs")
  • Added ability to load environment-less YAML configs in Rails.

Useful for configs having similar values in any environment. For example:

# envless.yml
host: localhost
port: 3002
Rails.env #=> production or development — doesn't matter
Anyway::Config.for(:envless) => {host: "localhost", port: 3003}

NOTE: This feature will be enabled by default in the future versions; currently, you should opt-in to enable it:

# Add to you configuration
config.anyway_config.future.use :unwrap_known_environments
Changelog

Sourced from anyway_config's changelog.

2.1.0 (2020-12-29)

  • Drop deprecated attr_config instance variables support.

Config setters no longer write instance variables.

  • Add config.anyway_config.future to allow enabling upcoming features. ([@palkan][])

For smoother upgrades, we provide a mechanism to opt-out to the new defaults beforehand. Currently, only :unwrap_known_environments feature could be enabled (see below):

config.anyway_config.future.use :unwrap_known_environments
  • Allow to skip environment keys completely (e.g., development:, test:) in a config YML when used with Rails. In that case same config is loaded in all known environments (same mechanism as for non-Rails applications)

  • Add the known_environments property to Anyway::Settings under Rails. Use config.anyway_config.known_environments << "staging" to make the gem aware of custom environments. ([@progapandist][])

  • Make it possible to specify default YML configs directory. ([@palkan][])

For example:

Anyway::Settings.default_config_path = "path/to/configs"
or in Rails
config.anyway_config.default_config_path = Rails.root.join("my/configs")
Commits
  • 068fdf1 Bump 2.1.0
  • f81a443 chore: drop deprecated instance vars support
  • f7adcf3 ci: update build matrix
  • 46d5f19 internal: replace #deep_merge! with Utils.deep_merge
  • 3cea71a feat: add future config settings; upgrade ruby-next/rubocop
  • befcfd9 docs(README.md): fix typo on testing helpers path
  • 3a01215 load whole config when no environmental keys present in Rails config YML (#67)
  • c869e52 chore: specify min version for ruby-next
  • 21bfb79 chore: fix changelog indentation
  • 5574560 dev: bring Rubocop back to default Rake task
  • Additional commits viewable in compare view

Merge request reports

Loading