vx-service_connector 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/vx/service_connector/model.rb +2 -2
- data/lib/vx/service_connector/version.rb +1 -1
- data/spec/lib/model_spec.rb +6 -4
- 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: a2bf499ba3d012a8c9425d284de0a54fff166d80
|
4
|
+
data.tar.gz: ec98be397359a196c62cefe6e9dc9c60081c3184
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5c486b6a8dcefad25a97fdc9574ce2d4a8fdd7a70d59b9d0e9384c97016913329903f830b5eb2064fd03fa8906ded904824c56eb5c475cf8466f1a35f38d9bd
|
7
|
+
data.tar.gz: e607d30bbe0196f1331b9234576454755f9d39954ac8a47d3bcc08d7d6ac24c4998df078d72ec2b60a3538785dae88783cb9618398d737c8ee8f5e8cfb20c689
|
@@ -2,7 +2,7 @@ module Vx
|
|
2
2
|
module ServiceConnector
|
3
3
|
module Model
|
4
4
|
|
5
|
-
PAYLOAD_IGNORE_RE =
|
5
|
+
PAYLOAD_IGNORE_RE = /\[(ci skip|skip ci)\]/i
|
6
6
|
|
7
7
|
Repo = Struct.new(
|
8
8
|
:id,
|
@@ -65,7 +65,7 @@ module Vx
|
|
65
65
|
end
|
66
66
|
|
67
67
|
def ignore?
|
68
|
-
!!(skip || message.to_s =~
|
68
|
+
!!(skip || message.to_s =~ PAYLOAD_IGNORE_RE)
|
69
69
|
end
|
70
70
|
|
71
71
|
def tag?
|
data/spec/lib/model_spec.rb
CHANGED
@@ -18,10 +18,12 @@ describe "(models)" do
|
|
18
18
|
payload = described_class.from_hash(params)
|
19
19
|
expect(payload).to_not be_perform
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
["ci skip", 'Ci Skip', 'skip ci'].each do |m|
|
22
|
+
params[:skip] = false
|
23
|
+
params[:message] = "message [#{m}]"
|
24
|
+
payload = described_class.from_hash(params)
|
25
|
+
expect(payload).to_not be_perform
|
26
|
+
end
|
25
27
|
end
|
26
28
|
|
27
29
|
context "perform?" do
|
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.4
|
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-03-
|
11
|
+
date: 2015-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|