rubocopter 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubocopter/cli.rb +8 -0
- data/lib/rubocopter/version.rb +1 -1
- 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: cd6ae303ad7580685eaf88b470ce8d7a49624f13
|
4
|
+
data.tar.gz: a418a990f049a7977902d2cc21a5d47a27ac856e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 307690b74fa51c4ce56c713d14942b69c3902ea9f217364ea42296073db50d7bf6f06d6aad0f90bf2486587446a9836c29f96cb54c13454f3ee1be1eeb16fd71
|
7
|
+
data.tar.gz: 9353b3a582d24c8e5c3e79a6d30ba72ff9c83e486545aaebbba2084b88ec2fdeab372a1b6b422653041456c456322d2a49cdfeabebf8cf3a6dd36fd1bd9a3e5c
|
data/lib/rubocopter/cli.rb
CHANGED
@@ -53,6 +53,14 @@ class RuboCopter::CLI
|
|
53
53
|
return
|
54
54
|
end
|
55
55
|
|
56
|
+
# On master and checking against master
|
57
|
+
branch = `git rev-parse --abbrev-ref HEAD`.strip
|
58
|
+
if $CHILD_STATUS.exitstatus == 0 && branch == 'master' && @options.hash == 'master'
|
59
|
+
puts 'On master, running full rubocop sweep'
|
60
|
+
system(Shellwords.join(rubocop_options))
|
61
|
+
return
|
62
|
+
end
|
63
|
+
|
56
64
|
# Check for changes
|
57
65
|
`git rev-parse`
|
58
66
|
if $CHILD_STATUS.exitstatus == 0
|
data/lib/rubocopter/version.rb
CHANGED