capistrano-rails 1.2.2 → 1.2.3
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/.travis.yml +6 -0
- data/CHANGELOG.md +6 -1
- data/Dangerfile +43 -0
- data/Rakefile +3 -0
- data/capistrano-rails.gemspec +2 -1
- data/lib/capistrano/tasks/assets.rake +5 -1
- metadata +19 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 93ee128ca34535796679242e1deb36e7161866c7
|
4
|
+
data.tar.gz: aa19837eb01747fa078d1e3ad97ea03e3f20ef36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6b3dfed673f8f95cad698f01fef2616dd94c78bf28171cd1ca63cb702b5821dbb5cad30e861866999c6f20e3c5de1ea9aa7db4616971931060649235ed0ed32
|
7
|
+
data.tar.gz: 937c98a295cf5da311dc8cde4b7a6b248f255dc41e6803f3adb5cbe6924e35b18da51f3c02ee4232b9b4f9ac10fa1e4e70c29f03adb30843712552abfe6fa2b8
|
data/.travis.yml
ADDED
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
* Your contribution here!
|
4
4
|
|
5
|
+
# [1.2.3][] (Mar 4 2017)
|
6
|
+
|
7
|
+
* [#200](https://github.com/capistrano/rails/pull/200): Don't link public/assets if public is already linked - [@mattbrictson](https://github.com/mattbrictson)
|
8
|
+
|
5
9
|
# [1.2.2][] (Jan 10 2017)
|
6
10
|
|
7
11
|
* Restored compatibility with older versions of Rake (< 11.0.0), introduced in previous change. (@toupeira)
|
@@ -69,7 +73,8 @@
|
|
69
73
|
|
70
74
|
Initial release
|
71
75
|
|
72
|
-
[master]: https://github.com/capistrano/rails/compare/v1.2.
|
76
|
+
[master]: https://github.com/capistrano/rails/compare/v1.2.3...HEAD
|
77
|
+
[1.2.3]: https://github.com/capistrano/rails/compare/v1.2.2...v1.2.3
|
73
78
|
[1.2.2]: https://github.com/capistrano/rails/compare/v1.2.1...v1.2.2
|
74
79
|
[1.2.1]: https://github.com/capistrano/rails/compare/v1.2.0...v1.2.1
|
75
80
|
[1.2.0]: https://github.com/capistrano/rails/compare/v1.1.8...v1.2.0
|
data/Dangerfile
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# Adapted from https://github.com/ruby-grape/danger/blob/master/Dangerfile
|
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
|
data/Rakefile
CHANGED
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.2.
|
7
|
+
gem.version = '1.2.3'
|
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}
|
@@ -18,4 +18,5 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.add_dependency 'capistrano', '~> 3.1'
|
19
19
|
gem.add_dependency 'capistrano-bundler', '~> 1.1'
|
20
20
|
|
21
|
+
gem.add_development_dependency 'danger'
|
21
22
|
end
|
@@ -120,7 +120,11 @@ end
|
|
120
120
|
# as assets_prefix will always have a default value
|
121
121
|
namespace :deploy do
|
122
122
|
task :set_linked_dirs do
|
123
|
-
|
123
|
+
linked_dirs = fetch(:linked_dirs, [])
|
124
|
+
unless linked_dirs.include?('public')
|
125
|
+
linked_dirs << "public/#{fetch(:assets_prefix)}"
|
126
|
+
set :linked_dirs, linked_dirs.uniq
|
127
|
+
end
|
124
128
|
end
|
125
129
|
end
|
126
130
|
|
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.2.
|
4
|
+
version: 1.2.3
|
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-03-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: capistrano
|
@@ -40,6 +40,20 @@ dependencies:
|
|
40
40
|
- - "~>"
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
version: '1.1'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: danger
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0'
|
50
|
+
type: :development
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - ">="
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0'
|
43
57
|
description: Rails specific Capistrano tasks
|
44
58
|
email:
|
45
59
|
- seenmyfate@gmail.com
|
@@ -50,7 +64,9 @@ extensions: []
|
|
50
64
|
extra_rdoc_files: []
|
51
65
|
files:
|
52
66
|
- ".gitignore"
|
67
|
+
- ".travis.yml"
|
53
68
|
- CHANGELOG.md
|
69
|
+
- Dangerfile
|
54
70
|
- Gemfile
|
55
71
|
- LICENSE.txt
|
56
72
|
- README.md
|
@@ -82,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
98
|
version: '0'
|
83
99
|
requirements: []
|
84
100
|
rubyforge_project:
|
85
|
-
rubygems_version: 2.6.
|
101
|
+
rubygems_version: 2.6.10
|
86
102
|
signing_key:
|
87
103
|
specification_version: 4
|
88
104
|
summary: Rails specific Capistrano tasks
|