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.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/travis/cli/command.rb +6 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTAyOGI0MmRiYTk3YmQyZDMyZGQ0ODM2NDIyZmNjYzk1Y2FlNzUyOQ==
4
+ NDNhYzliNjk3M2IxMjhjMTBlNTM0NTA0MDc4ZTc2ODFiNjAyYmEzOQ==
5
5
  data.tar.gz: !binary |-
6
- NDlmN2I3NjUyYWNiOGU1YzYyMjFjOGVmMzA5Zjk5NjczNGQ5NDZjOQ==
6
+ OTkyOGYzYjk1Yjg1ZjM3NWUwNTZiMDQyNDg2Y2E2NmY0MTYwNzNlOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YmVkODVlYzM0MTIyNmFhYmZkN2E1YTNkNDI1MGQxMWI3YTVhNzA3NzRlNGJk
10
- YjM3MTM1ZTA3Y2M1NGZiMDkwNTNmOGNiMzAxYjhhNDM1OGQ1ZjM5MjllOGUz
11
- NGFhODcyYzg0NDAxMDBkMWM0YjVlNGMwYTUxMTQzOGRiOGZmZGE=
9
+ ZTk4MmFlZjY3MDJlNTczMmU4NWZmOWE5OGM0Yjg2ODQyZDk2OWU5MmQ1YWMw
10
+ MzYyZDM0MTA2ZTM5ZjlmNThlMWUxZmYxMDY2YmUzYWY3NjNlMTYxZjNkNGUx
11
+ ZGNjMTc4YzU2MGVhN2FlZDNjODAyYmI0MTczNmY5NzYyNzk1N2I=
12
12
  data.tar.gz: !binary |-
13
- NzU5YTEyNTExYjE1YTZhODlhZmY4YTMxMDIzMTFiYTY1Yzg4MGJhZDI0Y2Ux
14
- YjJhMzRmNzA2NjAxMWE3MDUwYjVlY2EzNzRlM2NlMjhiOWUxMTk0NmIxNGQw
15
- NTdiYTFkZTkyYzg4ZDFjMWJiZmY0OGI2MTI0ZmY1MDZkNDNmMGY=
13
+ Nzc0ODQ2YmE0NWFiNjVmYzQ0YTc1ZTdlYmQxZTRjZTFkZTY3ZWVjMWM5NGNm
14
+ NzllZjZiYmY3ZWRkYzM1ZTRkY2YyNmIzNmJjYWI4NjA1ZTU2MTVhMmQ2YjFh
15
+ OGRmYWEzMWE4NjhkMjNjOWFiNDRhZjBjOWU3OWM1N2IwMDEzOGM=
@@ -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.write(path, content.to_s)
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)
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.7.2.travis.635.5
4
+ version: 1.7.2.travis.636.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Haase