capistrano-detect-migrations 0.6.2 → 0.6.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.
- data/README.md +1 -1
- data/lib/capistrano/detect_migrations.rb +3 -3
- metadata +8 -8
data/README.md
CHANGED
@@ -42,7 +42,7 @@ have been added by running `cap -T` from your application directory.
|
|
42
42
|
Credits
|
43
43
|
-------
|
44
44
|
This software was written by [Karl Matthias](https://github.com/relistan)
|
45
|
-
with help from [Gavin Heavyside](https://github.com/
|
45
|
+
with help from [Gavin Heavyside](https://github.com/gavinheavyside) and the
|
46
46
|
support of [MyDrive Solutions Limited](http://mydrivesolutions.com).
|
47
47
|
|
48
48
|
License
|
@@ -4,13 +4,13 @@ module Capistrano
|
|
4
4
|
module DetectMigrations
|
5
5
|
|
6
6
|
def last_git_tag_for(stage)
|
7
|
-
`git tag -l #{stage}-[0-9]*`.split(/\n/).last
|
7
|
+
`git tag -l #{stage}-[0-9]*.[0-9]*.[0-9]*[-_][0-9]*`.split(/\n/).last
|
8
8
|
end
|
9
9
|
|
10
10
|
def pending_migrations?
|
11
11
|
!(`git diff --shortstat #{last_git_tag_for(stage)} #{branch} db/migrate`.strip.empty?)
|
12
12
|
end
|
13
|
-
|
13
|
+
|
14
14
|
def show_pending_migrations
|
15
15
|
cdt.safe_run 'git', 'diff', '--summary', '--color', last_git_tag_for(stage), branch, 'db/migrate'
|
16
16
|
end
|
@@ -30,7 +30,7 @@ module Capistrano
|
|
30
30
|
if cdm.pending_migrations?
|
31
31
|
logger.log Logger::IMPORTANT, "Pending migrations!!!"
|
32
32
|
cdm.show_pending_migrations
|
33
|
-
|
33
|
+
|
34
34
|
$stdout.puts "Do you want to continue deployment? (Y/N)"
|
35
35
|
unless cdm.approved?
|
36
36
|
logger.log Logger::IMPORTANT, "Aborting deployment!"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-detect-migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-07-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|
16
|
-
requirement: &
|
16
|
+
requirement: &70262147064320 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70262147064320
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: capistrano-ext
|
27
|
-
requirement: &
|
27
|
+
requirement: &70262147063660 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70262147063660
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: capistrano-deploytags
|
38
|
-
requirement: &
|
38
|
+
requirement: &70262147063020 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70262147063020
|
47
47
|
description: ! ' Capistrano Detect Migrations lets you detect pending Rails migrations
|
48
48
|
before you deploy to any remote hosts. It leverages Git tagging to determine changes
|
49
49
|
that have happened since the last deployment. At deployment time you can choose
|