heroku_db_env 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -69,4 +69,4 @@ The final database configuration should look like
69
69
 
70
70
  Run a db rake task against any configured database to test the setup
71
71
 
72
- rake db:migrate RAILS_ENV=reporting
72
+ heroku run rake db:migrate RAILS_ENV=reporting
@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
8
8
  s.authors = ["Alex Skryl"]
9
9
  s.email = ["rut216@gmail.com"]
10
10
  s.homepage = "http://github.com/skryl/heroku_db_env"
11
- s.summary = %q{Overwrite Heroku's auto generated database.yml configuration}
12
- s.description = %q{Use a custom database.yml in a Heroku application}
11
+ s.summary = %q{Overwrite Heroku's auto generated database configuration}
12
+ s.description = %q{Use a custom database configuration in a Heroku application}
13
13
 
14
14
  s.rubyforge_project = "heroku_db_env"
15
15
 
@@ -2,7 +2,7 @@ module HerokuDbEnv
2
2
  DB_URL_MATCHER = /(.*)_DATABASE_URL/
3
3
 
4
4
  class HerokuDbEnvRailtie < Rails::Railtie
5
- config.before_initialize do |app|
5
+ initializer :initialize_heroku_db_env, {:group => :default, :before => "active_record.initialize_database"} do |app|
6
6
  db_config = HerokuDbEnv.build_db_config(app.config.database_configuration)
7
7
 
8
8
  # force active_record to use the db config instead of the db url
@@ -1,3 +1,3 @@
1
1
  module HerokuDbEnv
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku_db_env
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,9 +9,9 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-08 00:00:00.000000000 Z
12
+ date: 2013-02-10 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Use a custom database.yml in a Heroku application
14
+ description: Use a custom database configuration in a Heroku application
15
15
  email:
16
16
  - rut216@gmail.com
17
17
  executables: []
@@ -47,8 +47,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
47
47
  version: '0'
48
48
  requirements: []
49
49
  rubyforge_project: heroku_db_env
50
- rubygems_version: 1.8.15
50
+ rubygems_version: 1.8.23
51
51
  signing_key:
52
52
  specification_version: 3
53
- summary: Overwrite Heroku's auto generated database.yml configuration
53
+ summary: Overwrite Heroku's auto generated database configuration
54
54
  test_files: []
55
+ has_rdoc: