wielder_of_anor 0.3.0 → 0.3.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: 67aeb5b09bfba58a5a26a768a35d35cb9bae1cd6
4
- data.tar.gz: 6808e6fa94ec66058aceacbbae676c4f0a1e46a7
3
+ metadata.gz: 9344640c1230286e66e34f9c10fb34ea69e15ee7
4
+ data.tar.gz: 58cadbc5c77fc8842799b66fd4d4fb70201d5efe
5
5
  SHA512:
6
- metadata.gz: e2e49996bf345071b50f14226d38b80b50c996817afc35ad1b23969c142c35a9e60de09ab9f94d0609a12876ee9118b862a0ed3ad85f7c59dc9d7555d7133548
7
- data.tar.gz: b65fa2f77f4f67e7a61f3beecbda5a0c1e90dc54c16754ded3739eddf69265981bafcdad1b3757df7f9f396a5a7960907d6843d56bb58bd75e4a9bd755a68ed1
6
+ metadata.gz: 6221d7e046bb383f184b4bb71c1545299591407200dd3294f2d8087843a892dc00003b6a13b296b754de32155c48a59b4d615d741984b78a98e7fa4d27662a29
7
+ data.tar.gz: 601a9d84228c74847a2e939eaee47a04a0ab246fd04264d42306289a6856bb2fcc21c0521458c61876523c30b3c95fd12bc80bf69b29934c2fa63d3a4a9fd18f
@@ -1,3 +1,3 @@
1
1
  module WielderOfAnorVersion
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -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
- # If we're forcing the commit, don't bother checking for forbidden words.
255
- unless @force_commit
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
- lines_pretty_print Rainbow('No files have been added. Please use the git add command to add files to your '\
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
- single_space
261
+ single_space
265
262
 
266
- abort
267
- end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wielder_of_anor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Sellek