r-train 0.10.4 → 0.10.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -2
- data/lib/train/extras/os_common.rb +5 -2
- data/lib/train/extras/os_detect_unix.rb +4 -0
- data/lib/train/version.rb +1 -1
- data/test/unit/extras/os_common_test.rb +9 -0
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9e44ae1c8fc7891c05c6f8bb97818ae46b7b63dd
|
|
4
|
+
data.tar.gz: 37eab5503a56ff4848ea7202bda4a46ca1bf5365
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 614b231e8a4f8bd736fb38b40ebe5836ec429d4e8316e2eb296a109af0845c40cc6c7859a1d185a6ba1875de12830edbd47045a8e01e42b63ec484fe8288d70a
|
|
7
|
+
data.tar.gz: 839fa3b4c8bd2d940329d90f8fc6db5fe6ee6349c718016f2a561d4012bc1a8a9ff9d829012444c4ac97c41c671492731f86f596de4b43d11d55f74daf80b17b
|
data/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## [0.10.
|
|
4
|
-
[Full Changelog](https://github.com/chef/train/compare/v0.10.
|
|
3
|
+
## [0.10.5](https://github.com/chef/train/tree/0.10.5) (2016-04-18)
|
|
4
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.10.4...0.10.5)
|
|
5
|
+
|
|
6
|
+
**Merged pull requests:**
|
|
7
|
+
|
|
8
|
+
- detection for hp-ux machine [\#82](https://github.com/chef/train/pull/82) ([Anirudh-Gupta](https://github.com/Anirudh-Gupta))
|
|
9
|
+
|
|
10
|
+
## [v0.10.4](https://github.com/chef/train/tree/v0.10.4) (2016-03-31)
|
|
11
|
+
[Full Changelog](https://github.com/chef/train/compare/v0.10.3...v0.10.4)
|
|
5
12
|
|
|
6
13
|
**Fixed bugs:**
|
|
7
14
|
|
|
8
15
|
- bugfix: do not use unix path escape for windows [\#79](https://github.com/chef/train/pull/79) ([chris-rock](https://github.com/chris-rock))
|
|
9
16
|
|
|
17
|
+
**Merged pull requests:**
|
|
18
|
+
|
|
19
|
+
- 0.10.4 [\#80](https://github.com/chef/train/pull/80) ([arlimus](https://github.com/arlimus))
|
|
20
|
+
|
|
10
21
|
## [v0.10.3](https://github.com/chef/train/tree/v0.10.3) (2016-03-07)
|
|
11
22
|
[Full Changelog](https://github.com/chef/train/compare/v0.10.1...v0.10.3)
|
|
12
23
|
|
|
@@ -56,11 +56,14 @@ module Train::Extras
|
|
|
56
56
|
'aix' => %w{
|
|
57
57
|
aix
|
|
58
58
|
},
|
|
59
|
+
'hpux' => %w{
|
|
60
|
+
hpux
|
|
61
|
+
},
|
|
59
62
|
}
|
|
60
63
|
|
|
61
64
|
OS['linux'] = %w{linux alpine arch coreos exherbo gentoo slackware} + OS['redhat'] + OS['debian'] + OS['suse']
|
|
62
65
|
|
|
63
|
-
OS['unix'] = %w{unix aix} + OS['linux'] + OS['solaris'] + OS['bsd']
|
|
66
|
+
OS['unix'] = %w{unix aix hpux} + OS['linux'] + OS['solaris'] + OS['bsd']
|
|
64
67
|
|
|
65
68
|
# Helper methods to check the OS type
|
|
66
69
|
# Provides methods in the form of: linux?, unix?, solaris? ...
|
|
@@ -107,7 +110,7 @@ module Train::Extras
|
|
|
107
110
|
return detect_windows if pf == 'windows'
|
|
108
111
|
return detect_darwin if pf == 'darwin'
|
|
109
112
|
|
|
110
|
-
if %w{freebsd netbsd openbsd aix solaris2}.include?(pf)
|
|
113
|
+
if %w{freebsd netbsd openbsd aix solaris2 hpux}.include?(pf)
|
|
111
114
|
return detect_via_uname
|
|
112
115
|
end
|
|
113
116
|
|
|
@@ -20,6 +20,10 @@ module Train::Extras
|
|
|
20
20
|
@platform[:release] = "#{m[2]}.#{m[1]}"
|
|
21
21
|
@platform[:arch] = m[3].to_s
|
|
22
22
|
end
|
|
23
|
+
when /hp-ux/
|
|
24
|
+
@platform[:family] = 'hpux'
|
|
25
|
+
@platform[:name] = uname_s.lines[0].chomp
|
|
26
|
+
@platform[:release] = uname_r.lines[0].chomp
|
|
23
27
|
|
|
24
28
|
when /freebsd/
|
|
25
29
|
@platform[:family] = 'freebsd'
|
data/lib/train/version.rb
CHANGED
|
@@ -257,4 +257,13 @@ describe 'os common plugin' do
|
|
|
257
257
|
it { os.linux?.must_equal(false) }
|
|
258
258
|
it { os.unix?.must_equal(false) }
|
|
259
259
|
end
|
|
260
|
+
|
|
261
|
+
describe 'with platform set to hpux' do
|
|
262
|
+
let(:os) { mock_platform('hpux') }
|
|
263
|
+
it { os.solaris?.must_equal(false) }
|
|
264
|
+
it { os.linux?.must_equal(false) }
|
|
265
|
+
it { os.unix?.must_equal(true) }
|
|
266
|
+
it { os.hpux?.must_equal(true) }
|
|
267
|
+
end
|
|
268
|
+
|
|
260
269
|
end
|
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.
|
|
4
|
+
version: 0.10.5
|
|
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-
|
|
11
|
+
date: 2016-04-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|
|
@@ -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.
|
|
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.
|