capistrano-rails 1.2.3 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/Dangerfile +1 -43
- data/README.md +4 -1
- data/capistrano-rails.gemspec +1 -1
- data/lib/capistrano/tasks/assets.rake +1 -1
- 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: dcd91a978e99c58547d28d3049fec73695c4f518
|
4
|
+
data.tar.gz: f6e20bd2b13cdc0f55e39b1bcf2fdad3d16cc4b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8be01bc08a5084597616374ce6497038c69ebba06a42832b2b64edb56130720e1c2f7ed3106274befa02706f67630b94a9c2efb6ff082523fc1d87a2cc7bfe3a
|
7
|
+
data.tar.gz: 53d8decbff18ca1d824a8032b9118ff687c2403a1733b02b7d138fc17eaa0aabe5933c6096c67a66f05ad9a464d3b9beb0b34965039f757465bc3465a6313f75
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
* Your contribution here!
|
4
4
|
|
5
|
+
# [1.3.0][] (Jun 9 2017)
|
6
|
+
|
7
|
+
* rails_assets_groups config option to set RAILS_GROUPS (https://github.com/capistrano/rails/pull/135)
|
8
|
+
|
5
9
|
# [1.2.3][] (Mar 4 2017)
|
6
10
|
|
7
11
|
* [#200](https://github.com/capistrano/rails/pull/200): Don't link public/assets if public is already linked - [@mattbrictson](https://github.com/mattbrictson)
|
@@ -73,7 +77,8 @@
|
|
73
77
|
|
74
78
|
Initial release
|
75
79
|
|
76
|
-
[master]: https://github.com/capistrano/rails/compare/v1.
|
80
|
+
[master]: https://github.com/capistrano/rails/compare/v1.3.0...HEAD
|
81
|
+
[1.3.0]: https://github.com/capistrano/rails/compare/v1.2.2...v1.3.0
|
77
82
|
[1.2.3]: https://github.com/capistrano/rails/compare/v1.2.2...v1.2.3
|
78
83
|
[1.2.2]: https://github.com/capistrano/rails/compare/v1.2.1...v1.2.2
|
79
84
|
[1.2.1]: https://github.com/capistrano/rails/compare/v1.2.0...v1.2.1
|
data/Dangerfile
CHANGED
@@ -1,43 +1 @@
|
|
1
|
-
|
2
|
-
# Q: What is a Dangerfile, anyway? A: See http://danger.systems/
|
3
|
-
|
4
|
-
# ------------------------------------------------------------------------------
|
5
|
-
# Additional pull request data
|
6
|
-
# ------------------------------------------------------------------------------
|
7
|
-
project_name = github.pr_json["base"]["repo"]["name"]
|
8
|
-
pr_number = github.pr_json["number"]
|
9
|
-
pr_url = github.pr_json["_links"]["html"]["href"]
|
10
|
-
|
11
|
-
# ------------------------------------------------------------------------------
|
12
|
-
# What changed?
|
13
|
-
# ------------------------------------------------------------------------------
|
14
|
-
has_lib_changes = !git.modified_files.grep(/^lib/).empty?
|
15
|
-
has_changelog_changes = git.modified_files.include?("CHANGELOG.md")
|
16
|
-
|
17
|
-
# ------------------------------------------------------------------------------
|
18
|
-
# Have you updated CHANGELOG.md?
|
19
|
-
# ------------------------------------------------------------------------------
|
20
|
-
if !has_changelog_changes && has_lib_changes
|
21
|
-
markdown <<-MARKDOWN
|
22
|
-
Here's an example of a CHANGELOG.md entry (place it immediately under the `* Your contribution here!` line):
|
23
|
-
|
24
|
-
```markdown
|
25
|
-
* [##{pr_number}](#{pr_url}): #{github.pr_title} - [@#{github.pr_author}](https://github.com/#{github.pr_author}).
|
26
|
-
```
|
27
|
-
MARKDOWN
|
28
|
-
warn("Please update CHANGELOG.md with a description of your changes. "\
|
29
|
-
"If this PR is not a user-facing change (e.g. just refactoring), "\
|
30
|
-
"you can disregard this.", :sticky => false)
|
31
|
-
end
|
32
|
-
|
33
|
-
# ------------------------------------------------------------------------------
|
34
|
-
# Did you remove the CHANGELOG's "Your contribution here!" line?
|
35
|
-
# ------------------------------------------------------------------------------
|
36
|
-
if has_changelog_changes
|
37
|
-
unless IO.read("CHANGELOG.md") =~ /^\* Your contribution here/i
|
38
|
-
fail(
|
39
|
-
"Please put the `* Your contribution here!` line back into CHANGELOG.md.",
|
40
|
-
:sticky => false
|
41
|
-
)
|
42
|
-
end
|
43
|
-
end
|
1
|
+
danger.import_dangerfile(github: "capistrano/danger")
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ Add these lines to your application's Gemfile:
|
|
12
12
|
```ruby
|
13
13
|
group :development do
|
14
14
|
gem 'capistrano', '~> 3.6'
|
15
|
-
gem 'capistrano-rails', '~> 1.
|
15
|
+
gem 'capistrano-rails', '~> 1.3'
|
16
16
|
end
|
17
17
|
```
|
18
18
|
|
@@ -71,6 +71,9 @@ 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
|
+
# RAILS_GROUPS env value for the assets:precompile task. Default to nil.
|
75
|
+
set :rails_assets_groups, :assets
|
76
|
+
|
74
77
|
# If you need to touch public/images, public/javascripts, and public/stylesheets on each deploy
|
75
78
|
set :normalize_asset_timestamps, %w{public/images public/javascripts public/stylesheets}
|
76
79
|
|
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.3.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}
|
@@ -65,7 +65,7 @@ namespace :deploy do
|
|
65
65
|
task :precompile do
|
66
66
|
on release_roles(fetch(:assets_roles)) do
|
67
67
|
within release_path do
|
68
|
-
with rails_env: fetch(:rails_env) do
|
68
|
+
with rails_env: fetch(:rails_env), rails_groups: fetch(:rails_assets_groups) do
|
69
69
|
execute :rake, "assets:precompile"
|
70
70
|
end
|
71
71
|
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.3.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: 2017-
|
13
|
+
date: 2017-06-09 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capistrano
|
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
98
|
version: '0'
|
99
99
|
requirements: []
|
100
100
|
rubyforge_project:
|
101
|
-
rubygems_version: 2.6.
|
101
|
+
rubygems_version: 2.6.12
|
102
102
|
signing_key:
|
103
103
|
specification_version: 4
|
104
104
|
summary: Rails specific Capistrano tasks
|