dorian-commit 0.4.3 → 1.0.0

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 +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8277450427f579a722a664da512e6cee4b3a31fa00699c6506a6b5ec53271115
4
- data.tar.gz: '08f33e3dd2936e5c881e5cb21ffcf7699104b5a68cbbce8b1c9940a251bba861'
3
+ metadata.gz: bb7eea33291b322da0856645ec3841fc51490ca72d821c48bbf1a29aea1d0e4e
4
+ data.tar.gz: 047d11c7de11e00d5dd654b9d18bd660bbdc684c29e8bd3cdc7fc6abdfdac953
5
5
  SHA512:
6
- metadata.gz: f30d67a1bb421eab3e523d8bc58dba9691ec53cbcf0420b470acf28dc17cc05b2edef192e45510cf96ae524fd830c67833aa3530f521371f28c1f734ce3c55aa
7
- data.tar.gz: c84cf08482ef6e85183f1063933f9a4c2c38a98678bde8b736f8185dd9bde4494d28c2a3776f9789846aa94006b49b9b983a57d1ebd9c35a11b1f6830e63b59d
6
+ metadata.gz: a9d82f215a19897a242e50f2ea72347e6bdc623e6a9ad7b324678d2896881f87ef62792111df7453b324cf65394eec170e3327e6bf0d56eaa6e6e975364e9f84
7
+ data.tar.gz: 9cdf35126c7b589ab989bf23aa20367ef31c928bfdfc2c24e69286c6953d563ae152f06fd409a22962ac6b9fa26355537de1e71b4d7e2aef3fce1397d89a9600
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,14 +1,14 @@
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: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Marié
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-22 00:00:00.000000000 Z
11
+ date: 2024-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: git