coauthor 0.1.2 → 0.1.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +25 -12
- data/lib/coauthor/git/user.rb +2 -2
- data/lib/coauthor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 802081ce6475670c0c66376a42146c09feb27d0862564d82f2aa7c9b1cbab00f
|
|
4
|
+
data.tar.gz: 58ea9ece10d83b3253b1a48f44cf6e1b57187c08c71c4cc381f6e7846351db90
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 78047555049d176ba83a390c0d4e3f1aa88f9371cddd4fc698f79c34be42a0415e60cb27f4f603f7f55c3d0cb2c68e62539d3e24d2e01d3b36195afa0dd27186
|
|
7
|
+
data.tar.gz: 3444fd02c9db0f7bbc655764590a789641a1adfacdd131ddef377a6f2a91d567c8da1881d4c9e1fa56ee738288e7a6c926593c7cbafcdbfcd722a44ef3629f5f
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -1,29 +1,42 @@
|
|
|
1
1
|
# Coauthor
|
|
2
2
|
|
|
3
|
-
Command line tool for
|
|
3
|
+
Command line tool for working with Github Coauthors. Interactively create a commit template for coauthoring.
|
|
4
4
|
|
|
5
|
-
[
|
|
5
|
+
[Github Coauthoring (Article)](https://help.github.com/articles/creating-a-commit-with-multiple-authors/)
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
|
-
Install with:
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
Install with:
|
|
10
|
+
|
|
11
|
+
$ gem install coauthor
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
#### Set Up Coauthors
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
1) First thing you should do is setup a coauthor file. At this time, we support 2 coauthors. This adds a `~/.coauthorrc` file as a git template.
|
|
18
18
|
|
|
19
|
+
$ coauthor setup
|
|
19
20
|
|
|
20
|
-
2) After that you're all set to commit. Add your files with git and run
|
|
21
|
+
2) After that you're all set to commit. Add your files with git and run the following when you are ready to commit:
|
|
22
|
+
|
|
23
|
+
$ coauthor
|
|
21
24
|
|
|
22
|
-
|
|
25
|
+
#### Set Your Current Project Author (Optional)
|
|
26
|
+
|
|
27
|
+
Coauthor includes a utility to interactively set the git author of the current project.
|
|
28
|
+
|
|
29
|
+
$ coauthor git_user
|
|
23
30
|
|
|
24
|
-
|
|
31
|
+
#### List Available Commands
|
|
32
|
+
|
|
33
|
+
$ coauthor --help
|
|
34
|
+
|
|
35
|
+
## Development
|
|
25
36
|
|
|
26
|
-
|
|
37
|
+
* After checking out the repo, run `bin/setup` to install dependencies.
|
|
38
|
+
* To install this gem onto your local machine, run `bundle exec rake install`.
|
|
39
|
+
* To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
27
40
|
|
|
28
41
|
## Contributing
|
|
29
42
|
|
|
@@ -31,4 +44,4 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/avogel
|
|
|
31
44
|
|
|
32
45
|
## License
|
|
33
46
|
|
|
34
|
-
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
|
47
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/lib/coauthor/git/user.rb
CHANGED
|
@@ -20,8 +20,8 @@ module Coauthor
|
|
|
20
20
|
private
|
|
21
21
|
|
|
22
22
|
def set_git_config
|
|
23
|
-
system("git config user.name #{name}")
|
|
24
|
-
system("git config user.email #{email}")
|
|
23
|
+
system("git config user.name '#{name}'")
|
|
24
|
+
system("git config user.email '#{email}'")
|
|
25
25
|
puts "...DONE! Git repository author has been set to #{name} <#{email}>".colorize(:green)
|
|
26
26
|
end
|
|
27
27
|
end
|
data/lib/coauthor/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: coauthor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Vogel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-09-
|
|
11
|
+
date: 2018-09-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|