capistrano-rails 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 040d768415f3717d10e7caae44b0dda52b7d19a4
4
+ data.tar.gz: 75c5e3f45ce8319813372b59a0ff52a691b2ea2e
5
+ SHA512:
6
+ metadata.gz: e49d4832d8ec8072b73db7e096994654c7765c1a659d72ce5c49124cc8f3e828e3837fdc3b3c9e785e8640d8151102d5740a59819599c2fc592346d49acd12d9
7
+ data.tar.gz: 7ff9dd0995139cc17735053867fb93cc36e704c1fb852f68e01239b5bc9282571a0a961742e1961915132486d376bec160050b82a953b4f5aa590c6fb4a731ca
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in capistrano-rails.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Tom Clements
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,39 @@
1
+ # Capistrano::Rails
2
+
3
+ Rails specific tasks for Capistrano v3:
4
+
5
+ - `cap deploy:migrate`
6
+ - `cap deploy:normalise_assets`
7
+
8
+ Assumes that `RAILS_ENV` matches stage, tasks are currently early examples
9
+
10
+ ## Installation
11
+
12
+ Add this line to your application's Gemfile:
13
+
14
+ gem 'capistrano', version: '~> 3.0.0'
15
+ gem 'capistrano-rails', version: '~> 1.0.0'
16
+
17
+ And then execute:
18
+
19
+ $ bundle --binstubs
20
+ $ cap install
21
+
22
+ ## Usage
23
+
24
+ # Capfile
25
+
26
+ require 'capistrano/rails'
27
+
28
+ # or require just what you need
29
+
30
+ require 'capistrano/rails/assets'
31
+ require 'capistrano/rails/migrations'
32
+
33
+ ## Contributing
34
+
35
+ 1. Fork it
36
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
37
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
38
+ 4. Push to the branch (`git push origin my-new-feature`)
39
+ 5. Create new Pull Request
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,20 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ Gem::Specification.new do |gem|
6
+ gem.name = "capistrano-rails"
7
+ gem.version = '0.0.2'
8
+ gem.authors = ["Tom Clements", "Lee Hambley"]
9
+ gem.email = ["seenmyfate@gmail.com", "lee.hambley@gmail.com"]
10
+ gem.description = %q{Rails specific Capistrano tasks}
11
+ gem.summary = %q{Rails specific Capistrano tasks}
12
+ gem.homepage = "https://github.com/capistrano/rails"
13
+
14
+ gem.files = `git ls-files`.split($/)
15
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
16
+ gem.require_paths = ["lib"]
17
+
18
+ gem.add_dependency 'capistrano'
19
+
20
+ end
File without changes
@@ -0,0 +1 @@
1
+ load File.expand_path("../../tasks/assets.rake", __FILE__)
@@ -0,0 +1 @@
1
+ load File.expand_path("../../tasks/migrations.rake", __FILE__)
@@ -0,0 +1,13 @@
1
+ namespace :deploy do
2
+ desc 'Normalise asset timestamps'
3
+ task :normalise_assets do
4
+ on roles :web do
5
+ within release_path do
6
+ assets = %{public/images public/javascripts public/stylesheets}
7
+ execute :find, "#{assets} -exec touch -t #{asset_timestamp} {} ';'; true"
8
+ end
9
+ end
10
+ end
11
+
12
+ after :finalize, 'deploy:normalise_assets'
13
+ end
@@ -0,0 +1,14 @@
1
+ namespace :deploy do
2
+
3
+ desc 'Runs rake db:migrate if migrations are set'
4
+ task :migrate do
5
+ on primary :db do
6
+ within release_path do
7
+ execute :rake, "db:migrate RAILS_ENV=#{fetch(:stage)}"
8
+ end
9
+ end
10
+ end
11
+
12
+ before 'deploy:finalize', 'deploy:migrate'
13
+ end
14
+
metadata ADDED
@@ -0,0 +1,71 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: capistrano-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Tom Clements
8
+ - Lee Hambley
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-07-04 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: capistrano
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - '>='
19
+ - !ruby/object:Gem::Version
20
+ version: '0'
21
+ type: :runtime
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - '>='
26
+ - !ruby/object:Gem::Version
27
+ version: '0'
28
+ description: Rails specific Capistrano tasks
29
+ email:
30
+ - seenmyfate@gmail.com
31
+ - lee.hambley@gmail.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - .gitignore
37
+ - Gemfile
38
+ - LICENSE.txt
39
+ - README.md
40
+ - Rakefile
41
+ - capistrano-rails.gemspec
42
+ - lib/capistrano/rails.rb
43
+ - lib/capistrano/rails/assets.rb
44
+ - lib/capistrano/rails/migrations.rb
45
+ - lib/capistrano/tasks/assets.rake
46
+ - lib/capistrano/tasks/migrations.rake
47
+ homepage: https://github.com/capistrano/rails
48
+ licenses: []
49
+ metadata: {}
50
+ post_install_message:
51
+ rdoc_options: []
52
+ require_paths:
53
+ - lib
54
+ required_ruby_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - '>='
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
59
+ required_rubygems_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ requirements: []
65
+ rubyforge_project:
66
+ rubygems_version: 2.0.3
67
+ signing_key:
68
+ specification_version: 4
69
+ summary: Rails specific Capistrano tasks
70
+ test_files: []
71
+ has_rdoc: