emoji-commit 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0cbbb4763d657492458511f11ebc9f608ec52438
4
- data.tar.gz: 8fff55d7184440e58cf841df6b26bd30d63a054a
3
+ metadata.gz: 5770b8641d5fad72336d762786bfce51e6430a27
4
+ data.tar.gz: dc4870f46fe7ba1488c8288bcb49fd539b2acc79
5
5
  SHA512:
6
- metadata.gz: ac90d97e9ab97fc19072d50c85e85fb0299a53316ce5ae5f537e4d0c146336143af4ce12c9afa4688a383fc89900219a0edb7e9dccc32c61698bdc4dcae4c15d
7
- data.tar.gz: 4902cb2a0195fe88f4292e7db43ff1aadfe273b2864b0cae3630635ee048590055a5d1d7eb0c7643b3610450f979010f4f19695757ffdcddff172edcba8afeb2
6
+ metadata.gz: 807b4cb629818154c3c308a397407036bd7865c4d3369e4e6ac9a6eaf7011298c2992c74b21d0ae55c47cd9bbbef795e1f1316cddcc408fbc52b1177d436afdf
7
+ data.tar.gz: acfd102d86e5751384474a5999644440d25549b2c10c5525487b30c30e3a761891ee44c8c8388874ad9c1ec7030482f8e7ba0013ab4ce0c118a427599cb43060
@@ -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 and Git commit messages with a random Git-friendly emoji.)
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
 
@@ -1,3 +1,3 @@
1
1
  module EmojiCommit
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -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.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 and Git commit messages with a random Git-friendly emoji.
69
+ description: Prefixes Git commit messages with a random Git-friendly emoji.
70
70
  email:
71
71
  - claire.parker87@gmail.com
72
72
  executables: