specinfra 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/specinfra/backend/cmd.rb +7 -8
- data/lib/specinfra/command_result.rb +1 -1
- data/lib/specinfra/helper/os.rb +16 -16
- data/lib/specinfra/version.rb +1 -1
- data/specinfra.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1892ca21d4fb2ebfc30be6e1d0941b7f69d27b5b
|
4
|
+
data.tar.gz: 14c9b5bff849a62ad3aed951a396d96e0daf5ba6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0158f25603477c033173bf10633d558519f9ff32643d6de3a76e84b4887b9b794e1a6d37a97f8c06306d9da6638027694a950b1126c6e3db847380e4d2ff3237
|
7
|
+
data.tar.gz: aa5e46c18b90b9ecb47ecefad148820f72fb9d65ca59691ad5c5e6d5374638fe234286d76bf943ce5deec50c2a6a1ad979acbddbb24c6061b7fa1ae2e965d35a
|
@@ -38,13 +38,13 @@ module SpecInfra
|
|
38
38
|
private
|
39
39
|
|
40
40
|
def powershell
|
41
|
-
|
41
|
+
architecture = @example.metadata[:architecture] || SpecInfra.configuration.architecture
|
42
42
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
43
|
+
case architecture
|
44
|
+
when :i386 then x86_powershell
|
45
|
+
when :x86_64 then x64_powershell
|
46
|
+
else raise ArgumentError, "invalid architecture [#{architecture}]"
|
47
|
+
end
|
48
48
|
end
|
49
49
|
|
50
50
|
def x64_powershell
|
@@ -56,8 +56,7 @@ module SpecInfra
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def find_powershell(dirs)
|
59
|
-
dirs.map { |dir| "#{ENV['WINDIR']}\\#{dir}\\WindowsPowerShell\\v1.0\\powershell.exe" }
|
60
|
-
.find { |exe| File.exists?(exe) } || 'powershell'
|
59
|
+
( dirs.map { |dir| "#{ENV['WINDIR']}\\#{dir}\\WindowsPowerShell\\v1.0\\powershell.exe" } ).find { |exe| File.exists?(exe) } || 'powershell'
|
61
60
|
end
|
62
61
|
|
63
62
|
end
|
data/lib/specinfra/helper/os.rb
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
module SpecInfra
|
2
2
|
module Helper
|
3
3
|
[
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
4
|
+
'Base',
|
5
|
+
'AIX',
|
6
|
+
'Darwin',
|
7
|
+
'Debian',
|
8
|
+
'FreeBSD',
|
9
|
+
'FreeBSD10',
|
10
|
+
'Gentoo',
|
11
|
+
'Plamo',
|
12
|
+
'RedHat',
|
13
|
+
'SuSE',
|
14
|
+
'SmartOS',
|
15
|
+
'Solaris',
|
16
|
+
'Solaris10',
|
17
|
+
'Solaris11',
|
18
|
+
'Ubuntu',
|
19
|
+
'Windows',
|
20
20
|
].each do |os|
|
21
21
|
eval <<-EOF
|
22
22
|
module #{os}
|
data/lib/specinfra/version.rb
CHANGED
data/specinfra.gemspec
CHANGED
@@ -21,5 +21,6 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_development_dependency "bundler", "~> 1.3"
|
22
22
|
spec.add_development_dependency "rake", "~> 10.1.1"
|
23
23
|
spec.add_development_dependency "rspec"
|
24
|
+
spec.add_development_dependency "octokit", "~> 2.7.2"
|
24
25
|
spec.add_development_dependency "octorelease"
|
25
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: specinfra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: octokit
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.7.2
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.7.2
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: octorelease
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|