capistrano_database_yml 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{capistrano_database_yml}
8
- s.version = "1.0.0"
8
+ s.version = "1.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Franz Aigner", "Simone Carletti"]
@@ -25,7 +25,10 @@ Gem::Specification.new do |s|
25
25
  "Rakefile",
26
26
  "VERSION",
27
27
  "capistrano_database_yml.gemspec",
28
- "lib/database_yml/capistrano.rb"
28
+ "lib/capistrano_database_yml.rb",
29
+ "lib/database_yml/capistrano.rb",
30
+ "lib/database_yml/railtie.rb",
31
+ "lib/database_yml/tasks.rake"
29
32
  ]
30
33
  s.homepage = %q{http://github.com/amfranz/capistrano_database_yml}
31
34
  s.licenses = ["MIT"]
@@ -0,0 +1 @@
1
+ require 'database_yml/railtie' if defined? ::Rails::Railtie
@@ -0,0 +1,7 @@
1
+ module DatabaseYml
2
+ class Railtie < Rails::Railtie
3
+ rake_tasks do
4
+ load 'database_yml/tasks.rake'
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,9 @@
1
+ file "config/database.yml.example" do |task|
2
+ abort "config/database.yml.example not found, please create one."
3
+ end
4
+
5
+ task :create_database_yml => "config/database.yml.example" do |task|
6
+ cp task.prerequisites.first, 'config/database.yml' unless File.exists? 'config/database.yml'
7
+ end
8
+
9
+ task :environment => :create_database_yml
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_database_yml
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
+ - 1
8
9
  - 0
9
- - 0
10
- version: 1.0.0
10
+ version: 1.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Franz Aigner
@@ -84,7 +84,10 @@ files:
84
84
  - Rakefile
85
85
  - VERSION
86
86
  - capistrano_database_yml.gemspec
87
+ - lib/capistrano_database_yml.rb
87
88
  - lib/database_yml/capistrano.rb
89
+ - lib/database_yml/railtie.rb
90
+ - lib/database_yml/tasks.rake
88
91
  has_rdoc: true
89
92
  homepage: http://github.com/amfranz/capistrano_database_yml
90
93
  licenses: