git-lint 1.1.0 → 1.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 217b7749f87f9d937c13906b0dc6433337e3bab50dce59ca7e8c83461bf36a76
4
- data.tar.gz: 92c9afbc9da13b851bc167e371cabe36cf4b462694468c01d16c874b7f56bee0
3
+ metadata.gz: ebbb3f67f04832ff30e770db178902f8d271af160d713ece50c188601d969160
4
+ data.tar.gz: '0285bce8629da448fb16fcf7fbe69ac0d3d3afcbfb3f10f140c3c35744841cfe'
5
5
  SHA512:
6
- metadata.gz: 7a43fffa66b31e106709d7da90c38c1fe291ccf2546d07b110f820c57d9ff5b38fd689e464ec2868644068ee07ef0e39506cb78c948c3f1f0291cb4686c64190
7
- data.tar.gz: aeadbaf169dcb7f21df18c4737a405df4cb1e8ebdec17dc8565ce94906421c042b591eaa16ae999832611fbb34bfabe038fe826ba439e443df347a47a2c211c4
6
+ metadata.gz: 52130792fd09ddb40873b3a3e997ffce167e263c12d01ef07cb14f8818e442776a0f0451fdf02eec478db05b4b034adf7bba22a7f72b971b2570d5b1d27ba331
7
+ data.tar.gz: 35969feb54089337530739b62e8edb23ab35c68d2ea7ea8cf348fa439a0f864c864157d0f0d0bc343c11e32546907dd89d5b64b6047cc4056fbb82e19b6a2fcf
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -150,7 +150,7 @@ additional liability.
150
150
 
151
151
  END OF TERMS AND CONDITIONS
152
152
 
153
- Copyright link:https://www.alchemists.io[Alchemists].
153
+ Copyright 2020 link:https://www.alchemists.io/team/brooke_kuhlmann[Brooke Kuhlmann].
154
154
 
155
155
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
156
156
  compliance with the License. You may obtain a link:https://www.apache.org/licenses/LICENSE-2.0[copy]
@@ -45,8 +45,6 @@ image::https://www.alchemists.io/images/screencasts/git_lint/cover.svg[Screencas
45
45
 
46
46
  == Setup
47
47
 
48
- === Production
49
-
50
48
  To install, run:
51
49
 
52
50
  [source,bash]
@@ -54,24 +52,6 @@ To install, run:
54
52
  gem install git-lint
55
53
  ----
56
54
 
57
- === Development
58
-
59
- To contribute, run:
60
-
61
- [source,bash]
62
- ----
63
- git clone https://github.com/bkuhlmann/git-lint.git
64
- cd git-lint
65
- bin/setup
66
- ----
67
-
68
- You can also use the IRB console for direct access to all objects:
69
-
70
- [source,bash]
71
- ----
72
- bin/console
73
- ----
74
-
75
55
  == Usage
76
56
 
77
57
  === Command Line Interface (CLI)
@@ -1046,6 +1026,24 @@ image::https://www.alchemists.io/images/projects/git-lint/screenshots/github-set
1046
1026
 
1047
1027
  Applying the above changes will help maintain a clean Git history.
1048
1028
 
1029
+ == Development
1030
+
1031
+ To contribute, run:
1032
+
1033
+ [source,bash]
1034
+ ----
1035
+ git clone https://github.com/bkuhlmann/git-lint.git
1036
+ cd git-lint
1037
+ bin/setup
1038
+ ----
1039
+
1040
+ You can also use the IRB console for direct access to all objects:
1041
+
1042
+ [source,bash]
1043
+ ----
1044
+ bin/console
1045
+ ----
1046
+
1049
1047
  == Tests
1050
1048
 
1051
1049
  To test, run:
@@ -32,7 +32,11 @@ module Git
32
32
  end
33
33
 
34
34
  def invalid_line? line
35
- line.match?(/\A\s*#{Regexp.union filter_list.to_regexp}(?!\s).+\Z/)
35
+ line.match?(/\A\s*#{pattern}(?!(#{pattern}|\s)).+\Z/)
36
+ end
37
+
38
+ def pattern
39
+ Regexp.union filter_list.to_regexp
36
40
  end
37
41
  end
38
42
  end
@@ -14,9 +14,10 @@ module Git
14
14
  def valid?
15
15
  raw_body = commit.raw_body
16
16
  subject, body = raw_body.split "\n", 2
17
+
17
18
  return true if !String(subject).empty? && String(body).strip.empty?
18
19
 
19
- raw_body.match?(/\A.+\n\n.+/)
20
+ raw_body.match?(/\A.+(\n\n|\#).+/m)
20
21
  end
21
22
 
22
23
  def issue
@@ -6,7 +6,7 @@ module Git
6
6
  module Identity
7
7
  NAME = "git-lint"
8
8
  LABEL = "Git Lint"
9
- VERSION = "1.1.0"
9
+ VERSION = "1.1.1"
10
10
  VERSION_LABEL = "#{LABEL} #{VERSION}"
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -28,7 +28,7 @@ cert_chain:
28
28
  2XV8FRa7/JimI07sPLC13eLY3xd/aYTi85Z782KIA4j0G8XEEWAX0ouBhlXPocZv
29
29
  QWc=
30
30
  -----END CERTIFICATE-----
31
- date: 2020-10-13 00:00:00.000000000 Z
31
+ date: 2020-10-18 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: pastel
metadata.gz.sig CHANGED
Binary file