specs 0.8 → 0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/specs +0 -0
- data/lib/aspects/apt.rb +11 -0
- data/lib/aspects/hardware.rb +2 -2
- data/lib/aspects/ocaml.rb +15 -1
- data/lib/aspects/ssl.rb +5 -0
- data/lib/aspects/virtualbox.rb +5 -5
- data/lib/specs.rb +2 -1
- data/lib/version.rb +1 -1
- metadata +19 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47369fad65a560380594458ba81339bd3f5287cd
|
4
|
+
data.tar.gz: 25f8688e349a03580a45898a10b159ce6b1f400b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c971f1bcb93929c05aba25abc2e9b02d811a745baaab9b65da6a9c42fd2c69687d2a2e6562bc759bcf069e92bf0326071fca69c71150e12071c8f87d682a9894
|
7
|
+
data.tar.gz: f03328f6027a52b059ae0967add0932d22fe12d26e0845a6ba7fd268ce12b938c57b9db86bc998a5502e33077820a7b4d29e7c7c841e240f4c8378f2a2474a89
|
data/bin/specs
CHANGED
File without changes
|
data/lib/aspects/apt.rb
ADDED
data/lib/aspects/hardware.rb
CHANGED
@@ -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
|
16
|
+
'sudo dmidecode -t system | grep \'Manufacturer\\|Product\''
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
data/lib/aspects/ocaml.rb
CHANGED
@@ -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
|
-
|
17
|
+
[ocamlc, opam]
|
4
18
|
end
|
5
19
|
end
|
data/lib/aspects/ssl.rb
ADDED
data/lib/aspects/virtualbox.rb
CHANGED
@@ -2,15 +2,15 @@ module Recipe
|
|
2
2
|
def self.virtualbox
|
3
3
|
case Os.os_name
|
4
4
|
when :windows
|
5
|
-
if Os.
|
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
|
-
'
|
11
|
+
'vboxwebsrv --help 2>&1 | grep VirtualBox'
|
12
12
|
else
|
13
|
-
'
|
13
|
+
'vboxwebsrv --help 2>&1 | grep VirtualBox'
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
data/lib/specs.rb
CHANGED
@@ -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
|
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
|
data/lib/version.rb
CHANGED
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.
|
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.
|
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:
|