r-train 0.10.7 → 0.10.8

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: d761f557a971666f71bf95ede8f2d187505b088c
4
- data.tar.gz: 350c8df0716965865bb74f6e1e95e7ce4350693a
3
+ metadata.gz: 32ff41b8ff5978a069895749aa4552622ce66f83
4
+ data.tar.gz: aee9c30afa4e65ad9ecce338aeb2b331a53fd35f
5
5
  SHA512:
6
- metadata.gz: b4802dde20cb9ece99e9b023ae032cf5a8f0cf12041f0c288d2e94b1840cbef8ab55515883b03762612945c49be418a969b613f9cdac260fbbf34571ba56b9f1
7
- data.tar.gz: f21e255d094df2bbbb4aaa9f5548bcc6d826784fa41713f5e76dd6e320d35b2dd5e74e5c5c5bd3efccd0fc5600245707170ac80c4fe5939e1f672bed2d6a379f
6
+ metadata.gz: 672801e1cd8849041f0736eb53d52f473b027e9f046f9669d351b36804c6ea6a3ae956552f393e8df9fbfca6bee980f7a54da64bdb147899d178243bbb36c6e3
7
+ data.tar.gz: 9fd2658924b66145474edb62497f5bab9790e00a1b0793f7f058a3cb2dca8bc7ea2694d77b20cfe2bbb06368cfaeea3ac8ca9d0f7e9477d1fbd9e3374c691fa9
data/CHANGELOG.md CHANGED
@@ -1,10 +1,23 @@
1
1
  # Change Log
2
2
 
3
- ## [0.10.7](https://github.com/chef/train/tree/0.10.7) (2016-04-21)
4
- [Full Changelog](https://github.com/chef/train/compare/v0.10.6...0.10.7)
3
+ ## [0.10.8](https://github.com/chef/train/tree/0.10.8) (2016-04-25)
4
+ [Full Changelog](https://github.com/chef/train/compare/v0.10.7...0.10.8)
5
+
6
+ **Implemented enhancements:**
7
+
8
+ - loose restriction for mixlib-shellout [\#89](https://github.com/chef/train/pull/89) ([chris-rock](https://github.com/chris-rock))
9
+
10
+ **Merged pull requests:**
11
+
12
+ - use gemspec for travis [\#90](https://github.com/chef/train/pull/90) ([chris-rock](https://github.com/chris-rock))
13
+ - Don't strip off the second byte of the octal mode. [\#88](https://github.com/chef/train/pull/88) ([justindossey](https://github.com/justindossey))
14
+
15
+ ## [v0.10.7](https://github.com/chef/train/tree/v0.10.7) (2016-04-21)
16
+ [Full Changelog](https://github.com/chef/train/compare/v0.10.6...v0.10.7)
5
17
 
6
18
  **Merged pull requests:**
7
19
 
20
+ - 0.10.7 [\#87](https://github.com/chef/train/pull/87) ([arlimus](https://github.com/arlimus))
8
21
  - Revert "add -L to get stat for symlink" [\#86](https://github.com/chef/train/pull/86) ([arlimus](https://github.com/arlimus))
9
22
 
10
23
  ## [v0.10.6](https://github.com/chef/train/tree/v0.10.6) (2016-04-20)
@@ -48,7 +48,7 @@ module Train::Extras
48
48
 
49
49
  {
50
50
  type: find_type(tmask),
51
- mode: tmask & 00777,
51
+ mode: tmask & 07777,
52
52
  owner: fields[2],
53
53
  group: fields[4],
54
54
  mtime: fields[7].to_i,
@@ -85,7 +85,7 @@ module Train::Extras
85
85
 
86
86
  {
87
87
  type: find_type(tmask),
88
- mode: tmask & 00777,
88
+ mode: tmask & 07777,
89
89
  owner: fields[2],
90
90
  group: fields[4],
91
91
  mtime: fields[7].to_i,
@@ -113,7 +113,7 @@ module Train::Extras
113
113
 
114
114
  {
115
115
  type: find_type(tmask),
116
- mode: tmask & 00777,
116
+ mode: tmask & 07777,
117
117
  owner: fields[1],
118
118
  group: fields[2],
119
119
  mtime: fields[3].to_i,
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.10.7'.freeze
6
+ VERSION = '0.10.8'.freeze
7
7
  end
@@ -16,27 +16,27 @@ describe 'stat' do
16
16
  cls.find_type(00140755).must_equal :socket
17
17
  end
18
18
 
19
- it 'detects sockets' do
19
+ it 'detects symlinks' do
20
20
  cls.find_type(00120755).must_equal :symlink
21
21
  end
22
22
 
23
- it 'detects sockets' do
23
+ it 'detects files' do
24
24
  cls.find_type(00100755).must_equal :file
25
25
  end
26
26
 
27
- it 'detects sockets' do
27
+ it 'detects block devices' do
28
28
  cls.find_type(00060755).must_equal :block_device
29
29
  end
30
30
 
31
- it 'detects sockets' do
31
+ it 'detects directories' do
32
32
  cls.find_type(00040755).must_equal :directory
33
33
  end
34
34
 
35
- it 'detects sockets' do
35
+ it 'detects character devices' do
36
36
  cls.find_type(00020755).must_equal :character_device
37
37
  end
38
38
 
39
- it 'detects sockets' do
39
+ it 'detects pipes' do
40
40
  cls.find_type(00010755).must_equal :pipe
41
41
  end
42
42
  end
@@ -53,11 +53,12 @@ describe 'stat' do
53
53
 
54
54
  it 'reads correct stat results' do
55
55
  res = Minitest::Mock.new
56
+ # 43ff is 41777; linux_stat strips the 4
56
57
  res.expect :stdout, "360\n43ff\nroot\n0\nroot\n0\n1444520846\n1444522445\n?"
57
58
  backend.expect :run_command, res, [String]
58
59
  cls.linux_stat('/path', backend).must_equal({
59
60
  type: :directory,
60
- mode: 00777,
61
+ mode: 01777,
61
62
  owner: 'root',
62
63
  group: 'root',
63
64
  mtime: 1444522445,
@@ -93,7 +94,7 @@ describe 'stat' do
93
94
  backend.expect :run_command, res, [String]
94
95
  cls.bsd_stat('/path', backend).must_equal({
95
96
  type: :directory,
96
- mode: 00777,
97
+ mode: 01777,
97
98
  owner: 'root',
98
99
  group: 'root',
99
100
  mtime: 1444522445,
data/train.gemspec CHANGED
@@ -24,7 +24,8 @@ Gem::Specification.new do |spec|
24
24
  spec.require_paths = ['lib']
25
25
 
26
26
  spec.add_dependency 'json', '~> 1.8'
27
- spec.add_dependency 'mixlib-shellout', '~> 2.1'
27
+ # chef-client < 12.4.1 require mixlib-shellout-2.0.1
28
+ spec.add_dependency 'mixlib-shellout', '~> 2.0'
28
29
  # net-ssh 3.x drops Ruby 1.9 support, so this constraint could be raised when
29
30
  # 1.9 support is no longer needed here or for Inspec
30
31
  spec.add_dependency 'net-ssh', '>= 2.9', '< 4.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r-train
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.7
4
+ version: 0.10.8
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-04-21 00:00:00.000000000 Z
11
+ date: 2016-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.1'
33
+ version: '2.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.1'
40
+ version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: net-ssh
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -238,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
238
  version: '0'
239
239
  requirements: []
240
240
  rubyforge_project:
241
- rubygems_version: 2.5.1
241
+ rubygems_version: 2.4.6
242
242
  signing_key:
243
243
  specification_version: 4
244
244
  summary: Transport interface to talk to different backends.