emoji-commit 1.0.0 → 1.0.1
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/emoji-commit.gemspec +1 -1
- data/lib/emoji-commit-version.rb +1 -1
- data/lib/file-tasks.rb +5 -5
- 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: 5770b8641d5fad72336d762786bfce51e6430a27
|
|
4
|
+
data.tar.gz: dc4870f46fe7ba1488c8288bcb49fd539b2acc79
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 807b4cb629818154c3c308a397407036bd7865c4d3369e4e6ac9a6eaf7011298c2992c74b21d0ae55c47cd9bbbef795e1f1316cddcc408fbc52b1177d436afdf
|
|
7
|
+
data.tar.gz: acfd102d86e5751384474a5999644440d25549b2c10c5525487b30c30e3a761891ee44c8c8388874ad9c1ec7030482f8e7ba0013ab4ce0c118a427599cb43060
|
data/emoji-commit.gemspec
CHANGED
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
|
10
10
|
spec.email = ['claire.parker87@gmail.com']
|
|
11
11
|
|
|
12
12
|
spec.summary = %q(Adds an emoji to your commit message)
|
|
13
|
-
spec.description = %q(Prefixes
|
|
13
|
+
spec.description = %q(Prefixes Git commit messages with a random Git-friendly emoji.)
|
|
14
14
|
spec.homepage = 'https://github.com/claireparker/emoji-commit'
|
|
15
15
|
spec.license = 'MIT'
|
|
16
16
|
|
data/lib/emoji-commit-version.rb
CHANGED
data/lib/file-tasks.rb
CHANGED
|
@@ -7,6 +7,11 @@ module EmojiCommit
|
|
|
7
7
|
desc 'install', 'installs commit hook scripts'
|
|
8
8
|
|
|
9
9
|
def install
|
|
10
|
+
unless Dir.exist?('.git')
|
|
11
|
+
puts 'Git has not been initialised in this directory. Bye'
|
|
12
|
+
exit
|
|
13
|
+
end
|
|
14
|
+
|
|
10
15
|
puts 'You are about to overwrite any existing Git commit hook with the emoji script'
|
|
11
16
|
puts 'Is that OK? (y|n)'
|
|
12
17
|
answer = STDIN.gets.strip.downcase
|
|
@@ -18,11 +23,6 @@ module EmojiCommit
|
|
|
18
23
|
exit
|
|
19
24
|
end
|
|
20
25
|
|
|
21
|
-
unless Dir.exist?('.git')
|
|
22
|
-
puts 'Git has not been initialised in this directory. Bye'
|
|
23
|
-
exit
|
|
24
|
-
end
|
|
25
|
-
|
|
26
26
|
if File.exist?('.git/hooks/commit-msg') then FileUtils.rm('.git/hooks/commit-msg') end
|
|
27
27
|
if File.exist?('.git/hooks/commit-msg.sample') then FileUtils.rm('.git/hooks/commit-msg.sample') end
|
|
28
28
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: emoji-commit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Claire Parker
|
|
@@ -66,7 +66,7 @@ dependencies:
|
|
|
66
66
|
- - '>='
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0'
|
|
69
|
-
description: Prefixes
|
|
69
|
+
description: Prefixes Git commit messages with a random Git-friendly emoji.
|
|
70
70
|
email:
|
|
71
71
|
- claire.parker87@gmail.com
|
|
72
72
|
executables:
|