rails_database_yml 0.0.1 → 0.0.2

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/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ 0.0.2
2
+ =====
3
+ * Bugfix:
4
+ * Ensure that the symlink is created before Capistrano calls `rake assets:precompile`. Fixes a regression with Rails 3.1 applications and enabled asset pipeline.
5
+
6
+ 0.0.1
7
+ =====
8
+ * creates a `database.yml` on `cap deploy:setup` for a MySQL connection
9
+ * symlink to shared `database.yml` on `cap deploy`
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2011-2012 Andreas Richter
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,35 @@
1
+ Rails database.yml tasks for Deployment with Capistrano
2
+ =======================================================
3
+
4
+ This gem provide some Capistrano tasks to handle a database.yml file dynamically on the deployment server.
5
+
6
+ As you now, it is a bad idea to check the database credentials into the source control for security reasons.
7
+
8
+ So this gem provides a way to create and handle a shared `database.yml` file for you on your deployment servers.
9
+ With this gem you don't need anymore to checkin a `database.yml` file with all the secrets of your database servers.
10
+
11
+ Usage
12
+ =====
13
+
14
+ Add the gem to your Rails 3 Project that uses Bundler
15
+
16
+ gem "rails_database_yml"
17
+
18
+ Use Bundler to install the gem
19
+
20
+ bundle install
21
+
22
+ Require the capistrano tasks in your config/deployment.rb
23
+
24
+ require "rails_database_yml/capistrano"
25
+
26
+ That's all.
27
+
28
+ How it works
29
+ ============
30
+
31
+ This gem asks you in `cap deploy:setup` for all necessery parameters for your database connection.
32
+ Afters this it creates a `database.yml` file in the folder `shared/config`.
33
+
34
+ On every `cap deploy` the gem creates a symlink to the shared `database.yml` under `current/config`.
35
+ So your rails application has always a database.yml file that is always the same between all deployments.
@@ -26,5 +26,5 @@ EOF
26
26
  end
27
27
  end
28
28
  after "deploy:setup", "rails_database:setup"
29
- after "deploy:update_code", "rails_database:symlink"
29
+ before "deploy:finalize_update", "rails_database:symlink"
30
30
  end
@@ -1,3 +1,3 @@
1
1
  module RailsDatabaseYml
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -7,9 +7,10 @@ Gem::Specification.new do |s|
7
7
  s.version = RailsDatabaseYml::VERSION
8
8
  s.authors = ["Andreas Richter"]
9
9
  s.email = ["ar@anrichter.net"]
10
- s.homepage = ""
10
+ s.homepage = "https://github.com/anrichter/rails_database_yml"
11
11
  s.summary = %q{Tasks and files to help the handle the database.yml in rails projects.}
12
12
  s.description = %q{This gem provide capistrano Tasks for the database.yml file in deployments of rails applications.}
13
+ s.license = 'MIT'
13
14
 
14
15
  s.rubyforge_project = "rails_database_yml"
15
16
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_database_yml
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andreas Richter
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-12-17 00:00:00 Z
18
+ date: 2012-01-01 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: This gem provide capistrano Tasks for the database.yml file in deployments of rails applications.
@@ -29,15 +29,18 @@ extra_rdoc_files: []
29
29
 
30
30
  files:
31
31
  - .gitignore
32
+ - CHANGELOG.md
32
33
  - Gemfile
34
+ - LICENSE
35
+ - README.md
33
36
  - Rakefile
34
37
  - lib/rails_database_yml.rb
35
38
  - lib/rails_database_yml/capistrano.rb
36
39
  - lib/rails_database_yml/version.rb
37
40
  - rails_database_yml.gemspec
38
- homepage: ""
39
- licenses: []
40
-
41
+ homepage: https://github.com/anrichter/rails_database_yml
42
+ licenses:
43
+ - MIT
41
44
  post_install_message:
42
45
  rdoc_options: []
43
46