specs 0.7 → 0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/bin/specs +4 -5
  3. data/lib/aspects/as.rb +15 -15
  4. data/lib/aspects/bios.rb +7 -7
  5. data/lib/aspects/brew.rb +7 -7
  6. data/lib/aspects/chicken.rb +17 -17
  7. data/lib/aspects/chocolatey.rb +7 -7
  8. data/lib/aspects/chrome.rb +15 -15
  9. data/lib/aspects/clojure.rb +13 -13
  10. data/lib/aspects/cpu.rb +14 -14
  11. data/lib/aspects/dmake.rb +5 -5
  12. data/lib/aspects/erlang.rb +13 -13
  13. data/lib/aspects/fabric.rb +5 -5
  14. data/lib/aspects/firefox.rb +13 -13
  15. data/lib/aspects/go.rb +5 -5
  16. data/lib/aspects/hadoop.rb +25 -25
  17. data/lib/aspects/hardware.rb +3 -3
  18. data/lib/aspects/haskell.rb +23 -27
  19. data/lib/aspects/hd.rb +9 -9
  20. data/lib/aspects/ie.rb +7 -7
  21. data/lib/aspects/inkscape.rb +16 -16
  22. data/lib/aspects/java.rb +9 -9
  23. data/lib/aspects/lacheck.rb +5 -0
  24. data/lib/aspects/latex.rb +7 -7
  25. data/lib/aspects/ld.rb +5 -5
  26. data/lib/aspects/links.rb +5 -5
  27. data/lib/aspects/lua.rb +5 -5
  28. data/lib/aspects/net.rb +5 -5
  29. data/lib/aspects/node.rb +19 -19
  30. data/lib/aspects/ocaml.rb +1 -1
  31. data/lib/aspects/opera.rb +14 -14
  32. data/lib/aspects/oz.rb +5 -5
  33. data/lib/aspects/perl.rb +2 -2
  34. data/lib/aspects/php.rb +13 -0
  35. data/lib/aspects/powershell.rb +7 -7
  36. data/lib/aspects/python.rb +13 -13
  37. data/lib/aspects/python3.rb +13 -0
  38. data/lib/aspects/ram.rb +11 -11
  39. data/lib/aspects/redis.rb +9 -3
  40. data/lib/aspects/ruby.rb +23 -23
  41. data/lib/aspects/scala.rb +3 -3
  42. data/lib/aspects/shell.rb +9 -9
  43. data/lib/aspects/splint.rb +5 -0
  44. data/lib/aspects/ssh.rb +5 -5
  45. data/lib/aspects/tap.rb +5 -5
  46. data/lib/aspects/thrift.rb +5 -5
  47. data/lib/aspects/virtualbox.rb +16 -16
  48. data/lib/aspects/xcode.rb +7 -7
  49. data/lib/specs.rb +79 -50
  50. data/lib/version.rb +4 -1
  51. metadata +146 -2
@@ -1,7 +1,7 @@
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
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
@@ -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
- "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
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
@@ -1,30 +1,30 @@
1
1
  module Recipe
2
2
  def self.mvn
3
- "mvn --version"
3
+ 'mvn --version'
4
4
  end
5
5
 
6
6
  def self.classpath
7
- if Os.windows? and not Os.mingw?
8
- "echo %CLASSPATH"
7
+ if Os.windows? && !Os.mingw?
8
+ 'echo %CLASSPATH'
9
9
  else
10
- "echo $CLASSPATH"
10
+ 'echo $CLASSPATH'
11
11
  end
12
12
  end
13
13
 
14
14
  def self.javahome
15
- if Os.windows? and not Os.mingw?
16
- "echo %JAVA_HOME%"
15
+ if Os.windows? && !Os.mingw?
16
+ 'echo %JAVA_HOME%'
17
17
  else
18
- "echo $JAVA_HOME"
18
+ 'echo $JAVA_HOME'
19
19
  end
20
20
  end
21
21
 
22
22
  def self.oak
23
- "java -version"
23
+ 'java -version'
24
24
  end
25
25
 
26
26
  def self.oakc
27
- "javac -version"
27
+ 'javac -version'
28
28
  end
29
29
 
30
30
  def self.java
@@ -0,0 +1,5 @@
1
+ module Recipe
2
+ def self.lacheck
3
+ 'lacheck | grep lacheck.lex'
4
+ end
5
+ end
@@ -1,7 +1,7 @@
1
- module Recipe
2
- def self.latex
3
- if Os.unix?
4
- "pdflatex --version"
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
@@ -1,5 +1,5 @@
1
- module Recipe
2
- def self.ld
3
- "ld -v"
4
- end
5
- end
1
+ module Recipe
2
+ def self.ld
3
+ 'ld -v'
4
+ end
5
+ end
@@ -1,5 +1,5 @@
1
- module Recipe
2
- def self.links
3
- "links -version"
4
- end
5
- end
1
+ module Recipe
2
+ def self.links
3
+ 'links -version'
4
+ end
5
+ end
@@ -1,5 +1,5 @@
1
- module Recipe
2
- def self.lua
3
- "lua -v"
4
- end
5
- end
1
+ module Recipe
2
+ def self.lua
3
+ 'lua -v'
4
+ end
5
+ end
@@ -1,5 +1,5 @@
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
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
@@ -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
- "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
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
@@ -1,5 +1,5 @@
1
1
  module Recipe
2
2
  def self.ocaml
3
- "ocaml -version"
3
+ 'ocaml -version'
4
4
  end
5
5
  end
@@ -1,14 +1,14 @@
1
- module Recipe
2
- def self.opera
3
- # Assumes opera in PATH.
4
- if Os.unix? and not 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
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
@@ -1,5 +1,5 @@
1
- module Recipe
2
- def self.oz
3
- "ozc -v"
4
- end
5
- end
1
+ module Recipe
2
+ def self.oz
3
+ 'ozc -v'
4
+ end
5
+ end
@@ -1,10 +1,10 @@
1
1
  module Recipe
2
2
  def self.cpan
3
- "cpan --version"
3
+ 'cpan --version'
4
4
  end
5
5
 
6
6
  def self.pl
7
- "perl --version"
7
+ 'perl --version'
8
8
  end
9
9
 
10
10
  def self.perl
@@ -0,0 +1,13 @@
1
+ module Recipe
2
+ def self.pear
3
+ 'pear version'
4
+ end
5
+
6
+ def self.ph
7
+ 'php --version'
8
+ end
9
+
10
+ def self.php
11
+ [pear, ph]
12
+ end
13
+ end
@@ -1,7 +1,7 @@
1
- module Recipe
2
- def self.powershell
3
- if Os.windows?
4
- "@powershell Get-Host"
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
@@ -1,13 +1,13 @@
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
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
@@ -0,0 +1,13 @@
1
+ module Recipe
2
+ def self.pip3
3
+ 'pip3 --version'
4
+ end
5
+
6
+ def self.py3
7
+ 'python3 --version'
8
+ end
9
+
10
+ def self.python3
11
+ [pip3, py3]
12
+ end
13
+ end
@@ -1,11 +1,11 @@
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
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
@@ -1,13 +1,19 @@
1
1
  module Recipe
2
2
  def self.redis_cli
3
- "redis-cli --version"
3
+ 'redis-cli --version'
4
4
  end
5
5
 
6
6
  def self.redis_server
7
- "redis-server --version"
7
+ 'redis-server --version'
8
8
  end
9
9
 
10
10
  def self.redis
11
- [redis_cli, redis_server]
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
@@ -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
- "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
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
@@ -1,13 +1,13 @@
1
1
  module Recipe
2
2
  def self.scalac
3
- "scalac -version"
3
+ 'scalac -version'
4
4
  end
5
5
 
6
6
  def self.sbt
7
- "sbt sbt-version"
7
+ 'sbt sbt-version'
8
8
  end
9
9
 
10
10
  def self.scala
11
- [sbt, scalac, java]
11
+ [sbt, scalac]
12
12
  end
13
13
  end