train 0.15.0 → 0.15.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f020e9a89665da74d365404f73545dc4013e7b5d
4
- data.tar.gz: 7f2bb4294fa689083feafe2c3f15292526a16b9b
3
+ metadata.gz: 332d26c5b09101df480ed9d2e9498595c92578d1
4
+ data.tar.gz: 5d37347588dd7c9d322d95e2d5e85806f93da786
5
5
  SHA512:
6
- metadata.gz: 83841c985b413817cab9d1a32dd8994da7a28c15b4970f913ecc1efe7fa73cf7e67307c8d3072c679148ee211457a81b48d908111b6ed2e31162d67e55ae4e16
7
- data.tar.gz: c4e458d0b9bfeec58c308c9620bd492063f614abd30b48e0aadef3d2fb74e5f0c3174cc1783a07e6f45a1a49c61451b667bf57ee575ed40df90ab78130398b20
6
+ metadata.gz: 7a9fe54a0ba1b3457086f47021798e50426aa9b70d72bd5476a1bf6260fbb32917e598d1bc600ebb2ac1dfbbd792d1bd3900f0d3ed70f9b832b29a10c80b1823
7
+ data.tar.gz: b9ff47d72083a29b300dfe0ff0b5ec1c2059a4b0672fe5490ccf093d47fa44de74cc954129388ce01286221c749871f915ffbbecf648b0a669957d51ea0ba1bc
data/CHANGELOG.md CHANGED
@@ -1,7 +1,18 @@
1
1
  # Change Log
2
2
 
3
- ## [0.15.0](https://github.com/chef/train/tree/0.15.0) (2016-07-01)
4
- [Full Changelog](https://github.com/chef/train/compare/v0.14.2...0.15.0)
3
+ ## [0.15.1](https://github.com/chef/train/tree/0.15.1) (2016-07-10)
4
+ [Full Changelog](https://github.com/chef/train/compare/v0.15.0...0.15.1)
5
+
6
+ **Fixed bugs:**
7
+
8
+ - bugfix: higher mode bits on local connection [\#125](https://github.com/chef/train/pull/125) ([arlimus](https://github.com/arlimus))
9
+
10
+ **Merged pull requests:**
11
+
12
+ - Test ruby 2.1 instead of 1.9.3 and only launch one test group per travis/appveyor [\#123](https://github.com/chef/train/pull/123) ([mwrock](https://github.com/mwrock))
13
+
14
+ ## [v0.15.0](https://github.com/chef/train/tree/v0.15.0) (2016-07-01)
15
+ [Full Changelog](https://github.com/chef/train/compare/v0.14.2...v0.15.0)
5
16
 
6
17
  **Implemented enhancements:**
7
18
 
@@ -69,7 +69,7 @@ class Train::Transports::Local::Connection
69
69
 
70
70
  @stat = {
71
71
  type: Train::Extras::Stat.find_type(file_stat.mode),
72
- mode: file_stat.mode & 00777,
72
+ mode: file_stat.mode & 07777,
73
73
  mtime: file_stat.mtime.to_i,
74
74
  size: file_stat.size,
75
75
  owner: pw_username(file_stat.uid),
data/lib/train/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # Author:: Dominik Richter (<dominik.richter@gmail.com>)
4
4
 
5
5
  module Train
6
- VERSION = '0.15.0'.freeze
6
+ VERSION = '0.15.1'.freeze
7
7
  end
@@ -9,6 +9,9 @@ test ! -e /tmp/symlink && \
9
9
  chmod 0777 /tmp/symlink
10
10
  chmod 0765 /tmp/file
11
11
 
12
+ echo -n 'hello suid/sgid/sticky' > /tmp/sfile
13
+ chmod 7765 /tmp/sfile
14
+
12
15
  test ! -e /tmp/pipe && \
13
16
  mkfifo /tmp/pipe
14
17
 
@@ -16,6 +16,13 @@ file '/tmp/file' do
16
16
  content 'hello world'
17
17
  end
18
18
 
19
+ file '/tmp/sfile' do
20
+ mode '7765'
21
+ owner 'root'
22
+ group gid
23
+ content 'hello suid/sgid/sticky'
24
+ end
25
+
19
26
  directory '/tmp/folder' do
20
27
  mode '0567'
21
28
  owner 'root'
@@ -82,4 +82,11 @@ describe 'file interface' do
82
82
  j['type'].must_equal :file
83
83
  end
84
84
  end
85
+
86
+ describe 'regular file' do
87
+ let(:file) { backend.file('/tmp/sfile') }
88
+ it 'has mode 7765' do
89
+ file.mode.must_equal(07765)
90
+ end
91
+ end
85
92
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: train
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominik Richter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-01 00:00:00.000000000 Z
11
+ date: 2016-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -188,10 +188,8 @@ files:
188
188
  - test/integration/sudo/passwd.rb
189
189
  - test/integration/sudo/reqtty.rb
190
190
  - test/integration/sudo/run_as.rb
191
- - test/integration/test-one.yaml
192
191
  - test/integration/test-travis-1.yaml
193
192
  - test/integration/test-travis-2.yaml
194
- - test/integration/test-two.yaml
195
193
  - test/integration/test_local.rb
196
194
  - test/integration/test_ssh.rb
197
195
  - test/integration/tests/path_block_device_test.rb
@@ -243,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
241
  version: '0'
244
242
  requirements: []
245
243
  rubyforge_project:
246
- rubygems_version: 2.5.1
244
+ rubygems_version: 2.4.6
247
245
  signing_key:
248
246
  specification_version: 4
249
247
  summary: Transport interface to talk to different backends.
@@ -264,10 +262,8 @@ test_files:
264
262
  - test/integration/sudo/passwd.rb
265
263
  - test/integration/sudo/reqtty.rb
266
264
  - test/integration/sudo/run_as.rb
267
- - test/integration/test-one.yaml
268
265
  - test/integration/test-travis-1.yaml
269
266
  - test/integration/test-travis-2.yaml
270
- - test/integration/test-two.yaml
271
267
  - test/integration/test_local.rb
272
268
  - test/integration/test_ssh.rb
273
269
  - test/integration/tests/path_block_device_test.rb
@@ -1,4 +0,0 @@
1
- images:
2
- - alpine:edge
3
- provision:
4
- - script: bootstrap.sh
@@ -1,4 +0,0 @@
1
- images:
2
- - ubuntu:16.04
3
- provision:
4
- - script: bootstrap.sh