socialcast-git-extensions 1.3.1 → 1.3.2
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/Rakefile +1 -0
- data/VERSION +1 -1
- data/bin/git-release +1 -2
- data/bin/git-release-pending +1 -2
- data/bin/git-start +7 -15
- data/lib/socialcast-git-extensions.rb +2 -6
- data/socialcast-git-extensions.gemspec +5 -2
- metadata +18 -4
data/Rakefile
CHANGED
@@ -15,6 +15,7 @@ begin
|
|
15
15
|
gem.add_runtime_dependency "wireframe-jira4r", ">= 0"
|
16
16
|
gem.add_runtime_dependency "activesupport", ">= 0"
|
17
17
|
gem.add_runtime_dependency "git_remote_branch", ">= 0"
|
18
|
+
gem.add_runtime_dependency 'highline', '>= 0'
|
18
19
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
19
20
|
end
|
20
21
|
Jeweler::GemcutterTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.2
|
data/bin/git-release
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require File.join(File.dirname(__FILE__), '..', 'lib', 'socialcast-git-extensions.rb')
|
4
|
-
require 'readline'
|
5
4
|
include Socialcast
|
6
5
|
|
7
6
|
branch = current_branch
|
@@ -9,7 +8,7 @@ raise "Cannot release reserved branch" if %w{master staging}.include?(branch)
|
|
9
8
|
|
10
9
|
tickets = assert_tickets_provided(ARGV, branch)
|
11
10
|
|
12
|
-
exit unless
|
11
|
+
exit unless HighLine.ask("This will release #{branch} to production. Are you sure (y/n)? ") == 'y'
|
13
12
|
|
14
13
|
run_cmd 'git update'
|
15
14
|
integrate branch, 'master'
|
data/bin/git-release-pending
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
require File.join(File.dirname(__FILE__), '..', 'lib', 'socialcast-git-extensions.rb')
|
4
|
-
require 'readline'
|
5
4
|
include Socialcast
|
6
5
|
|
7
6
|
run_cmd 'git checkout master'
|
@@ -32,7 +31,7 @@ branches.each do |branch|
|
|
32
31
|
puts "All changes in #{branch} have been merged into master"
|
33
32
|
releasable_tickets = tickets_from_branch(branch).select do |issue|
|
34
33
|
puts "#{issue.key} - #{issue.summary}"
|
35
|
-
|
34
|
+
HighLine.ask("Mark this issue as released? (y/n)? ") == 'y'
|
36
35
|
end
|
37
36
|
release_tickets releasable_tickets
|
38
37
|
else
|
data/bin/git-start
CHANGED
@@ -3,26 +3,18 @@
|
|
3
3
|
#start a new git branch with latest changes from master
|
4
4
|
|
5
5
|
require File.join(File.dirname(__FILE__), '..', 'lib', 'socialcast-git-extensions.rb')
|
6
|
-
require 'readline'
|
7
6
|
include Socialcast
|
8
7
|
|
9
8
|
tickets = tickets_from_arguments ARGV
|
10
9
|
raise "JIRA ticket id is required to run this process" unless tickets.any?
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
proposed_branch_name
|
20
|
-
end
|
21
|
-
|
22
|
-
branch_name = nil
|
23
|
-
until branch_name.present?
|
24
|
-
proposed_branch_name = Readline.readline("What would you like to name your branch? ")
|
25
|
-
branch_name = validate_branch_name(proposed_branch_name)
|
11
|
+
repo = Grit::Repo.new(Dir.pwd)
|
12
|
+
remote_branches = repo.remotes.collect {|b| b.name.split('/').last }
|
13
|
+
until branch_name = HighLine.ask("What would you like to name your branch?") {|q|
|
14
|
+
q.validate = Proc.new { |branch|
|
15
|
+
branch =~ /^[A-Za-z0-9\-_]+$/ && !remote_branches.include?(branch)
|
16
|
+
}
|
17
|
+
}
|
26
18
|
end
|
27
19
|
|
28
20
|
run_cmd 'git checkout master'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'jira4r'
|
2
|
-
|
3
|
-
require 'active_support/all'
|
4
2
|
require 'grit'
|
3
|
+
require 'active_support/all'
|
4
|
+
require 'highline/import'
|
5
5
|
|
6
6
|
module Socialcast
|
7
7
|
GIT_BRANCH_FIELD = 'customfield_10010'
|
@@ -17,10 +17,6 @@ module Socialcast
|
|
17
17
|
@credentials
|
18
18
|
end
|
19
19
|
def jira_server
|
20
|
-
#make sure soap4r is installed
|
21
|
-
require 'jira4r'
|
22
|
-
require "highline/import.rb"
|
23
|
-
|
24
20
|
return @jira if @jira
|
25
21
|
if !File.exists?(JIRA_CREDENTIALS_FILE)
|
26
22
|
input = {}
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{socialcast-git-extensions}
|
8
|
-
s.version = "1.3.
|
8
|
+
s.version = "1.3.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ryan Sonnek"]
|
12
|
-
s.date = %q{2010-08-
|
12
|
+
s.date = %q{2010-08-30}
|
13
13
|
s.description = %q{git extension scripts for socialcast workflow}
|
14
14
|
s.email = %q{ryan@socialcast.com}
|
15
15
|
s.executables = ["git-integrate", "git-promote", "git-prune-merged", "git-release", "git-release-pending", "git-reset-staging", "git-start", "git-track", "git-update", "git-wtf"]
|
@@ -59,12 +59,14 @@ Gem::Specification.new do |s|
|
|
59
59
|
s.add_runtime_dependency(%q<wireframe-jira4r>, [">= 0"])
|
60
60
|
s.add_runtime_dependency(%q<activesupport>, [">= 0"])
|
61
61
|
s.add_runtime_dependency(%q<git_remote_branch>, [">= 0"])
|
62
|
+
s.add_runtime_dependency(%q<highline>, [">= 0"])
|
62
63
|
else
|
63
64
|
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
64
65
|
s.add_dependency(%q<grit>, [">= 0"])
|
65
66
|
s.add_dependency(%q<wireframe-jira4r>, [">= 0"])
|
66
67
|
s.add_dependency(%q<activesupport>, [">= 0"])
|
67
68
|
s.add_dependency(%q<git_remote_branch>, [">= 0"])
|
69
|
+
s.add_dependency(%q<highline>, [">= 0"])
|
68
70
|
end
|
69
71
|
else
|
70
72
|
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
@@ -72,6 +74,7 @@ Gem::Specification.new do |s|
|
|
72
74
|
s.add_dependency(%q<wireframe-jira4r>, [">= 0"])
|
73
75
|
s.add_dependency(%q<activesupport>, [">= 0"])
|
74
76
|
s.add_dependency(%q<git_remote_branch>, [">= 0"])
|
77
|
+
s.add_dependency(%q<highline>, [">= 0"])
|
75
78
|
end
|
76
79
|
end
|
77
80
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: socialcast-git-extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 2
|
10
|
+
version: 1.3.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Sonnek
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-08-
|
18
|
+
date: 2010-08-30 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -88,6 +88,20 @@ dependencies:
|
|
88
88
|
version: "0"
|
89
89
|
type: :runtime
|
90
90
|
version_requirements: *id005
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: highline
|
93
|
+
prerelease: false
|
94
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
95
|
+
none: false
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
hash: 3
|
100
|
+
segments:
|
101
|
+
- 0
|
102
|
+
version: "0"
|
103
|
+
type: :runtime
|
104
|
+
version_requirements: *id006
|
91
105
|
description: git extension scripts for socialcast workflow
|
92
106
|
email: ryan@socialcast.com
|
93
107
|
executables:
|