travis 1.8.3.travis.745.4 → 1.8.3.travis.773.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/travis/cli/encrypt.rb +7 -0
- data/spec/cli/encrypt_spec.rb +6 -0
- data/travis.gemspec +2 -0
- metadata +30 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDhjNGM0ZTQyOTBjMGVkMzQ1OTdkZWJjNTkyNDBiZGI3ZjVkMGU0OQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjE1YTI3NzEyNDE3ZGM4MGI1YzJkYzI3YTdjMjhlMzBiMDEyNjgzZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWViZDczMjYwNjA0NmZjZTFlY2NkNDc5ZGUwNzBiMmU4NjVlNmQ2MGRhNDEx
|
10
|
+
ZGY3YWMzNGUxODBkNDUyNWUwZGRiMWFiMDEyNjVmMjc3OGU5MWRlYWM1NzFi
|
11
|
+
ZWEzMjJmNTU1MzU0NTY5NjcwNDE5ZmVjZWE0NTdkOGVhNGU2ZDU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDQ4OWM2NThkNzk2YTA4N2VhMjRiZTVjM2RiOTk0ZjFlMDJmZDJhMTAwMTNm
|
14
|
+
MGE1NjllMWQxNTU1MDc2N2ZjNWZlMjczMmQwM2U4ZmVhOWUyYThlMTc0ZjIw
|
15
|
+
NjcxODAyNTc0MzM3YWQ2Mjk4MmNmYzNmZGVkYmM4MTQwYmU0MzU=
|
data/lib/travis/cli/encrypt.rb
CHANGED
@@ -36,6 +36,7 @@ module Travis
|
|
36
36
|
end
|
37
37
|
|
38
38
|
data = split? ? data.split("\n") : [data.strip]
|
39
|
+
warn_env_assignments(data)
|
39
40
|
encrypted = data.map { |data| repository.encrypt(data) }
|
40
41
|
|
41
42
|
if config_key
|
@@ -96,6 +97,12 @@ module Travis
|
|
96
97
|
|
97
98
|
traverse_config(hash[key], *rest)
|
98
99
|
end
|
100
|
+
|
101
|
+
def warn_env_assignments(data)
|
102
|
+
if /env/.match(config_key) && data.find { |d| /=/.match(d).nil? }
|
103
|
+
warn "Environment variables in #{config_key} should be formatted as FOO=bar"
|
104
|
+
end
|
105
|
+
end
|
99
106
|
end
|
100
107
|
end
|
101
108
|
end
|
data/spec/cli/encrypt_spec.rb
CHANGED
@@ -40,4 +40,10 @@ describe Travis::CLI::Encrypt do
|
|
40
40
|
run_cli("encrypt", "foo=foo/bar").should be_success
|
41
41
|
stderr.should_not match(/WARNING/)
|
42
42
|
end
|
43
|
+
|
44
|
+
example "travis encrypt FOO bar -a" do
|
45
|
+
described_class.any_instance.stub(:save_travis_config)
|
46
|
+
run_cli("encrypt", "FOO", "bar", "-a").should be_success
|
47
|
+
stderr.should match(/Environment variables in env\.global should be formatted as FOO=bar/)
|
48
|
+
end
|
43
49
|
end
|
data/travis.gemspec
CHANGED
@@ -306,9 +306,11 @@ Gem::Specification.new do |s|
|
|
306
306
|
s.add_dependency "faraday_middleware", "~> 0.9", ">= 0.9.1"
|
307
307
|
s.add_dependency "highline", "~> 1.6"
|
308
308
|
s.add_dependency "backports"
|
309
|
+
s.add_dependency "net-http-persistent", "~> 2.9" if RUBY_VERSION < "2.1"
|
309
310
|
s.add_dependency "gh", "~> 0.13"
|
310
311
|
s.add_dependency "launchy", "~> 2.1"
|
311
312
|
s.add_dependency "typhoeus", "~> 0.6", ">= 0.6.8"
|
313
|
+
s.add_dependency "json", "~> 1.8" if RUBY_VERSION < "2.0"
|
312
314
|
s.add_dependency "pusher-client", "~> 0.4"
|
313
315
|
s.add_development_dependency "rspec", "~> 2.12"
|
314
316
|
s.add_development_dependency "sinatra", "~> 1.3"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: travis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.3.travis.
|
4
|
+
version: 1.8.3.travis.773.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Haase
|
@@ -56,7 +56,7 @@ authors:
|
|
56
56
|
autorequire:
|
57
57
|
bindir: bin
|
58
58
|
cert_chain: []
|
59
|
-
date: 2016-
|
59
|
+
date: 2016-10-13 00:00:00.000000000 Z
|
60
60
|
dependencies:
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: faraday
|
@@ -120,6 +120,20 @@ dependencies:
|
|
120
120
|
- - ! '>='
|
121
121
|
- !ruby/object:Gem::Version
|
122
122
|
version: '0'
|
123
|
+
- !ruby/object:Gem::Dependency
|
124
|
+
name: net-http-persistent
|
125
|
+
requirement: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - ~>
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '2.9'
|
130
|
+
type: :runtime
|
131
|
+
prerelease: false
|
132
|
+
version_requirements: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - ~>
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '2.9'
|
123
137
|
- !ruby/object:Gem::Dependency
|
124
138
|
name: gh
|
125
139
|
requirement: !ruby/object:Gem::Requirement
|
@@ -168,6 +182,20 @@ dependencies:
|
|
168
182
|
- - ! '>='
|
169
183
|
- !ruby/object:Gem::Version
|
170
184
|
version: 0.6.8
|
185
|
+
- !ruby/object:Gem::Dependency
|
186
|
+
name: json
|
187
|
+
requirement: !ruby/object:Gem::Requirement
|
188
|
+
requirements:
|
189
|
+
- - ~>
|
190
|
+
- !ruby/object:Gem::Version
|
191
|
+
version: '1.8'
|
192
|
+
type: :runtime
|
193
|
+
prerelease: false
|
194
|
+
version_requirements: !ruby/object:Gem::Requirement
|
195
|
+
requirements:
|
196
|
+
- - ~>
|
197
|
+
- !ruby/object:Gem::Version
|
198
|
+
version: '1.8'
|
171
199
|
- !ruby/object:Gem::Dependency
|
172
200
|
name: pusher-client
|
173
201
|
requirement: !ruby/object:Gem::Requirement
|