snapgit 0.6.4 → 0.6.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc5c86c517905a33ac08b6d60f73d2c7b6cae62d
4
- data.tar.gz: d9d8caefcf751dcbee5e94b8fce19dbe8480b03b
3
+ metadata.gz: 4d0d0319e759277fc3da4be552c95cfbaf34968c
4
+ data.tar.gz: 93d3a5dc0fea368383fa26ac00e69abd9e0951c7
5
5
  SHA512:
6
- metadata.gz: 1bffccc058ae15f503b3705160fa8a4dc20d44bfc98a59dc11ca86839d7c871c9a2935bb2431bdb53fce2c65098cd22c7bf341fef28d2f84ad730d9c410bae2d
7
- data.tar.gz: 0057b7df0bb13967a8c50c076e87f2dcda62423e87b0fc04c70ea3a68399f71312b4f4efcb274bcb68ce80cfd92e08225cb8ca4d6e1e9ac9b96dbb82783db715
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 mac
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). `snapgit` is under the same license as `lolcommits`: [GNU lesser general public license](https://github.com/snapgit/snapgit/blob/master/LICENSE).
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
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Lolcommits
3
- VERSION = '0.6.4'.freeze
3
+ VERSION = '0.6.5'.freeze
4
4
  DESCRIPTION = 'The most powerful way to share your commits'.freeze
5
5
  end
@@ -1,5 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
- $LOAD_PATH.push File.expand_path('../lib', __FILE__)
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
4
  require 'lolcommits/version'
4
5
 
5
6
  Gem::Specification.new do |s|
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
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-03-30 00:00:00.000000000 Z
15
+ date: 2016-05-10 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rest-client