mdsol / dice_bag

DiceBag is a library of rake tasks for configuring web apps in the style of The Twelve-Factor App.
MIT License
19 stars 4 forks source link

Use keyword argument for ERB.new to suppress deprecated warnings #103

Closed ykitamura-mdsol closed 2 years ago

ykitamura-mdsol commented 2 years ago

keyword argument for ERB.new

To suppress these warnings:

warning: Passing safe_level with the 2nd argument of ERB.new is deprecated. Do not use it, and specify other arguments as keyword arguments. warning: Passing trim_mode with the 3rd argument of ERB.new is deprecated. Use keyword argument like ERB.new(str, trim_mode: ...) instead.

https://github.com/voormedia/rails-erd/pull/297

Use default bundle path

In recent versions of Bundler, Bundler.settings[:path] returns nil if you only set BUNDLE_DEPLOYMENT=true so dice_bag is a little too greedy...

File '/home/app/web/config/database.yml' created : File '/home/app/web/vendor/bundle/ruby/3.0.0/gems/dice_bag-1.6.0/lib/dice_bag/templates/databases/mysql.yml' created File '/home/app/web/vendor/bundle/ruby/3.0.0/gems/dice_bag-1.6.0/lib/dice_bag/templates/databases/postgres.yml' created

@mdsol/architecture-enablement @jcarres-mdsol