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
data/lib/aspects/ie.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.ie
|
3
|
-
if Os.windows?
|
4
|
-
|
5
|
-
end
|
6
|
-
end
|
7
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.ie
|
3
|
+
if Os.windows?
|
4
|
+
'reg query "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Internet Explorer" /v Version'
|
5
|
+
end
|
6
|
+
end
|
7
|
+
end
|
data/lib/aspects/inkscape.rb
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.inkscape
|
3
|
-
case Os.os_name
|
4
|
-
when :windows
|
5
|
-
if Os.x86_64?
|
6
|
-
|
7
|
-
else
|
8
|
-
"
|
9
|
-
end
|
10
|
-
when :mac
|
11
|
-
|
12
|
-
else
|
13
|
-
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.inkscape
|
3
|
+
case Os.os_name
|
4
|
+
when :windows
|
5
|
+
if Os.x86_64?
|
6
|
+
'C:\\Program Files (x86)\\Inkscape\\inkscape --version'
|
7
|
+
else
|
8
|
+
'"C:\\Program Files\\Inkscape\\inkscape" --version'
|
9
|
+
end
|
10
|
+
when :mac
|
11
|
+
'/Applications/Inkscape.app/Contents/Resources/bin/inkscape --version'
|
12
|
+
else
|
13
|
+
'inkscape --version'
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/aspects/java.rb
CHANGED
@@ -1,30 +1,30 @@
|
|
1
1
|
module Recipe
|
2
2
|
def self.mvn
|
3
|
-
|
3
|
+
'mvn --version'
|
4
4
|
end
|
5
5
|
|
6
6
|
def self.classpath
|
7
|
-
if Os.windows?
|
8
|
-
|
7
|
+
if Os.windows? && !Os.mingw?
|
8
|
+
'echo %CLASSPATH'
|
9
9
|
else
|
10
|
-
|
10
|
+
'echo $CLASSPATH'
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
14
14
|
def self.javahome
|
15
|
-
if Os.windows?
|
16
|
-
|
15
|
+
if Os.windows? && !Os.mingw?
|
16
|
+
'echo %JAVA_HOME%'
|
17
17
|
else
|
18
|
-
|
18
|
+
'echo $JAVA_HOME'
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
22
|
def self.oak
|
23
|
-
|
23
|
+
'java -version'
|
24
24
|
end
|
25
25
|
|
26
26
|
def self.oakc
|
27
|
-
|
27
|
+
'javac -version'
|
28
28
|
end
|
29
29
|
|
30
30
|
def self.java
|
data/lib/aspects/latex.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.latex
|
3
|
-
if Os.unix?
|
4
|
-
|
5
|
-
end
|
6
|
-
end
|
7
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.latex
|
3
|
+
if Os.unix?
|
4
|
+
'pdflatex --version'
|
5
|
+
end
|
6
|
+
end
|
7
|
+
end
|
data/lib/aspects/ld.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.ld
|
3
|
-
|
4
|
-
end
|
5
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.ld
|
3
|
+
'ld -v'
|
4
|
+
end
|
5
|
+
end
|
data/lib/aspects/links.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.links
|
3
|
-
|
4
|
-
end
|
5
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.links
|
3
|
+
'links -version'
|
4
|
+
end
|
5
|
+
end
|
data/lib/aspects/lua.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.lua
|
3
|
-
|
4
|
-
end
|
5
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.lua
|
3
|
+
'lua -v'
|
4
|
+
end
|
5
|
+
end
|
data/lib/aspects/net.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.net
|
3
|
-
|
4
|
-
end
|
5
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.net
|
3
|
+
'ruby -e "require \'net/http\'; puts Net::HTTP.new(\'icanhazip.com\').request(Net::HTTP::Get.new(\'/\', {\'User-Agent\'=>\'curl\'})).body"'
|
4
|
+
end
|
5
|
+
end
|
data/lib/aspects/node.rb
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
module Recipe
|
2
|
-
module Package
|
3
|
-
def self.npm(package)
|
4
|
-
"npm list #{package}"
|
5
|
-
end
|
6
|
-
end
|
7
|
-
|
8
|
-
def self.npm_tool
|
9
|
-
|
10
|
-
end
|
11
|
-
|
12
|
-
def self.js
|
13
|
-
|
14
|
-
end
|
15
|
-
|
16
|
-
def self.node
|
17
|
-
[npm_tool, js]
|
18
|
-
end
|
19
|
-
end
|
1
|
+
module Recipe
|
2
|
+
module Package
|
3
|
+
def self.npm(package)
|
4
|
+
"npm list #{package}"
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.npm_tool
|
9
|
+
'npm --version'
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.js
|
13
|
+
'node --version'
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.node
|
17
|
+
[npm_tool, js]
|
18
|
+
end
|
19
|
+
end
|
data/lib/aspects/ocaml.rb
CHANGED
data/lib/aspects/opera.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.opera
|
3
|
-
# Assumes opera in PATH.
|
4
|
-
if Os.unix?
|
5
|
-
|
6
|
-
# Opera for Mac/Windows does not support the -version command line option.
|
7
|
-
# # Assumes Opera is installed in the default directory.
|
8
|
-
# elsif Os.mac?
|
9
|
-
#
|
10
|
-
# elsif Os.windows?
|
11
|
-
#
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.opera
|
3
|
+
# Assumes opera in PATH.
|
4
|
+
if Os.unix? && !Os.mac?
|
5
|
+
'opera -version'
|
6
|
+
# Opera for Mac/Windows does not support the -version command line option.
|
7
|
+
# # Assumes Opera is installed in the default directory.
|
8
|
+
# elsif Os.mac?
|
9
|
+
# '/Applications/Opera.app/Contents/MacOS/Opera -version'
|
10
|
+
# elsif Os.windows?
|
11
|
+
# 'C:\\Program Files (x86)\\Opera\\opera -version'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
data/lib/aspects/oz.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.oz
|
3
|
-
|
4
|
-
end
|
5
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.oz
|
3
|
+
'ozc -v'
|
4
|
+
end
|
5
|
+
end
|
data/lib/aspects/perl.rb
CHANGED
data/lib/aspects/php.rb
ADDED
data/lib/aspects/powershell.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.powershell
|
3
|
-
if Os.windows?
|
4
|
-
|
5
|
-
end
|
6
|
-
end
|
7
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.powershell
|
3
|
+
if Os.windows?
|
4
|
+
'@powershell Get-Host'
|
5
|
+
end
|
6
|
+
end
|
7
|
+
end
|
data/lib/aspects/python.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.pip
|
3
|
-
|
4
|
-
end
|
5
|
-
|
6
|
-
def self.py
|
7
|
-
|
8
|
-
end
|
9
|
-
|
10
|
-
def self.python
|
11
|
-
[pip, py]
|
12
|
-
end
|
13
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.pip
|
3
|
+
'pip --version'
|
4
|
+
end
|
5
|
+
|
6
|
+
def self.py
|
7
|
+
'python --version'
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.python
|
11
|
+
[pip, py]
|
12
|
+
end
|
13
|
+
end
|
data/lib/aspects/ram.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
module Recipe
|
2
|
-
def self.ram
|
3
|
-
if Os.windows?
|
4
|
-
|
5
|
-
elsif Os.mac?
|
6
|
-
|
7
|
-
else
|
8
|
-
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
1
|
+
module Recipe
|
2
|
+
def self.ram
|
3
|
+
if Os.windows?
|
4
|
+
'systeminfo | findstr /C:"Total Physical Memory"'
|
5
|
+
elsif Os.mac?
|
6
|
+
'system_profiler | grep \'Memory:\''
|
7
|
+
else
|
8
|
+
'grep MemTotal /proc/meminfo'
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
data/lib/aspects/redis.rb
CHANGED
@@ -1,13 +1,19 @@
|
|
1
1
|
module Recipe
|
2
2
|
def self.redis_cli
|
3
|
-
|
3
|
+
'redis-cli --version'
|
4
4
|
end
|
5
5
|
|
6
6
|
def self.redis_server
|
7
|
-
|
7
|
+
'redis-server --version'
|
8
8
|
end
|
9
9
|
|
10
10
|
def self.redis
|
11
|
-
|
11
|
+
# In Windows, Redis server is provided as a service
|
12
|
+
# instead of a CLI program.
|
13
|
+
if Os.windows?
|
14
|
+
redis_cli
|
15
|
+
else
|
16
|
+
[redis_cli, redis_server]
|
17
|
+
end
|
12
18
|
end
|
13
19
|
end
|
data/lib/aspects/ruby.rb
CHANGED
@@ -1,23 +1,23 @@
|
|
1
|
-
module Recipe
|
2
|
-
module Package
|
3
|
-
def self.gem(package)
|
4
|
-
"gem list | grep #{package}"
|
5
|
-
end
|
6
|
-
end
|
7
|
-
|
8
|
-
def self.bundler
|
9
|
-
|
10
|
-
end
|
11
|
-
|
12
|
-
def self.rubygems
|
13
|
-
|
14
|
-
end
|
15
|
-
|
16
|
-
def self.rb
|
17
|
-
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.ruby
|
21
|
-
[bundler, rubygems, rb]
|
22
|
-
end
|
23
|
-
end
|
1
|
+
module Recipe
|
2
|
+
module Package
|
3
|
+
def self.gem(package)
|
4
|
+
"gem list | grep #{package}"
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.bundler
|
9
|
+
'bundle --version'
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.rubygems
|
13
|
+
'gem --version'
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.rb
|
17
|
+
'ruby --version'
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.ruby
|
21
|
+
[bundler, rubygems, rb]
|
22
|
+
end
|
23
|
+
end
|
data/lib/aspects/scala.rb
CHANGED