fashion-police 0.0.1 → 0.0.2

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/lib/fashion-police.rb +6 -6
  3. metadata +5 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ad2b24bff44bedebe1b4795721c4e1778aa4c31
4
- data.tar.gz: fad809fe3c2e068796c67e2b44901a2a43e9b1c3
3
+ metadata.gz: 69aee17571a54c11ff77280b89e8406a81254482
4
+ data.tar.gz: 949fe6bfe3a0300b8fdf642cbfb5a46f466019d3
5
5
  SHA512:
6
- metadata.gz: 31d53ece6148dfcfd3e610dcac377956ea9abf2deb1d858455f61b4d62421b32985ae22734438c2da421b425765c8c746809254388571e7772448571b871ccb9
7
- data.tar.gz: ea4e644bffc0ca75594eae973bb03855cc15acc00c23ba0aa04f8cfd43eb5041b3af6a40739f6a946759a4ef03efc31793e062d03cc572f6588b7db449f305ed
6
+ metadata.gz: 027c4f5c35d091e8fb644aa1b4e03b0176205f21fadaeedd1386e859668b35e89b4cbe6f9c6b8d26c6084b50d5bddfab3c78496d9d60a1965fa146a2c3d462de
7
+ data.tar.gz: f45d73029cb1e62e62f76793dc799cca48afe49a203b1658aff24d7d72fb1f34ae633ec0b34f4c66d3a0cf21e91b0ee3ce84d1a767d64002e4c91ee1f553480b
@@ -40,12 +40,12 @@ class FashionPolice
40
40
 
41
41
  class SpacesAroundElses
42
42
  def test(string)
43
- return true if string.match(/} else {/)
44
- return false if string.match(/}else{/)
45
- return false if string.match(/} +else{/)
46
- return false if string.match(/}else +{/)
47
- return false if string.match(/} +else ?{/)
48
- return false if string.match(/} ?else +{/)
43
+ return true if string.match(/\} else \{/)
44
+ return false if string.match(/\}else\{/)
45
+ return false if string.match(/\} +else\{/)
46
+ return false if string.match(/\}else +\{/)
47
+ return false if string.match(/\} +else ?\{/)
48
+ return false if string.match(/\} ?else +\{/)
49
49
  return true
50
50
  end
51
51
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fashion-police
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giles Bowkett
@@ -57,12 +57,13 @@ licenses:
57
57
  metadata: {}
58
58
  post_install_message: |2+
59
59
 
60
- =====================================================================
60
+ ======================================================================
61
61
  To enforce JS code style:
62
62
  rm $(git rev-parse --git-dir)/hooks/pre-commit.sample
63
- echo 'fashion-police' > $(git rev-parse --git-dir)/hooks/pre-commit
63
+ echo '#!/bin/bash' > $(git rev-parse --git-dir)/hooks/pre-commit
64
+ echo 'fashion-police' >> $(git rev-parse --git-dir)/hooks/pre-commit
64
65
  chmod 0755 $(git rev-parse --git-dir)/hooks/pre-commit
65
- =====================================================================
66
+ ======================================================================
66
67
 
67
68
  rdoc_options: []
68
69
  require_paths: