dh-proteus 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/proteus/global_commands/validate.rb +6 -2
- data/lib/proteus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db62c1bb1740497f53c9a44f65f17caa5f9f87e4ae4a9de7c01feab1b5caec23
|
4
|
+
data.tar.gz: fabed14cd58cf6072f7743525c016f8c117cd83b86265e568852ba6f766a41ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0487e5755a6407b3911004992422c40c769c9aef39aeab266bdd09a5a3c4b26d74ba5986159ff05248247595339f23545ee87891cc90ee3261c85c405742d763'
|
7
|
+
data.tar.gz: ddbb13d16550d53bafc1256408d588ffef72e691f2f863e55bfcb07c0c59f440172d588c07ea97d9148e93dde35158f369b33e017491e0e5ed0a1426e1264754
|
@@ -20,14 +20,18 @@ module Proteus
|
|
20
20
|
# case 2: no changes in root => run contexts only
|
21
21
|
status = `git --no-pager diff origin/master --stat --name-only`.split("\n")
|
22
22
|
|
23
|
-
run_full_validation = if status.map {|l| !l.include?('/') }.any? || !options[:selective]
|
23
|
+
run_full_validation = if status.map { |l| !l.include?('/') }.any? || !options[:selective]
|
24
24
|
say "Found changes in the root of the repository or --selective is not set. Running full validation.", :green
|
25
25
|
true
|
26
26
|
else
|
27
27
|
say "Running selective validation.", :green
|
28
28
|
false
|
29
29
|
end
|
30
|
-
|
30
|
+
|
31
|
+
selected_contexts = status.collect do |s|
|
32
|
+
parts = s.split("/")
|
33
|
+
parts.size > 1 ? parts[1] : nil
|
34
|
+
end.reject { |s| s.nil? }.uniq
|
31
35
|
|
32
36
|
self.class.contexts.each do |context|
|
33
37
|
unless run_full_validation
|
data/lib/proteus/version.rb
CHANGED