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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b4eed13de93f62f2bbb57ce355ea22684606c06
4
- data.tar.gz: 14c461c8b5fc9c94761dede212cd8f67d69a60b8
3
+ metadata.gz: 1892ca21d4fb2ebfc30be6e1d0941b7f69d27b5b
4
+ data.tar.gz: 14c9b5bff849a62ad3aed951a396d96e0daf5ba6
5
5
  SHA512:
6
- metadata.gz: 1310556dbf0eac4ea57809c3e8a9c19c8f3b6edd4d735333e6b7d63cc2f89839c359ebc49542b2bbf995dd4b3cc1137819175f29bfa23a1a7cc5f8e2d664563a
7
- data.tar.gz: 5efff319c39a3328d342b49936c45e8b6079208e715ae279e2b3dda7ca047fa126df39c5e7abd8d702b96f1a159ed4a1a587b6a733a94c16b0bf1eeba8c82e79
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
- architecture = @example.metadata[:architecture] || SpecInfra.configuration.architecture
41
+ architecture = @example.metadata[:architecture] || SpecInfra.configuration.architecture
42
42
 
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
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
@@ -21,7 +21,7 @@ module SpecInfra
21
21
  warn "CommandResult#[] is obsolete. Use accessors instead. in #{caller[0]}"
22
22
  case x
23
23
  when :stdout, :stderr, :exit_status, :exit_signal
24
- self.send(x)
24
+ self.send(x)
25
25
  end
26
26
  end
27
27
  end
@@ -1,22 +1,22 @@
1
1
  module SpecInfra
2
2
  module Helper
3
3
  [
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',
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}
@@ -1,3 +1,3 @@
1
1
  module SpecInfra
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
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.1
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-03-29 00:00:00.000000000 Z
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