travis-conditions 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/travis/conditions/v0/parser.rb +1 -1
- data/lib/travis/conditions/version.rb +1 -1
- data/spec/v0/conditions_spec.rb +6 -0
- data/spec/v1/conditions_spec.rb +6 -0
- 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: 44def53002f2ed6d40172c6769ec8c3388259093
|
4
|
+
data.tar.gz: b0d13d10372c48781e3716077720897f72b22387
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1f2495506782f4dc028359e4cd61bccecf612cc95ac251d1e27a961cee17e2f4542bd59a1b2dc79829ad4c42c8334d29fc810455ed509164fc2e41edf3c0341
|
7
|
+
data.tar.gz: a15b303d2b1adbf10fcf720ca4cbfa371e8aa92f3e06a5116ea8c988a89e2b70ef1983e4c17c9835744dd12747958e48e5086a4ae8efdfffdca8fb3912526236
|
data/spec/v0/conditions_spec.rb
CHANGED
@@ -12,4 +12,10 @@ describe Travis::Conditions::V0, 'real conditions' do
|
|
12
12
|
# it(cond) { expect { subject }.to raise_error(Travis::Conditions::ParseError) }
|
13
13
|
# end
|
14
14
|
# end
|
15
|
+
|
16
|
+
context do
|
17
|
+
let(:subject) { described_class.parse(cond) }
|
18
|
+
let(:cond) { 'commit_message !~ concat("[skip", env(TRAVIS_JOB_NAME), "]")' }
|
19
|
+
it { expect { subject }.to raise_error Travis::Conditions::ParseError }
|
20
|
+
end
|
15
21
|
end
|
data/spec/v1/conditions_spec.rb
CHANGED
@@ -41,4 +41,10 @@ describe Travis::Conditions::V1, 'real conditions' do
|
|
41
41
|
end
|
42
42
|
it { expect { described_class.parse(str) }.to_not raise_error }
|
43
43
|
end
|
44
|
+
|
45
|
+
context do
|
46
|
+
let(:subject) { described_class.parse(cond) }
|
47
|
+
let(:cond) { 'commit_message !~ concat("[skip", env(TRAVIS_JOB_NAME), "]")' }
|
48
|
+
it { expect { subject }.to_not raise_error }
|
49
|
+
end
|
44
50
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: travis-conditions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Travis CI
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parslet
|