vx-service_connector 0.4.3 → 0.4.4

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: 9e1f8f01e55e06e69ad75a75fbb68f1db633b07c
4
- data.tar.gz: da440437b5abf230f1dfb2e9a808bd78ade69e1b
3
+ metadata.gz: a2bf499ba3d012a8c9425d284de0a54fff166d80
4
+ data.tar.gz: ec98be397359a196c62cefe6e9dc9c60081c3184
5
5
  SHA512:
6
- metadata.gz: 1b3b05ffb824250b8a1a6909da28af8c603a3e42cb0778070b132b9e41f4de13c912d7a2ab49361f048145f245fbdee1f1ee444cc432f2326d18e32576c17ea4
7
- data.tar.gz: af9d28ab4c8ea14b32a2cb3cca34097accaa849c24b7bbfbcc1814442db1e1df94476c6792e86b50b5cf9fd83ec42d31589db2c18be26f5f092a7c881f1ca5ae
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 = Regexp.escape("[ci skip]")
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 =~ /#{PAYLOAD_IGNORE_RE}/)
68
+ !!(skip || message.to_s =~ PAYLOAD_IGNORE_RE)
69
69
  end
70
70
 
71
71
  def tag?
@@ -1,5 +1,5 @@
1
1
  module Vx
2
2
  module ServiceConnector
3
- VERSION = "0.4.3"
3
+ VERSION = "0.4.4"
4
4
  end
5
5
  end
@@ -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
- params[:skip] = false
22
- params[:message] = 'message [ci skip]'
23
- payload = described_class.from_hash(params)
24
- expect(payload).to_not be_perform
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.3
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-10 00:00:00.000000000 Z
11
+ date: 2015-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit