vx-service_connector 0.4.8 → 0.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vx/service_connector/model.rb +4 -0
- data/lib/vx/service_connector/version.rb +1 -1
- data/spec/lib/model_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 827cb7afc37272c9cd1a8f92e71a23aa0aa4a6e7
|
4
|
+
data.tar.gz: 6ebc1709d5071701830e5a5214d2e32fe2696acb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e61f86d2d524d32df4bd1f14129f4fba276125513ae02306da5c8ea1130679fd6442b070ca4c18a9c8090f707836ba98d5447c65c75e372de4d9240244d5858f
|
7
|
+
data.tar.gz: bcbe56b9a6605ea514b5006f1172cf5e0d4ac8b322c506ceb1e4c589b3a8a6a24335a83fa5de3b495ebe2cfa982eed56055ec6d352df40f8d63573872502cb6b
|
@@ -48,6 +48,10 @@ module Vx
|
|
48
48
|
branch_re = restriction[:branch]
|
49
49
|
pr = restriction[:pull_request]
|
50
50
|
|
51
|
+
if !branch_re && internal_pull_request?
|
52
|
+
return false
|
53
|
+
end
|
54
|
+
|
51
55
|
if branch_re && Regexp.new(branch_re).match(branch)
|
52
56
|
# if branch name matches
|
53
57
|
# we're already building it,
|
data/spec/lib/model_spec.rb
CHANGED
@@ -66,10 +66,10 @@ describe "(models)" do
|
|
66
66
|
params.merge(foreign_pull_request?: true)
|
67
67
|
).to be_perform(pull_request: true)
|
68
68
|
|
69
|
-
#
|
69
|
+
# deny, we're building all branches
|
70
70
|
instance(
|
71
71
|
params.merge(internal_pull_request?: true)
|
72
|
-
).
|
72
|
+
).not_to be_perform(pull_request: true)
|
73
73
|
|
74
74
|
instance(
|
75
75
|
params.merge(
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vx-service_connector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Galinsky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|