harleytt-capistrano-gitflow 1.4.4 → 1.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/capistrano-gitflow.gemspec +2 -2
- data/lib/capistrano/gitflow.rb +18 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.5
|
data/capistrano-gitflow.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{harleytt-capistrano-gitflow}
|
8
|
-
s.version = "1.4.
|
8
|
+
s.version = "1.4.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Joshua Nichols", "Harley Trung"]
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
]
|
19
19
|
s.files = `git ls-files`.split("\n")
|
20
20
|
s.test_files = `git ls-files -- spec/*`.split("\n")
|
21
|
-
s.homepage = "http://github.com/harleyttd
|
21
|
+
s.homepage = "http://github.com/harleyttd/capistrano-gitflow"
|
22
22
|
s.require_paths = ["lib"]
|
23
23
|
s.rubygems_version = %q{1.3.7}
|
24
24
|
|
data/lib/capistrano/gitflow.rb
CHANGED
@@ -43,8 +43,24 @@ module Capistrano
|
|
43
43
|
fetch(:scm, :git).to_sym == :git
|
44
44
|
end
|
45
45
|
|
46
|
+
def parse_github_repo_info
|
47
|
+
if `git config remote.origin.url` =~ /git@github.com:(.*)\/(.*).git/
|
48
|
+
@repo_owner, @repo_name = $1, $2
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
def repo_owner
|
53
|
+
parse_github_repo_info unless defined?(@repo_owner)
|
54
|
+
@repo_owner
|
55
|
+
end
|
56
|
+
|
57
|
+
def repo_name
|
58
|
+
parse_github_repo_info unless defined?(@repo_name)
|
59
|
+
@repo_name
|
60
|
+
end
|
61
|
+
|
46
62
|
def github_compare_link(from_tag, to_tag)
|
47
|
-
"https://github.com/#{
|
63
|
+
"https://github.com/#{repo_owner}/#{repo_name}/compare/#{from_tag}...#{to_tag}"
|
48
64
|
end
|
49
65
|
|
50
66
|
def get_from_tag(stage_name)
|
@@ -66,7 +82,7 @@ module Capistrano
|
|
66
82
|
when :staging
|
67
83
|
'master'
|
68
84
|
else
|
69
|
-
raise "Unsupported
|
85
|
+
raise "Unsupported stage #{stage}"
|
70
86
|
end
|
71
87
|
end
|
72
88
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: harleytt-capistrano-gitflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 1.4.
|
9
|
+
- 5
|
10
|
+
version: 1.4.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Joshua Nichols
|
@@ -85,7 +85,7 @@ files:
|
|
85
85
|
- spec/spec.opts
|
86
86
|
- spec/spec_helper.rb
|
87
87
|
has_rdoc: true
|
88
|
-
homepage: http://github.com/harleyttd/
|
88
|
+
homepage: http://github.com/harleyttd/capistrano-gitflow
|
89
89
|
licenses: []
|
90
90
|
|
91
91
|
post_install_message:
|