Skip to content

Commit c35dfa1

Browse files
committed
Support psych 4
1 parent 951c488 commit c35dfa1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/ndr_dev_support/capistrano/assets.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
task :configure_assets do
55
asset_script = fetch(:asset_script, <<~SHELL)
66
set -e
7-
ruby -ryaml -e "puts YAML.dump('production' => { 'secret_key_base' => 'compile_me' })" > config/secrets.yml
8-
ruby -ryaml -e "puts YAML.dump('production' => { 'adapter' => 'placeholder' })" > config/database.yml
7+
ruby -e "require 'yaml'; puts YAML.dump('production' => { 'secret_key_base' => 'compile_me' })" > config/secrets.yml
8+
ruby -e "require 'yaml'; puts YAML.dump('production' => { 'adapter' => 'placeholder' })" > config/database.yml
99
RAILS_ENV=production bundle exec rake assets:clobber assets:precompile
1010
rm config/secrets.yml config/database.yml
1111
SHELL

lib/ndr_dev_support/capistrano/ndr_model.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
end
174174

175175
def release_config_for(env)
176-
branches = YAML.load_file('config/deployments.yml')
176+
branches = YAML.safe_load_file("config/deployments.yml", permitted_classes: [Date])
177177
branches.fetch(env.to_s) { raise 'Unknown release branch!' }
178178
end
179179

0 commit comments

Comments
 (0)