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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17a3f057d0e119f211eb0845f648b4c9dda0fcc6320d7ecaae7d0b5b455125ec
4
- data.tar.gz: 2c4daf17abef4fe844c7c6122d29190ac2fa046d5bf1e95c835a7973c27fd7df
3
+ metadata.gz: a3bdc8e998cd6393e6ec1765a379b729b5732319820905e844cf7bd1c1560ab0
4
+ data.tar.gz: 551faa4233a5f8aaa1cdedf103527bd977e39f8e0b082fda9ab5fd4d296a8952
5
5
  SHA512:
6
- metadata.gz: eac2e5f2636c14f44fc80e4d576ed034c14ba913af0299351d39ab6eb08536c55d98c8c2b430abe188ceca0277e13bf3c03ff99f0538b3b8cd4e4cb45bb92657
7
- data.tar.gz: 07bad8b9ea864fb2775be9836bc656d9c47ad061e5d40791aad3f247f5e4d8e793eee69e8b960d4b8c6006a4f0aaec25281f88a98103fdb5159cba836946fc4e
6
+ metadata.gz: f55f01a055a4ca649c7024fea5108bb76698035e3db39f5980c6366b7661e5f997dea04b405f2bfe75d3cfec6ef1e4e88776cd2ad2d4a89848ac2e04bd4d123f
7
+ data.tar.gz: 5eea6a99a736651d623dac63cbe79fd1f145a3149365fdfe8447009dab4d88382534f8e030c86f729bc2eca39843fa2ca29da1f482472fe5e7781332c10e8938
@@ -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.4.0...HEAD
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.4", require: false
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
@@ -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.4.0'
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
- target = detect_manifest_path
92
- source = release_path.join('assets_manifest_backup', File.basename(target))
93
- if test "[[ -f #{source} && -f #{target} ]]"
94
- execute :cp, source, target
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.0
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: 2018-06-03 00:00:00.000000000 Z
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
- rubyforge_project:
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