tobytripp-git-pair 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/git-pair/config.rb +4 -4
- data/tobytripp-git-pair.gemspec +29 -0
- metadata +5 -4
data/lib/git-pair/config.rb
CHANGED
@@ -3,18 +3,18 @@ module GitPair
|
|
3
3
|
extend self
|
4
4
|
|
5
5
|
def all_author_strings
|
6
|
-
`git config --
|
6
|
+
`git config --get-all git-pair.authors`.split("\n")
|
7
7
|
end
|
8
8
|
|
9
9
|
def add_author(author)
|
10
10
|
unless Author.exists?(author)
|
11
|
-
`git config --
|
11
|
+
`git config --add git-pair.authors "#{author.name} <#{author.email}>"`
|
12
12
|
end
|
13
13
|
end
|
14
14
|
|
15
15
|
def remove_author(name)
|
16
|
-
`git config --
|
17
|
-
`git config --
|
16
|
+
`git config --unset-all git-pair.authors "^#{name} <"`
|
17
|
+
`git config --remove-section git-pair` if all_author_strings.empty?
|
18
18
|
end
|
19
19
|
|
20
20
|
def switch(authors)
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = %q{tobytripp-git-pair}
|
5
|
+
s.version = "1.1.0"
|
6
|
+
s.platform = Gem::Platform::RUBY
|
7
|
+
|
8
|
+
s.authors = ["Chris Kampmeier", "Adam McCrea", "Jon Distad", "Toby Tripp"]
|
9
|
+
s.email = %q{toby.tripp+github@gmail.com}
|
10
|
+
|
11
|
+
s.summary = %q{Configure git to commit as more than one author}
|
12
|
+
s.description = %q{A git porcelain for pair programming. Changes git-config's user.name and user.email settings so you can commit as more than one author.} #'
|
13
|
+
|
14
|
+
s.default_executable = %q{git-pair}
|
15
|
+
s.executables = ["git-pair"]
|
16
|
+
|
17
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
18
|
+
s.extra_rdoc_files = %w[LICENSE README.markdown]
|
19
|
+
|
20
|
+
s.files = `git ls-files`.split("\n")
|
21
|
+
s.test_files = `git ls-files -- features/*`.split("\n")
|
22
|
+
|
23
|
+
s.homepage = %q{http://github.com/tobytripp/git-pair}
|
24
|
+
|
25
|
+
s.require_paths = ["lib"]
|
26
|
+
|
27
|
+
s.required_rubygems_version = ">= 1.3.5"
|
28
|
+
s.add_development_dependency "cucumber"
|
29
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tobytripp-git-pair
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 1.0.0
|
10
|
+
version: 1.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chris Kampmeier
|
@@ -18,7 +18,7 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date: 2011-01-
|
21
|
+
date: 2011-01-07 00:00:00 -06:00
|
22
22
|
default_executable: git-pair
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|
@@ -63,6 +63,7 @@ files:
|
|
63
63
|
- lib/git-pair/author.rb
|
64
64
|
- lib/git-pair/command.rb
|
65
65
|
- lib/git-pair/config.rb
|
66
|
+
- tobytripp-git-pair.gemspec
|
66
67
|
has_rdoc: true
|
67
68
|
homepage: http://github.com/tobytripp/git-pair
|
68
69
|
licenses: []
|