heroku_rails 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 877dd9dceebb80e6c15c8e5fd3f631569152f8eea1b7951c3cce6863224f73fc
4
- data.tar.gz: 89b27c00e706dd8ed87c31cae2c75f20f7d8dab9182388445e8961a1f00ddb7c
3
+ metadata.gz: 2a05e930c2b7ec3d140db4d38156753e51170b9f719c398ac9b8874b1cb5062a
4
+ data.tar.gz: bfe049e82e80de8fe92dc3cb5efcc6a350f68bbc341fbe148d2c3e981f19d1c8
5
5
  SHA512:
6
- metadata.gz: d85490b81a5b2177b64bc8280c5a2df3527b5f80316cc68797c09614d92701ad90bb4971b18e6fb85c8919e15c17f9bd0c36d9e9bd4fb9befaa1087fee38e852
7
- data.tar.gz: e0d8a4042afa600672f227cef5bbc94254ace3f678c4500fcbe7dd25cd055d70c96b53c94ea7779b8b4c26021ec3ebd481e95b59c77e6dce379916a4a9419dc8
6
+ metadata.gz: af1de9707ce8205e805f1433542ab84b0d97c44f02f6c6a0a08ebbbbc969e5e99186cf01c25e349f328102a53a69b1b05340a96f4cc662e3e1b66198aafbd9b6
7
+ data.tar.gz: ae5aa11804454e82848594a69a20bbf8767c225ff47ce91db76f49ce967b1157b90ea58848977a52ecf719ae87cc0dc479656d961e85eb89f680e0b255e36459
@@ -2,9 +2,8 @@
2
2
  module HerokuRails
3
3
  class DbConfiguration
4
4
  def config
5
- @config ||= YAML.load(
6
- ERB.new(File.read("config/database.yml")).result
7
- )
5
+ db_config_from_file = ERB.new(File.read("config/database.yml")).result
6
+ @config ||= YAML.safe_load(db_config_from_file, [], [], true)
8
7
  end
9
8
 
10
9
  def generate_drop_tables_sql
@@ -3,7 +3,7 @@
3
3
  namespace :db do
4
4
  desc "drop all tables without worrying about concurrent accesses"
5
5
  task drop_all_tables: :environment do
6
- require File.expand_path("../../heroku_rails/db_configuration.rb", __FILE__)
6
+ require File.expand_path("../../db_configuration.rb", __FILE__)
7
7
  abort("Don't run this on production") if Rails.env.production?
8
8
 
9
9
  db_config = HerokuRails::DbConfiguration.new
@@ -1,3 +1,3 @@
1
1
  module HerokuRails
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ahmad Ainul Rizki