travis-conditions 1.0.7 → 1.0.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea032c74717ced7cdcdbf1f9fed09af0eafb65e0
4
- data.tar.gz: 81e2e8d949278dda1bee0673293fa349cc344f9b
3
+ metadata.gz: 44def53002f2ed6d40172c6769ec8c3388259093
4
+ data.tar.gz: b0d13d10372c48781e3716077720897f72b22387
5
5
  SHA512:
6
- metadata.gz: ea8155f5a42a6e5c6783d7c5b62c8833d4ccecd06e3457c1545ae36f4c89e54bf0df324dac264b61b763dc5516e361f49c18b59e7a28d7e56943f1aba7f9c899
7
- data.tar.gz: 89cf722d13984d39c98c56b322346b2dfb62fc03514d39b77712699a24527a648a6406bdbd2e8ec42389e450467dff358168a64ce96c9001050bd916ffc7cfe7
6
+ metadata.gz: c1f2495506782f4dc028359e4cd61bccecf612cc95ac251d1e27a961cee17e2f4542bd59a1b2dc79829ad4c42c8334d29fc810455ed509164fc2e41edf3c0341
7
+ data.tar.gz: a15b303d2b1adbf10fcf720ca4cbfa371e8aa92f3e06a5116ea8c988a89e2b70ef1983e4c17c9835744dd12747958e48e5086a4ae8efdfffdca8fb3912526236
@@ -130,7 +130,7 @@ module Travis
130
130
  end
131
131
 
132
132
  def stri(str)
133
- str(str) | str(str.upcase)
133
+ str(str.to_s) | str(str.to_s.upcase)
134
134
  end
135
135
 
136
136
  def parens?(node)
@@ -1,5 +1,5 @@
1
1
  module Travis
2
2
  module Conditions
3
- VERSION = '1.0.7'
3
+ VERSION = '1.0.8'
4
4
  end
5
5
  end
@@ -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
@@ -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.7
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: 2018-08-23 00:00:00.000000000 Z
11
+ date: 2019-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parslet