redmine_stagecoach 0.6.5 → 0.6.6
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.rdoc +1 -1
- data/VERSION +1 -1
- data/bin/stagecoach +1 -1
- data/lib/stagecoach/config.rb +0 -9
- data/lib/stagecoach/git.rb +0 -12
- data/redmine_stagecoach.gemspec +2 -2
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -13,7 +13,7 @@ All stagecoach config is saved in /path/to/your/repo/.stagecoach which is create
|
|
13
13
|
so if you need to remove a branch or edit the issue number that a branch points to, it is possible (although not necessarily recommended) to edit it.
|
14
14
|
|
15
15
|
== Init Stage
|
16
|
-
stagecoach -
|
16
|
+
stagecoach -r[edmine] 4115 (OR) -g[ithub] 525 -b[ranch] my_new_branch
|
17
17
|
(optional: -f[rom] original_branch, default => master)
|
18
18
|
|
19
19
|
You can also just run stagecoach without any flags and it will allow you to enter this stuff manually.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.6
|
data/bin/stagecoach
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
require File.dirname(__FILE__) + '/../lib/stagecoach.rb'
|
4
4
|
VERSION = File.open(File.dirname(__FILE__) + '/../VERSION').read
|
5
5
|
|
6
|
-
CONFIG_FILE = `pwd`.chomp + '/.stagecoach'
|
6
|
+
CONFIG_FILE = `pwd`.chomp + '/.stagecoach~'
|
7
7
|
|
8
8
|
module Stagecoach
|
9
9
|
# Command line options courtesy of the Trollop gem.
|
data/lib/stagecoach/config.rb
CHANGED
@@ -50,15 +50,6 @@ module Stagecoach
|
|
50
50
|
exit
|
51
51
|
end
|
52
52
|
|
53
|
-
# TODO Tell git to use a global config file if one is not used. Also if one
|
54
|
-
# is used and it is not .gitconfig, we need to save .stagecoach to that file somehow
|
55
|
-
unless Git.global_ignore_file
|
56
|
-
Git.global_ignore_file(".gitignore")
|
57
|
-
end
|
58
|
-
|
59
|
-
# Tell git to ignore the stagecoach config file
|
60
|
-
Git.global_ignore('.stagecoach')
|
61
|
-
|
62
53
|
# Set up global github username if it is not there
|
63
54
|
loop do
|
64
55
|
if Git.global_config(:github, :user) == ""
|
data/lib/stagecoach/git.rb
CHANGED
@@ -4,18 +4,6 @@ module Stagecoach
|
|
4
4
|
def branches
|
5
5
|
`git branch`.split("\n")
|
6
6
|
end
|
7
|
-
|
8
|
-
def global_ignore_file(set = nil)
|
9
|
-
`git config --global core.excludesfile #{set}`
|
10
|
-
end
|
11
|
-
|
12
|
-
def global_ignore(filename)
|
13
|
-
# Check if filename is ignored already and ignores it if not
|
14
|
-
gitignore = Git.global_ignore_file.strip
|
15
|
-
unless File.read(gitignore) =~ /\.stagecoach/
|
16
|
-
gitignore.puts(filename)
|
17
|
-
end
|
18
|
-
end
|
19
7
|
|
20
8
|
def global_config(header, config)
|
21
9
|
`git config --global #{header}.#{config}`
|
data/redmine_stagecoach.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "redmine_stagecoach"
|
8
|
-
s.version = "0.6.
|
8
|
+
s.version = "0.6.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Oli Barnett"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-04-11"
|
13
13
|
s.description = "Git/capistrano workflow automation script with Redmine & Github issue integration"
|
14
14
|
s.email = "o.barnett@digitaleseiten.de"
|
15
15
|
s.executables = ["stagecoach"]
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redmine_stagecoach
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-04-11 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activeresource
|
@@ -168,7 +168,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
168
168
|
version: '0'
|
169
169
|
segments:
|
170
170
|
- 0
|
171
|
-
hash: -
|
171
|
+
hash: -3889515421948317312
|
172
172
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
173
173
|
none: false
|
174
174
|
requirements:
|