dorian-commit 0.4.3 → 0.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/commit +2 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8277450427f579a722a664da512e6cee4b3a31fa00699c6506a6b5ec53271115
4
- data.tar.gz: '08f33e3dd2936e5c881e5cb21ffcf7699104b5a68cbbce8b1c9940a251bba861'
3
+ metadata.gz: eb42f850e1f1489f8ec86917d590be0c9c44d79c77da416e3f163f78179654f7
4
+ data.tar.gz: d7827274748c78005fba5c43ebd75cc8a029dd5e38c6fac0e481daffee590ff1
5
5
  SHA512:
6
- metadata.gz: f30d67a1bb421eab3e523d8bc58dba9691ec53cbcf0420b470acf28dc17cc05b2edef192e45510cf96ae524fd830c67833aa3530f521371f28c1f734ce3c55aa
7
- data.tar.gz: c84cf08482ef6e85183f1063933f9a4c2c38a98678bde8b736f8185dd9bde4494d28c2a3776f9789846aa94006b49b9b983a57d1ebd9c35a11b1f6830e63b59d
6
+ metadata.gz: 69d4bd2e6c98bb3f201eb0fa7631c4595a52a08f8e79e607b5108c34a8d726be9c1d1e8cfa6b556ab94e86ae7c75bb9c957ff5ade8668b684a43b045312fac53
7
+ data.tar.gz: '09655ba89547e1e5c4b0045eaddc0ede62d850bf7d5b098a4efa54237fd16dcbe2a9bcdee3c18ad2b88b7798d9b6b69d2ca84976e6d0cde200ba698eaa124f94'
data/bin/commit CHANGED
@@ -36,6 +36,8 @@ content_3 = `git status`
36
36
  content_4 = parsed.arguments.join(" ")
37
37
  content_4 += parsed.files.map { |file| File.read(file) }.join("\n")
38
38
 
39
+ abort "no staged files" if content_2.empty?
40
+
39
41
  if content_4.empty?
40
42
  messages_4 = []
41
43
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian-commit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Marié