capistrano-rails 1.4.0 → 1.5.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 +21 -1
- data/capistrano-rails.gemspec +4 -1
- data/lib/capistrano/tasks/assets.rake +9 -4
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3bdc8e998cd6393e6ec1765a379b729b5732319820905e844cf7bd1c1560ab0
|
4
|
+
data.tar.gz: 551faa4233a5f8aaa1cdedf103527bd977e39f8e0b082fda9ab5fd4d296a8952
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f55f01a055a4ca649c7024fea5108bb76698035e3db39f5980c6366b7661e5f997dea04b405f2bfe75d3cfec6ef1e4e88776cd2ad2d4a89848ac2e04bd4d123f
|
7
|
+
data.tar.gz: 5eea6a99a736651d623dac63cbe79fd1f145a3149365fdfe8447009dab4d88382534f8e030c86f729bc2eca39843fa2ca29da1f482472fe5e7781332c10e8938
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
* Your contribution here!
|
4
4
|
|
5
|
+
# [1.5.0][] (May 15 2020)
|
6
|
+
|
7
|
+
* Handle restore of multiple asset manifests on rollback ([#226](https://github.com/capistrano/rails/pull/226))
|
8
|
+
|
5
9
|
# [1.4.0][] (Jun 2 2018)
|
6
10
|
|
7
11
|
* Added option ':assets_manifests' to support custom manifest file path ([#216](https://github.com/capistrano/rails/pull/216))
|
@@ -85,7 +89,8 @@ This release simply adds the MIT license to the capistrano-rails gemspec. There
|
|
85
89
|
|
86
90
|
Initial release
|
87
91
|
|
88
|
-
[master]: https://github.com/capistrano/rails/compare/v1.
|
92
|
+
[master]: https://github.com/capistrano/rails/compare/v1.5.0...HEAD
|
93
|
+
[1.5.0]: https://github.com/capistrano/rails/compare/v1.4.0...v1.5.0
|
89
94
|
[1.4.0]: https://github.com/capistrano/rails/compare/v1.3.1...v1.4.0
|
90
95
|
[1.3.1]: https://github.com/capistrano/rails/compare/v1.3.0...v1.3.1
|
91
96
|
[1.3.0]: https://github.com/capistrano/rails/compare/v1.2.3...v1.3.0
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ Add these Capistrano gems to your application's Gemfile using `require: false`:
|
|
12
12
|
```ruby
|
13
13
|
group :development do
|
14
14
|
gem "capistrano", "~> 3.10", require: false
|
15
|
-
gem "capistrano-rails", "~> 1.
|
15
|
+
gem "capistrano-rails", "~> 1.5", require: false
|
16
16
|
end
|
17
17
|
```
|
18
18
|
|
@@ -113,6 +113,26 @@ set :migration_role, :app
|
|
113
113
|
The advantage is you won't need to deploy your application to your database
|
114
114
|
server, and overall a better separation of concerns.
|
115
115
|
|
116
|
+
#### Uploading your master.key
|
117
|
+
|
118
|
+
You can use the below configuration to upload your `master.key` to the server if it isn't already present.
|
119
|
+
|
120
|
+
```ruby
|
121
|
+
append :linked_files, "config/master.key"
|
122
|
+
|
123
|
+
namespace :deploy do
|
124
|
+
namespace :check do
|
125
|
+
before :linked_files, :set_master_key do
|
126
|
+
on roles(:app), in: :sequence, wait: 10 do
|
127
|
+
unless test("[ -f #{shared_path}/config/master.key ]")
|
128
|
+
upload! 'config/master.key', "#{shared_path}/config/master.key"
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
```
|
135
|
+
|
116
136
|
## Contributing
|
117
137
|
|
118
138
|
1. Fork it
|
data/capistrano-rails.gemspec
CHANGED
@@ -4,12 +4,15 @@ $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.5.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}
|
11
11
|
gem.summary = %q{Rails specific Capistrano tasks}
|
12
12
|
gem.homepage = "https://github.com/capistrano/rails"
|
13
|
+
gem.metadata = {
|
14
|
+
"changelog_uri" => "https://github.com/capistrano/rails/blob/master/CHANGELOG.md"
|
15
|
+
}
|
13
16
|
|
14
17
|
gem.licenses = ["MIT"]
|
15
18
|
|
@@ -88,10 +88,15 @@ namespace :deploy do
|
|
88
88
|
task :restore_manifest do
|
89
89
|
on release_roles(fetch(:assets_roles)) do
|
90
90
|
within release_path do
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
91
|
+
targets = detect_manifest_path.split(' ')
|
92
|
+
sources = targets.map do |target|
|
93
|
+
release_path.join('assets_manifest_backup', File.basename(target))
|
94
|
+
end
|
95
|
+
if test(:ls, *sources) && test(:ls, *targets)
|
96
|
+
source_map = sources.zip(targets)
|
97
|
+
source_map.each do |source, target|
|
98
|
+
execute :cp, source, target
|
99
|
+
end
|
95
100
|
else
|
96
101
|
msg = 'Rails assets manifest file (or backup file) not found.'
|
97
102
|
warn msg
|
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.5.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: 2020-05-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capistrano
|
@@ -84,7 +84,8 @@ files:
|
|
84
84
|
homepage: https://github.com/capistrano/rails
|
85
85
|
licenses:
|
86
86
|
- MIT
|
87
|
-
metadata:
|
87
|
+
metadata:
|
88
|
+
changelog_uri: https://github.com/capistrano/rails/blob/master/CHANGELOG.md
|
88
89
|
post_install_message:
|
89
90
|
rdoc_options: []
|
90
91
|
require_paths:
|
@@ -100,8 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
101
|
- !ruby/object:Gem::Version
|
101
102
|
version: '0'
|
102
103
|
requirements: []
|
103
|
-
|
104
|
-
rubygems_version: 2.7.7
|
104
|
+
rubygems_version: 3.1.3
|
105
105
|
signing_key:
|
106
106
|
specification_version: 4
|
107
107
|
summary: Rails specific Capistrano tasks
|