capistrano-rails 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +4 -2
- data/capistrano-rails.gemspec +1 -1
- data/lib/capistrano/tasks/assets.rake +13 -2
- data/lib/capistrano/tasks/migrations.rake +11 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b6d8f98b86d8f20d8967ea8c0b8dc2342362914
|
4
|
+
data.tar.gz: e4acb81647875fe93cb653576a10cd2d013c9591
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd51e4c75170e09d345f084a353063bd7e3cfd14c548f681a8f213be09f15fcb99e493cebc9e2391984aaa8d2a8b56dda0002148ffa1425afe95e4c8411141d1
|
7
|
+
data.tar.gz: 9ba51c50fe3a51a94638f84f7171ea1cda18f88ecb4976fe6a1bca6f481c4d7223e458969aed09843a53e5eaf6d51ff8ad9fe06b52fa26a1b6d3b6d92fb7e282
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# 1.1.6 (Jan 19 2016)
|
2
|
+
|
3
|
+
* Add `rake assets:clobber` task from Rails (#149)
|
4
|
+
* Make `assets:clean` capable with zsh (#150)
|
5
|
+
* Split `deploy:migrate` to allow for finer hook-control (#148)
|
6
|
+
* Fix for parsing ls output in detect_manifest_path (#133)
|
7
|
+
|
1
8
|
# 1.1.5 (Oct 15 2015)
|
2
9
|
|
3
10
|
* Disable `deploy:cleanup_assets` by default due to undesirable behavior in Rails 3. Use `set :keep_assets, 2` to explicitly enable this feature for Rails 4.
|
data/README.md
CHANGED
@@ -10,8 +10,10 @@ Rails specific tasks for Capistrano v3:
|
|
10
10
|
Add this line to your application's Gemfile:
|
11
11
|
|
12
12
|
```ruby
|
13
|
-
|
14
|
-
gem 'capistrano
|
13
|
+
group :development do
|
14
|
+
gem 'capistrano', '~> 3.1'
|
15
|
+
gem 'capistrano-rails', '~> 1.1'
|
16
|
+
end
|
15
17
|
```
|
16
18
|
|
17
19
|
## Usage
|
data/capistrano-rails.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "capistrano-rails"
|
7
|
-
gem.version = '1.1.
|
7
|
+
gem.version = '1.1.6'
|
8
8
|
gem.authors = ["Tom Clements", "Lee Hambley", "Kir Shatrov"]
|
9
9
|
gem.email = ["seenmyfate@gmail.com", "lee.hambley@gmail.com", "shatrov@me.com"]
|
10
10
|
gem.description = %q{Rails specific Capistrano tasks}
|
@@ -30,7 +30,18 @@ namespace :deploy do
|
|
30
30
|
on release_roles(fetch(:assets_roles)) do
|
31
31
|
within release_path do
|
32
32
|
with rails_env: fetch(:rails_env) do
|
33
|
-
execute :rake, "assets:clean[#{fetch(:keep_assets)}]"
|
33
|
+
execute :rake, "'assets:clean[#{fetch(:keep_assets)}]'"
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
desc 'Clobber assets'
|
40
|
+
task :clobber_assets => [:set_rails_env] do
|
41
|
+
on release_roles(fetch(:assets_roles)) do
|
42
|
+
within release_path do
|
43
|
+
with rails_env: fetch(:rails_env) do
|
44
|
+
execute :rake, "assets:clobber"
|
34
45
|
end
|
35
46
|
end
|
36
47
|
end
|
@@ -96,7 +107,7 @@ namespace :deploy do
|
|
96
107
|
manifest*.*
|
97
108
|
).each do |pattern|
|
98
109
|
candidate = release_path.join('public', fetch(:assets_prefix), pattern)
|
99
|
-
return capture(:ls, candidate).strip if test(:ls, candidate)
|
110
|
+
return capture(:ls, candidate).strip.gsub(/(\r|\n)/,' ') if test(:ls, candidate)
|
100
111
|
end
|
101
112
|
msg = 'Rails assets manifest file not found.'
|
102
113
|
warn msg
|
@@ -11,10 +11,17 @@ namespace :deploy do
|
|
11
11
|
info '[deploy:migrate] Skip `deploy:migrate` (nothing changed in db/migrate)'
|
12
12
|
else
|
13
13
|
info '[deploy:migrate] Run `rake db:migrate`'
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
invoke :'deploy:migrating'
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
desc 'Runs rake db:migrate'
|
20
|
+
task migrating: [:set_rails_env] do
|
21
|
+
on primary fetch(:migration_role) do
|
22
|
+
within release_path do
|
23
|
+
with rails_env: fetch(:rails_env) do
|
24
|
+
execute :rake, 'db:migrate'
|
18
25
|
end
|
19
26
|
end
|
20
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Clements
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2016-01-19 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capistrano
|
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
84
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.
|
85
|
+
rubygems_version: 2.5.1
|
86
86
|
signing_key:
|
87
87
|
specification_version: 4
|
88
88
|
summary: Rails specific Capistrano tasks
|