capistrano-rails 1.3.1 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +8 -4
- data/capistrano-rails.gemspec +1 -1
- data/lib/capistrano/tasks/assets.rake +7 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17a3f057d0e119f211eb0845f648b4c9dda0fcc6320d7ecaae7d0b5b455125ec
|
4
|
+
data.tar.gz: 2c4daf17abef4fe844c7c6122d29190ac2fa046d5bf1e95c835a7973c27fd7df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eac2e5f2636c14f44fc80e4d576ed034c14ba913af0299351d39ab6eb08536c55d98c8c2b430abe188ceca0277e13bf3c03ff99f0538b3b8cd4e4cb45bb92657
|
7
|
+
data.tar.gz: 07bad8b9ea864fb2775be9836bc656d9c47ad061e5d40791aad3f247f5e4d8e793eee69e8b960d4b8c6006a4f0aaec25281f88a98103fdb5159cba836946fc4e
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
* Your contribution here!
|
4
4
|
|
5
|
+
# [1.4.0][] (Jun 2 2018)
|
6
|
+
|
7
|
+
* Added option ':assets_manifests' to support custom manifest file path ([#216](https://github.com/capistrano/rails/pull/216))
|
8
|
+
|
5
9
|
# [1.3.1][] (Nov 21 2017)
|
6
10
|
|
7
11
|
This release simply adds the MIT license to the capistrano-rails gemspec. There are no code changes. See [#205](https://github.com/capistrano/rails/issues/205).
|
@@ -81,7 +85,8 @@ This release simply adds the MIT license to the capistrano-rails gemspec. There
|
|
81
85
|
|
82
86
|
Initial release
|
83
87
|
|
84
|
-
[master]: https://github.com/capistrano/rails/compare/v1.
|
88
|
+
[master]: https://github.com/capistrano/rails/compare/v1.4.0...HEAD
|
89
|
+
[1.4.0]: https://github.com/capistrano/rails/compare/v1.3.1...v1.4.0
|
85
90
|
[1.3.1]: https://github.com/capistrano/rails/compare/v1.3.0...v1.3.1
|
86
91
|
[1.3.0]: https://github.com/capistrano/rails/compare/v1.2.3...v1.3.0
|
87
92
|
[1.2.3]: https://github.com/capistrano/rails/compare/v1.2.2...v1.2.3
|
data/README.md
CHANGED
@@ -7,12 +7,12 @@ Rails specific tasks for Capistrano v3:
|
|
7
7
|
|
8
8
|
## Installation
|
9
9
|
|
10
|
-
Add these
|
10
|
+
Add these Capistrano gems to your application's Gemfile using `require: false`:
|
11
11
|
|
12
12
|
```ruby
|
13
13
|
group :development do
|
14
|
-
gem
|
15
|
-
gem
|
14
|
+
gem "capistrano", "~> 3.10", require: false
|
15
|
+
gem "capistrano-rails", "~> 1.4", require: false
|
16
16
|
end
|
17
17
|
```
|
18
18
|
|
@@ -71,6 +71,10 @@ set :assets_roles, [:web, :app]
|
|
71
71
|
# This should match config.assets.prefix in your rails config/application.rb
|
72
72
|
set :assets_prefix, 'prepackaged-assets'
|
73
73
|
|
74
|
+
# Defaults to ["/path/to/release_path/public/#{fetch(:assets_prefix)}/.sprockets-manifest*", "/path/to/release_path/public/#{fetch(:assets_prefix)}/manifest*.*"]
|
75
|
+
# This should match config.assets.manifest in your rails config/application.rb
|
76
|
+
set :assets_manifests, ['app/assets/config/manifest.js']
|
77
|
+
|
74
78
|
# RAILS_GROUPS env value for the assets:precompile task. Default to nil.
|
75
79
|
set :rails_assets_groups, :assets
|
76
80
|
|
@@ -90,7 +94,7 @@ Make sure you enable it by setting `linked_dirs` and `linked_files` options:
|
|
90
94
|
|
91
95
|
```ruby
|
92
96
|
# deploy.rb
|
93
|
-
append :linked_dirs, 'log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', 'public/system', 'public/uploads'
|
97
|
+
append :linked_dirs, 'log', 'tmp/pids', 'tmp/cache', 'tmp/sockets', 'vendor/bundle', '.bundle', 'public/system', 'public/uploads'
|
94
98
|
append :linked_files, 'config/database.yml', 'config/secrets.yml'
|
95
99
|
```
|
96
100
|
|
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.
|
7
|
+
gem.version = '1.4.0'
|
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}
|
@@ -102,12 +102,8 @@ namespace :deploy do
|
|
102
102
|
end
|
103
103
|
|
104
104
|
def detect_manifest_path
|
105
|
-
|
106
|
-
.
|
107
|
-
manifest*.*
|
108
|
-
).each do |pattern|
|
109
|
-
candidate = release_path.join('public', fetch(:assets_prefix), pattern)
|
110
|
-
return capture(:ls, candidate).strip.gsub(/(\r|\n)/,' ') if test(:ls, candidate)
|
105
|
+
fetch(:assets_manifests).each do |candidate|
|
106
|
+
return capture(:ls, candidate).strip.gsub(/(\r|\n)/, ' ') if test(:ls, candidate)
|
111
107
|
end
|
112
108
|
msg = 'Rails assets manifest file not found.'
|
113
109
|
warn msg
|
@@ -134,5 +130,10 @@ namespace :load do
|
|
134
130
|
task :defaults do
|
135
131
|
set :assets_roles, fetch(:assets_roles, [:web])
|
136
132
|
set :assets_prefix, fetch(:assets_prefix, 'assets')
|
133
|
+
set :assets_manifests, -> {
|
134
|
+
%w[.sprockets-manifest* manifest*.*].map do |pattern|
|
135
|
+
release_path.join("public", fetch(:assets_prefix), pattern)
|
136
|
+
end
|
137
|
+
}
|
137
138
|
end
|
138
139
|
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.
|
4
|
+
version: 1.4.0
|
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: 2018-06-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capistrano
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
101
|
version: '0'
|
102
102
|
requirements: []
|
103
103
|
rubyforge_project:
|
104
|
-
rubygems_version: 2.7.
|
104
|
+
rubygems_version: 2.7.7
|
105
105
|
signing_key:
|
106
106
|
specification_version: 4
|
107
107
|
summary: Rails specific Capistrano tasks
|