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.
- checksums.yaml +4 -4
- data/lib/fashion-police.rb +6 -6
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69aee17571a54c11ff77280b89e8406a81254482
|
4
|
+
data.tar.gz: 949fe6bfe3a0300b8fdf642cbfb5a46f466019d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 027c4f5c35d091e8fb644aa1b4e03b0176205f21fadaeedd1386e859668b35e89b4cbe6f9c6b8d26c6084b50d5bddfab3c78496d9d60a1965fa146a2c3d462de
|
7
|
+
data.tar.gz: f45d73029cb1e62e62f76793dc799cca48afe49a203b1658aff24d7d72fb1f34ae633ec0b34f4c66d3a0cf21e91b0ee3ce84d1a767d64002e4c91ee1f553480b
|
data/lib/fashion-police.rb
CHANGED
@@ -40,12 +40,12 @@ class FashionPolice
|
|
40
40
|
|
41
41
|
class SpacesAroundElses
|
42
42
|
def test(string)
|
43
|
-
return true if string.match(
|
44
|
-
return false if string.match(
|
45
|
-
return false if string.match(
|
46
|
-
return false if string.match(
|
47
|
-
return false if string.match(
|
48
|
-
return false if string.match(
|
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.
|
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 '
|
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:
|