specs 0.7 → 0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/specs +4 -5
- data/lib/aspects/as.rb +15 -15
- data/lib/aspects/bios.rb +7 -7
- data/lib/aspects/brew.rb +7 -7
- data/lib/aspects/chicken.rb +17 -17
- data/lib/aspects/chocolatey.rb +7 -7
- data/lib/aspects/chrome.rb +15 -15
- data/lib/aspects/clojure.rb +13 -13
- data/lib/aspects/cpu.rb +14 -14
- data/lib/aspects/dmake.rb +5 -5
- data/lib/aspects/erlang.rb +13 -13
- data/lib/aspects/fabric.rb +5 -5
- data/lib/aspects/firefox.rb +13 -13
- data/lib/aspects/go.rb +5 -5
- data/lib/aspects/hadoop.rb +25 -25
- data/lib/aspects/hardware.rb +3 -3
- data/lib/aspects/haskell.rb +23 -27
- data/lib/aspects/hd.rb +9 -9
- data/lib/aspects/ie.rb +7 -7
- data/lib/aspects/inkscape.rb +16 -16
- data/lib/aspects/java.rb +9 -9
- data/lib/aspects/lacheck.rb +5 -0
- data/lib/aspects/latex.rb +7 -7
- data/lib/aspects/ld.rb +5 -5
- data/lib/aspects/links.rb +5 -5
- data/lib/aspects/lua.rb +5 -5
- data/lib/aspects/net.rb +5 -5
- data/lib/aspects/node.rb +19 -19
- data/lib/aspects/ocaml.rb +1 -1
- data/lib/aspects/opera.rb +14 -14
- data/lib/aspects/oz.rb +5 -5
- data/lib/aspects/perl.rb +2 -2
- data/lib/aspects/php.rb +13 -0
- data/lib/aspects/powershell.rb +7 -7
- data/lib/aspects/python.rb +13 -13
- data/lib/aspects/python3.rb +13 -0
- data/lib/aspects/ram.rb +11 -11
- data/lib/aspects/redis.rb +9 -3
- data/lib/aspects/ruby.rb +23 -23
- data/lib/aspects/scala.rb +3 -3
- data/lib/aspects/shell.rb +9 -9
- data/lib/aspects/splint.rb +5 -0
- data/lib/aspects/ssh.rb +5 -5
- data/lib/aspects/tap.rb +5 -5
- data/lib/aspects/thrift.rb +5 -5
- data/lib/aspects/virtualbox.rb +16 -16
- data/lib/aspects/xcode.rb +7 -7
- data/lib/specs.rb +79 -50
- data/lib/version.rb +4 -1
- metadata +146 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c609f2d1e160eeaa81d2faabc1d61c00f2fb8a06
|
4
|
+
data.tar.gz: a0d86e3d3374729947f6b336a9ba3521cd7de76c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f982fb92f43ab1e91faa621e71863dfc38e940540787eefc9c9a88991ad0528c3298954f1fb93fdc2596767d55f0e54213fb11a95e78c80a20239bb00270da19
|
7
|
+
data.tar.gz: e85ed40341f5341c7df686300c7a8d89211277bfd8f20e41b2bc44d02bb7dfe2d4546efa660502c7808a49f63c974fa82b05fb9796c87bd40d1acf20436aff36
|
data/bin/specs
CHANGED
data/lib/aspects/as.rb
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.as
|
3
|
-
# Windows
|
4
|
-
if Os.windows?
|
5
|
-
|
6
|
-
# Assume OS is a Unix variant.
|
7
|
-
# as hangs by default, waiting for stdin to end;
|
8
|
-
# Send EOF via /dev/null.
|
9
|
-
#
|
10
|
-
# Don't create spurious a.out file.
|
11
|
-
else
|
12
|
-
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.as
|
3
|
+
# Windows
|
4
|
+
if Os.windows?
|
5
|
+
'as -version'
|
6
|
+
# Assume OS is a Unix variant.
|
7
|
+
# as hangs by default, waiting for stdin to end;
|
8
|
+
# Send EOF via /dev/null.
|
9
|
+
#
|
10
|
+
# Don't create spurious a.out file.
|
11
|
+
else
|
12
|
+
'as -o /dev/null -version < /dev/null'
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/aspects/bios.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.bios
|
3
|
-
if Os.windows?
|
4
|
-
|
5
|
-
end
|
6
|
-
end
|
7
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.bios
|
3
|
+
if Os.windows?
|
4
|
+
'systeminfo | findstr /B /C:"BIOS Version"'
|
5
|
+
end
|
6
|
+
end
|
7
|
+
end
|
data/lib/aspects/brew.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
module Recipe
|
2
|
-
module Package
|
3
|
-
def self.brew(package)
|
4
|
-
"brew list #{package}"
|
5
|
-
end
|
6
|
-
end
|
7
|
-
end
|
1
|
+
module Recipe
|
2
|
+
module Package
|
3
|
+
def self.brew(package)
|
4
|
+
"brew list #{package}"
|
5
|
+
end
|
6
|
+
end
|
7
|
+
end
|
data/lib/aspects/chicken.rb
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.eggs
|
3
|
-
|
4
|
-
end
|
5
|
-
|
6
|
-
def self.csi
|
7
|
-
|
8
|
-
end
|
9
|
-
|
10
|
-
def self.csc
|
11
|
-
|
12
|
-
end
|
13
|
-
|
14
|
-
def self.chicken
|
15
|
-
[eggs, csi]
|
16
|
-
end
|
17
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.eggs
|
3
|
+
'chicken-install -version'
|
4
|
+
end
|
5
|
+
|
6
|
+
def self.csi
|
7
|
+
'csi -version'
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.csc
|
11
|
+
'csc -version'
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.chicken
|
15
|
+
[eggs, csi]
|
16
|
+
end
|
17
|
+
end
|
data/lib/aspects/chocolatey.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.chocolatey
|
3
|
-
if Os.windows?
|
4
|
-
|
5
|
-
end
|
6
|
-
end
|
7
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.chocolatey
|
3
|
+
if Os.windows?
|
4
|
+
'chocolatey version'
|
5
|
+
end
|
6
|
+
end
|
7
|
+
end
|
data/lib/aspects/chrome.rb
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.chrome
|
3
|
-
# Assumes Chrome installed in default directory.
|
4
|
-
if Os.mac?
|
5
|
-
|
6
|
-
elsif Os.windows?
|
7
|
-
|
8
|
-
# Assumes
|
9
|
-
# * binary is google-chrome.
|
10
|
-
# * binary is in PATH.
|
11
|
-
else
|
12
|
-
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.chrome
|
3
|
+
# Assumes Chrome installed in default directory.
|
4
|
+
if Os.mac?
|
5
|
+
'/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome --version 2>&1 | grep -v Unsure' # Redirect stderr to stdout
|
6
|
+
elsif Os.windows?
|
7
|
+
'reg query "HKEY_LOCAL_MACHINE\\SOFTWARE\\Google\\Update\\Clients\\{4DC8B4CA-1BDA-483e-B5FA-D3C12E15B62D}"'
|
8
|
+
# Assumes
|
9
|
+
# * binary is google-chrome.
|
10
|
+
# * binary is in PATH.
|
11
|
+
else
|
12
|
+
'google-chrome --version'
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/aspects/clojure.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.lein
|
3
|
-
|
4
|
-
end
|
5
|
-
|
6
|
-
def self.clj
|
7
|
-
|
8
|
-
end
|
9
|
-
|
10
|
-
def self.clojure
|
11
|
-
[clj, lein]
|
12
|
-
end
|
13
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.lein
|
3
|
+
'lein --version'
|
4
|
+
end
|
5
|
+
|
6
|
+
def self.clj
|
7
|
+
'lein exec -e \'(println "Clojure " (clojure-version))\''
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.clojure
|
11
|
+
[clj, lein]
|
12
|
+
end
|
13
|
+
end
|
data/lib/aspects/cpu.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.cpu
|
3
|
-
if Os.windows?
|
4
|
-
|
5
|
-
elsif Os.mac?
|
6
|
-
[
|
7
|
-
|
8
|
-
|
9
|
-
]
|
10
|
-
else
|
11
|
-
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.cpu
|
3
|
+
if Os.windows?
|
4
|
+
'wmic cpu get NumberOfCores, NumberOfLogicalProcessors'
|
5
|
+
elsif Os.mac?
|
6
|
+
[
|
7
|
+
'system_profiler | grep Cores: ',
|
8
|
+
'system_profiler | grep Processors:'
|
9
|
+
]
|
10
|
+
else
|
11
|
+
'cat /proc/cpuinfo | grep processor | wc -l'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/lib/aspects/dmake.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.dmake
|
3
|
-
|
4
|
-
end
|
5
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.dmake
|
3
|
+
'dmake -V'
|
4
|
+
end
|
5
|
+
end
|
data/lib/aspects/erlang.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.rebar
|
3
|
-
|
4
|
-
end
|
5
|
-
|
6
|
-
def self.erl
|
7
|
-
|
8
|
-
end
|
9
|
-
|
10
|
-
def self.erlang
|
11
|
-
[rebar, erl]
|
12
|
-
end
|
13
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.rebar
|
3
|
+
'rebar -V'
|
4
|
+
end
|
5
|
+
|
6
|
+
def self.erl
|
7
|
+
'erl -eval \'erlang:display(erlang:system_info(otp_release)), halt().\' -noshell'
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.erlang
|
11
|
+
[rebar, erl]
|
12
|
+
end
|
13
|
+
end
|
data/lib/aspects/fabric.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.fabric
|
3
|
-
|
4
|
-
end
|
5
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.fabric
|
3
|
+
'fab --version'
|
4
|
+
end
|
5
|
+
end
|
data/lib/aspects/firefox.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.firefox
|
3
|
-
# Assumes Firefox is installed in the default directory.
|
4
|
-
if Os.windows?
|
5
|
-
|
6
|
-
elsif Os.mac?
|
7
|
-
|
8
|
-
# Assumes firefox in PATH.
|
9
|
-
else
|
10
|
-
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.firefox
|
3
|
+
# Assumes Firefox is installed in the default directory.
|
4
|
+
if Os.windows?
|
5
|
+
'C:\\Program Files (x86)\\Mozilla Firefox\\firefox --version'
|
6
|
+
elsif Os.mac?
|
7
|
+
'/Applications/Firefox.app/Contents/MacOS/firefox --version'
|
8
|
+
# Assumes firefox in PATH.
|
9
|
+
else
|
10
|
+
'firefox --version'
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/lib/aspects/go.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.go
|
3
|
-
|
4
|
-
end
|
5
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.go
|
3
|
+
'go version'
|
4
|
+
end
|
5
|
+
end
|
data/lib/aspects/hadoop.rb
CHANGED
@@ -1,25 +1,25 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.hadoophome
|
3
|
-
if Os.windows?
|
4
|
-
|
5
|
-
else
|
6
|
-
|
7
|
-
end
|
8
|
-
end
|
9
|
-
|
10
|
-
def self.hadoopversion
|
11
|
-
if Os.windows?
|
12
|
-
|
13
|
-
else
|
14
|
-
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
def self.hadoopcommand
|
19
|
-
|
20
|
-
end
|
21
|
-
|
22
|
-
def self.hadoop
|
23
|
-
[hadoophome, hadoopversion, hadoopcommand]
|
24
|
-
end
|
25
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.hadoophome
|
3
|
+
if Os.windows? && !Os.mingw?
|
4
|
+
'echo %HADOOP_PREFIX%'
|
5
|
+
else
|
6
|
+
'echo $HADOOP_PREFIX'
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.hadoopversion
|
11
|
+
if Os.windows? && !Os.mingw?
|
12
|
+
'echo %HADOOP_VERSION%'
|
13
|
+
else
|
14
|
+
'echo $HADOOP_VERSION'
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.hadoopcommand
|
19
|
+
'hadoop version'
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.hadoop
|
23
|
+
[hadoophome, hadoopversion, hadoopcommand]
|
24
|
+
end
|
25
|
+
end
|
data/lib/aspects/hardware.rb
CHANGED
@@ -5,15 +5,15 @@ module Recipe
|
|
5
5
|
def self.hardware
|
6
6
|
# Use environment variable.
|
7
7
|
if Os.windows?
|
8
|
-
|
8
|
+
'systeminfo | findstr /B /C:"System Manufacturer" /C:"System Model"'
|
9
9
|
# Produces a noticeable delay.
|
10
10
|
elsif Os.mac?
|
11
|
-
|
11
|
+
'system_profiler | grep \'Model Identifier\''
|
12
12
|
# Assume:
|
13
13
|
# * OS is a Unix variant.
|
14
14
|
# * dmidecode is installed.
|
15
15
|
else
|
16
|
-
|
16
|
+
'sudo dmidecode -t system | grep Manufacturer|Product'
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|
data/lib/aspects/haskell.rb
CHANGED
@@ -1,27 +1,23 @@
|
|
1
|
-
module Recipe
|
2
|
-
module Package
|
3
|
-
def self.cabal(package)
|
4
|
-
"ghc-pkg list #{package}"
|
5
|
-
end
|
6
|
-
end
|
7
|
-
|
8
|
-
def self.cabal
|
9
|
-
|
10
|
-
end
|
11
|
-
|
12
|
-
def self.ghc
|
13
|
-
|
14
|
-
end
|
15
|
-
|
16
|
-
def self.haskellplatform
|
17
|
-
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.haskell
|
21
|
-
[
|
22
|
-
|
23
|
-
|
24
|
-
haskellplatform
|
25
|
-
]
|
26
|
-
end
|
27
|
-
end
|
1
|
+
module Recipe
|
2
|
+
module Package
|
3
|
+
def self.cabal(package)
|
4
|
+
"ghc-pkg list #{package}"
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.cabal
|
9
|
+
'cabal --version'
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.ghc
|
13
|
+
'ghc --version'
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.haskellplatform
|
17
|
+
'ghc-pkg field haskell-platform version'
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.haskell
|
21
|
+
[cabal, ghc, haskellplatform]
|
22
|
+
end
|
23
|
+
end
|
data/lib/aspects/hd.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.hd
|
3
|
-
if Os.windows?
|
4
|
-
|
5
|
-
else
|
6
|
-
|
7
|
-
end
|
8
|
-
end
|
9
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.hd
|
3
|
+
if Os.windows?
|
4
|
+
'fsutil fsinfo drives'
|
5
|
+
else
|
6
|
+
'df -h'
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|