production_chain 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,20 @@
1
+ # Production Chain
2
+
1
3
  A rails gem that incorporate various libs, recipes and tasks
2
4
 
3
- To add the recipes to capistrano, you have to add these two lines to `config/deploy.rb` :
5
+ ## Rake
6
+
7
+ Rake tasks are automatically loaded in a rails environment
8
+
9
+ ## Capistrano
4
10
 
11
+ Capistrano tasks are *not* automatically loaded. You have to add to your `config/deploy.rb` file:
12
+
13
+ ```ruby
5
14
  require 'bundler/setup'
6
15
  require 'production_chain'
16
+ ```
17
+
18
+ ### Known issues
19
+
20
+ This gem assumes you have the `s3` gem installed, while not explicitly requiring either in the gemspec or in the Gemfile.
@@ -0,0 +1,7 @@
1
+ require "capistrano"
2
+
3
+ if Capistrano::Configuration.instance
4
+ Capistrano::Configuration.instance.load_paths << File.dirname(__FILE__)
5
+ Capistrano::Configuration.instance.load "recipes/dump_and_restore"
6
+ Capistrano::Configuration.instance.load "recipes/sphinx"
7
+ end
File without changes
@@ -0,0 +1,3 @@
1
+ module ProductionChain
2
+ VERSION = '0.0.4'
3
+ end
@@ -1,6 +1,9 @@
1
+ $:.unshift File.expand_path('../lib', __FILE__)
2
+ require 'production_chain/version'
3
+
1
4
  Gem::Specification.new do |s|
2
5
  s.name = "production_chain"
3
- s.version = "0.0.3"
6
+ s.version = ProductionChain::VERSION
4
7
  s.platform = Gem::Platform::RUBY
5
8
  s.authors = ["Novelys"]
6
9
  s.email = ["contact@novelys.com"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: production_chain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -22,10 +22,12 @@ files:
22
22
  - README.md
23
23
  - lib/core_ext/numeric.rb
24
24
  - lib/production_chain.rb
25
+ - lib/production_chain/capistrano.rb
26
+ - lib/production_chain/recipes/dump_and_restore.rb
27
+ - lib/production_chain/recipes/sphinx.rb
28
+ - lib/production_chain/version.rb
25
29
  - lib/rails/action_controller/abstract_request.rb
26
30
  - lib/rails/action_view/text_helper.rb
27
- - lib/recipes/dump_and_restore.rb
28
- - lib/recipes/sphinx.rb
29
31
  - lib/tasks.rb
30
32
  - lib/tasks/backup.rake
31
33
  - lib/tasks/db.rake