snapgit 0.6.4 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +39 -8
- data/lib/lolcommits/plugins/loltext.rb +4 -0
- data/lib/lolcommits/plugins/snapgit.rb +6 -1
- data/lib/lolcommits/version.rb +1 -1
- data/snapgit.gemspec +2 -1
- data/vendor/logos/Snapgit.png +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d0d0319e759277fc3da4be552c95cfbaf34968c
|
4
|
+
data.tar.gz: 93d3a5dc0fea368383fa26ac00e69abd9e0951c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e95e1ad8e95469c77043856d03531ffb5b6b8422d8fe20dff45db9792b23c5a788bff4591d73bffcbee9f07339eddfe051d98b65947e2672e3277fbee4f58883
|
7
|
+
data.tar.gz: 41059df28338063226a7b765b68e4fc06ee654a4771f9d02990d5d278595d171e6b83242b4691e22f610901c46fdfbce4b309df27ae59fe799a3142dfc94a29d
|
data/README.md
CHANGED
@@ -1,28 +1,59 @@
|
|
1
|
+
<img src="/vendor/logos/Snapgit.png" align="right" />
|
2
|
+
|
1
3
|
# snapgit
|
2
4
|
|
3
|
-
[![Twitter: @KrauseFx](https://img.shields.io/badge/Twitter-@KrauseFx-blue.svg?style=flat)](https://twitter.com/KrauseFx)
|
4
|
-
[![Twitter: @icofyre](https://img.shields.io/badge/Twitter-@icofyre-blue.svg?style=flat)](https://twitter.com/icofyre)
|
5
|
-
[![Twitter: @fsha](https://img.shields.io/badge/Twitter-@fsha-blue.svg?style=flat)](https://twitter.com/fsha)
|
6
5
|
[![Gem Version](https://badge.fury.io/rb/snapgit.svg)](https://rubygems.org/gems/snapgit)
|
7
6
|
|
8
7
|
## Requirements
|
9
8
|
|
10
|
-
- A
|
9
|
+
- A Mac
|
11
10
|
|
12
11
|
## Installation
|
13
12
|
|
14
13
|
```
|
15
|
-
sudo gem install snapgit
|
14
|
+
[sudo] gem install snapgit
|
16
15
|
```
|
17
16
|
|
18
|
-
If the installation fails, uninstall [lolcommits](https://github.com/mroth/lolcommits) using `sudo gem uninstall lolcommits
|
17
|
+
If the installation fails, uninstall [lolcommits](https://github.com/mroth/lolcommits) using `sudo gem uninstall lolcommits`
|
19
18
|
|
20
19
|
```
|
21
20
|
snapgit init
|
22
21
|
```
|
23
22
|
|
24
|
-
This will help you get up and running in no time. It is recommended to just enable lolcommits for all repos
|
23
|
+
This will help you get up and running in no time. It is recommended to just enable lolcommits for all repos.
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
Just commit things and it will just work.
|
28
|
+
|
29
|
+
## Examples
|
30
|
+
|
31
|
+
TODO
|
32
|
+
|
33
|
+
## Authors
|
34
|
+
|
35
|
+
<table>
|
36
|
+
<tr>
|
37
|
+
<td>
|
38
|
+
<a href="https://twitter.com/fsha">
|
39
|
+
<img src="https://twitter.com/fsha/profile_image?size=original" width=150 /></a><br />
|
40
|
+
<p align="center"><a href="https://twitter.com/fsha">@fsha</a><br />Designer</p>
|
41
|
+
</td>
|
42
|
+
<td>
|
43
|
+
<a href="https://twitter.com/icofyre">
|
44
|
+
<img src="https://twitter.com/icofyre/profile_image?size=original" width=150 /></a><br />
|
45
|
+
<p align="center"><a href="https://twitter.com/icofyre">@icofyre</a><br />Engineer</p>
|
46
|
+
</td>
|
47
|
+
<td>
|
48
|
+
<a href="https://twitter.com/KrauseFx">
|
49
|
+
<img src="https://twitter.com/SeriousKrauseFx/profile_image?size=original" width=150 /></a><br />
|
50
|
+
<p align="center"><a href="https://twitter.com/KrauseFx">@KrauseFx</a><br />Engineer</p>
|
51
|
+
</td>
|
52
|
+
</tr>
|
53
|
+
</table>
|
25
54
|
|
26
55
|
# License
|
27
56
|
|
28
|
-
`snapgit` was forked from [mroth/lolcommits](https://github.com/mroth/lolcommits).
|
57
|
+
`snapgit` was forked from [mroth/lolcommits](https://github.com/mroth/lolcommits).
|
58
|
+
|
59
|
+
`snapgit` is under the same license as `lolcommits`: [GNU lesser general public license](https://github.com/snapgit/snapgit/blob/master/LICENSE).
|
@@ -10,6 +10,10 @@ module Lolcommits
|
|
10
10
|
|
11
11
|
# enabled by default (if no configuration exists)
|
12
12
|
def enabled?
|
13
|
+
# Added by Felix
|
14
|
+
# we have to access the configuration for the snapgit plugin here
|
15
|
+
config = runner.config.read_configuration if runner
|
16
|
+
return false unless config["snapgit"]["show_commit_messages"]
|
13
17
|
!configured? || super
|
14
18
|
end
|
15
19
|
|
@@ -107,6 +107,9 @@ module Lolcommits
|
|
107
107
|
print "\n4) Your Gravatar password: "
|
108
108
|
gravatar_password = STDIN.gets.strip.downcase.to_s
|
109
109
|
|
110
|
+
print "\n5) Do you want to show the commit message on the picture? This is recommended for open source projects (y/n) "
|
111
|
+
show_commit_messages = (STDIN.gets.strip == "y")
|
112
|
+
|
110
113
|
puts ''
|
111
114
|
puts '------------------------------'
|
112
115
|
puts 'Successfully set up snapgit'
|
@@ -115,7 +118,8 @@ module Lolcommits
|
|
115
118
|
'access_token' => access_token.token,
|
116
119
|
'secret' => access_token.secret,
|
117
120
|
'email' => gravatar_email,
|
118
|
-
'password' => gravatar_password
|
121
|
+
'password' => gravatar_password,
|
122
|
+
'show_commit_messages' => show_commit_messages
|
119
123
|
}
|
120
124
|
end
|
121
125
|
# rubocop:enable Metrics/MethodLength
|
@@ -125,6 +129,7 @@ module Lolcommits
|
|
125
129
|
!configuration['enabled'].nil? &&
|
126
130
|
configuration['access_token'] &&
|
127
131
|
configuration['secret'] &&
|
132
|
+
# configuration['show_commit_messages'] && # we don't do that, since it might be false
|
128
133
|
configuration['email'] &&
|
129
134
|
configuration['password']
|
130
135
|
end
|
data/lib/lolcommits/version.rb
CHANGED
data/snapgit.gemspec
CHANGED
data/vendor/logos/Snapgit.png
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snapgit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Camacho
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2016-
|
15
|
+
date: 2016-05-10 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rest-client
|