wielder_of_anor 0.3.0 → 0.3.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/lib/wielder_of_anor/version.rb +1 -1
- data/lib/wielder_of_anor.rb +9 -10
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9344640c1230286e66e34f9c10fb34ea69e15ee7
|
|
4
|
+
data.tar.gz: 58cadbc5c77fc8842799b66fd4d4fb70201d5efe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6221d7e046bb383f184b4bb71c1545299591407200dd3294f2d8087843a892dc00003b6a13b296b754de32155c48a59b4d615d741984b78a98e7fa4d27662a29
|
|
7
|
+
data.tar.gz: 601a9d84228c74847a2e939eaee47a04a0ab246fd04264d42306289a6856bb2fcc21c0521458c61876523c30b3c95fd12bc80bf69b29934c2fa63d3a4a9fd18f
|
data/lib/wielder_of_anor.rb
CHANGED
|
@@ -250,22 +250,21 @@ module WielderOfAnor
|
|
|
250
250
|
|
|
251
251
|
def wielder_of_anor
|
|
252
252
|
found_forbidden = false
|
|
253
|
+
count = File.foreach(@files_changed_file).inject(0) {|c, line| c+1}
|
|
253
254
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
count = File.foreach(@files_changed_file).inject(0) {|c, line| c+1}
|
|
257
|
-
|
|
258
|
-
if count == 0
|
|
259
|
-
single_space
|
|
255
|
+
if count == 0
|
|
256
|
+
single_space
|
|
260
257
|
|
|
261
|
-
|
|
258
|
+
lines_pretty_print Rainbow('No files have been added. Please use the git add command to add files to your '\
|
|
262
259
|
'commit.').red
|
|
263
260
|
|
|
264
|
-
|
|
261
|
+
single_space
|
|
265
262
|
|
|
266
|
-
|
|
267
|
-
|
|
263
|
+
abort
|
|
264
|
+
end
|
|
268
265
|
|
|
266
|
+
# If we're forcing the commit, don't bother checking for forbidden words.
|
|
267
|
+
unless @force_commit
|
|
269
268
|
single_space
|
|
270
269
|
|
|
271
270
|
print_header_footer
|