specs 0.8 → 0.9

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: c609f2d1e160eeaa81d2faabc1d61c00f2fb8a06
4
- data.tar.gz: a0d86e3d3374729947f6b336a9ba3521cd7de76c
3
+ metadata.gz: 47369fad65a560380594458ba81339bd3f5287cd
4
+ data.tar.gz: 25f8688e349a03580a45898a10b159ce6b1f400b
5
5
  SHA512:
6
- metadata.gz: f982fb92f43ab1e91faa621e71863dfc38e940540787eefc9c9a88991ad0528c3298954f1fb93fdc2596767d55f0e54213fb11a95e78c80a20239bb00270da19
7
- data.tar.gz: e85ed40341f5341c7df686300c7a8d89211277bfd8f20e41b2bc44d02bb7dfe2d4546efa660502c7808a49f63c974fa82b05fb9796c87bd40d1acf20436aff36
6
+ metadata.gz: c971f1bcb93929c05aba25abc2e9b02d811a745baaab9b65da6a9c42fd2c69687d2a2e6562bc759bcf069e92bf0326071fca69c71150e12071c8f87d682a9894
7
+ data.tar.gz: f03328f6027a52b059ae0967add0932d22fe12d26e0845a6ba7fd268ce12b938c57b9db86bc998a5502e33077820a7b4d29e7c7c841e240f4c8378f2a2474a89
data/bin/specs CHANGED
File without changes
@@ -0,0 +1,11 @@
1
+ module Recipe
2
+ module Package
3
+ def self.dpkg(package)
4
+ "dpkg -l #{package}"
5
+ end
6
+
7
+ def self.apt(package)
8
+ self.dpkg(package)
9
+ end
10
+ end
11
+ end
@@ -8,12 +8,12 @@ module Recipe
8
8
  'systeminfo | findstr /B /C:"System Manufacturer" /C:"System Model"'
9
9
  # Produces a noticeable delay.
10
10
  elsif Os.mac?
11
- 'system_profiler | grep \'Model Identifier\''
11
+ 'system_profiler 2>&1 | grep \'Model Identifier\''
12
12
  # Assume:
13
13
  # * OS is a Unix variant.
14
14
  # * dmidecode is installed.
15
15
  else
16
- 'sudo dmidecode -t system | grep Manufacturer|Product'
16
+ 'sudo dmidecode -t system | grep \'Manufacturer\\|Product\''
17
17
  end
18
18
  end
19
19
  end
@@ -1,5 +1,19 @@
1
1
  module Recipe
2
+ module Package
3
+ def self.opam(package)
4
+ "opam list #{package}"
5
+ end
6
+ end
7
+
8
+ def self.ocamlc
9
+ 'ocamlc -version'
10
+ end
11
+
12
+ def self.opam
13
+ 'opam --version'
14
+ end
15
+
2
16
  def self.ocaml
3
- 'ocaml -version'
17
+ [ocamlc, opam]
4
18
  end
5
19
  end
@@ -0,0 +1,5 @@
1
+ module Recipe
2
+ def self.ssl
3
+ 'openssl version'
4
+ end
5
+ end
@@ -2,15 +2,15 @@ module Recipe
2
2
  def self.virtualbox
3
3
  case Os.os_name
4
4
  when :windows
5
- if Os.x86?
6
- '"C:\\Program Files\\Oracle\\VirtualBox\\VBoxManage" --version'
5
+ if Os.x86_64?
6
+ '"C:\\Program Files\\Oracle\\VirtualBox\\VBoxManage.exe" --version'
7
7
  else
8
- 'C:\\Program Files (x86)\\Oracle\\VirtualBox\\VBoxManage --version'
8
+ '"C:\\Program Files (x86)\\Oracle\\VirtualBox\\VBoxManage.exe" --version'
9
9
  end
10
10
  when :mac
11
- '/Applications/Firefox.app/Contents/MacOS/firefox --version'
11
+ 'vboxwebsrv --help 2>&1 | grep VirtualBox'
12
12
  else
13
- 'firefox --version'
13
+ 'vboxwebsrv --help 2>&1 | grep VirtualBox'
14
14
  end
15
15
  end
16
16
  end
@@ -208,8 +208,9 @@ end
208
208
 
209
209
  # For a given spec, return the command line instruction(s)
210
210
  # that will get the spec's version information.
211
+ Contract String => Any
211
212
  def self.command(aspect)
212
- # Ruby methods can't use hypens (-),
213
+ # Ruby methods can't use hyphens (-),
213
214
  # So translate to underscores (_)
214
215
  # When looking up known aspects.
215
216
  method = aspect.gsub('-', '_').to_sym
@@ -2,5 +2,5 @@
2
2
  # Specs
3
3
  #
4
4
  module Specs
5
- VERSION = '0.8'
5
+ VERSION = '0.9'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specs
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.8'
4
+ version: '0.9'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Pennebaker
@@ -220,6 +220,20 @@ dependencies:
220
220
  - - '>='
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: aspelllint
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - '>='
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - '>='
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
223
237
  description: See README.md for example usage
224
238
  email: andrew.pennebaker@gmail.com
225
239
  executables:
@@ -229,6 +243,7 @@ extra_rdoc_files: []
229
243
  files:
230
244
  - lib/specs.rb
231
245
  - lib/version.rb
246
+ - lib/aspects/apt.rb
232
247
  - lib/aspects/as.rb
233
248
  - lib/aspects/bios.rb
234
249
  - lib/aspects/brew.rb
@@ -271,6 +286,7 @@ files:
271
286
  - lib/aspects/shell.rb
272
287
  - lib/aspects/splint.rb
273
288
  - lib/aspects/ssh.rb
289
+ - lib/aspects/ssl.rb
274
290
  - lib/aspects/tap.rb
275
291
  - lib/aspects/thrift.rb
276
292
  - lib/aspects/virtualbox.rb
@@ -297,8 +313,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
297
313
  version: '0'
298
314
  requirements: []
299
315
  rubyforge_project:
300
- rubygems_version: 2.0.14
316
+ rubygems_version: 2.1.10
301
317
  signing_key:
302
318
  specification_version: 4
303
319
  summary: Software version information at your fingertips
304
320
  test_files: []
321
+ has_rdoc: