travis 1.7.2.travis.635.5 → 1.7.2.travis.636.5
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/command.rb +6 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDNhYzliNjk3M2IxMjhjMTBlNTM0NTA0MDc4ZTc2ODFiNjAyYmEzOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTkyOGYzYjk1Yjg1ZjM3NWUwNTZiMDQyNDg2Y2E2NmY0MTYwNzNlOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTk4MmFlZjY3MDJlNTczMmU4NWZmOWE5OGM0Yjg2ODQyZDk2OWU5MmQ1YWMw
|
10
|
+
MzYyZDM0MTA2ZTM5ZjlmNThlMWUxZmYxMDY2YmUzYWY3NjNlMTYxZjNkNGUx
|
11
|
+
ZGNjMTc4YzU2MGVhN2FlZDNjODAyYmI0MTczNmY5NzYyNzk1N2I=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Nzc0ODQ2YmE0NWFiNjVmYzQ0YTc1ZTdlYmQxZTRjZTFkZTY3ZWVjMWM5NGNm
|
14
|
+
NzllZjZiYmY3ZWRkYzM1ZTRkY2YyNmIzNmJjYWI4NjA1ZTU2MTVhMmQ2YjFh
|
15
|
+
OGRmYWEzMWE4NjhkMjNjOWFiNDRhZjBjOWU3OWM1N2IwMDEzOGM=
|
data/lib/travis/cli/command.rb
CHANGED
@@ -359,10 +359,13 @@ module Travis
|
|
359
359
|
File.delete(path)
|
360
360
|
end
|
361
361
|
|
362
|
-
def save_file(name, content)
|
362
|
+
def save_file(name, content, read_only = false)
|
363
363
|
path = config_path(name)
|
364
364
|
debug "Storing %p" % path
|
365
|
-
File.
|
365
|
+
File.open(path, 'w') do |file|
|
366
|
+
file.write(content.to_s)
|
367
|
+
file.chmod(0600) if read_only
|
368
|
+
end
|
366
369
|
end
|
367
370
|
|
368
371
|
YAML_ERROR = defined?(Psych::SyntaxError) ? Psych::SyntaxError : ArgumentError
|
@@ -378,7 +381,7 @@ module Travis
|
|
378
381
|
end
|
379
382
|
|
380
383
|
def store_config
|
381
|
-
save_file('config.yml', @config.to_yaml)
|
384
|
+
save_file('config.yml', @config.to_yaml, true)
|
382
385
|
end
|
383
386
|
|
384
387
|
def check_arity(method, *args)
|