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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3bc6a731bfafa1b7dc6d09d2755a25c9bc848d29
4
- data.tar.gz: 5f7881e330772635665700529c0f948d2f2f0c42
3
+ metadata.gz: 827cb7afc37272c9cd1a8f92e71a23aa0aa4a6e7
4
+ data.tar.gz: 6ebc1709d5071701830e5a5214d2e32fe2696acb
5
5
  SHA512:
6
- metadata.gz: 14070ff3e02e5041cddc243c74a15263cae466dad0ee645ff2b2102e2bb087b4db2e74acf7c6f77e300d31ea2c217b0ce2b38d08ecfdfa0b5f13350c74422281
7
- data.tar.gz: e94e996542f12a2cab47e0bf7b56586f880a2a2ed97be8364379e91bcdf8ed0f5f87a657af2f2d6d5ad541bd93e67a215fd9e02e6201722c8beeba1ff964f359
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,
@@ -1,5 +1,5 @@
1
1
  module Vx
2
2
  module ServiceConnector
3
- VERSION = "0.4.8"
3
+ VERSION = "0.4.9"
4
4
  end
5
5
  end
@@ -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
- # pass, pr allowed
69
+ # deny, we're building all branches
70
70
  instance(
71
71
  params.merge(internal_pull_request?: true)
72
- ).to be_perform(pull_request: true)
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.8
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-15 00:00:00.000000000 Z
11
+ date: 2015-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit