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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36999473e0e21ab855261076a6923cce074fe489
4
- data.tar.gz: 2c77a549c749788cfa104316194f04d45292f75d
3
+ metadata.gz: c609f2d1e160eeaa81d2faabc1d61c00f2fb8a06
4
+ data.tar.gz: a0d86e3d3374729947f6b336a9ba3521cd7de76c
5
5
  SHA512:
6
- metadata.gz: c5af406b0d620e4075e35d26ec58cdfaa893b80b33ebd9e21e41a9151d11efee73a347f5d7ab7a441e825749d334f874af0100aa72c8895b86c73b1807e1139d
7
- data.tar.gz: c64ee04ee539dee4e07fa75be9df3fcd9b1d7c66ce0a9dba830ecf4123c2b828b066baa4b215d7fc8eefada0ccd1c6937f39dfc51eae7a2647fffa5b776632f2
6
+ metadata.gz: f982fb92f43ab1e91faa621e71863dfc38e940540787eefc9c9a88991ad0528c3298954f1fb93fdc2596767d55f0e54213fb11a95e78c80a20239bb00270da19
7
+ data.tar.gz: e85ed40341f5341c7df686300c7a8d89211277bfd8f20e41b2bc44d02bb7dfe2d4546efa660502c7808a49f63c974fa82b05fb9796c87bd40d1acf20436aff36
data/bin/specs CHANGED
@@ -1,10 +1,9 @@
1
- #!/bin/env ruby
2
-
3
- require "rubygems"
4
- require "specs"
1
+ #!/usr/bin/env ruby
2
+ require 'rubygems'
3
+ require 'specs'
5
4
 
6
5
  begin
7
6
  main
8
- rescue Interrupt => e
7
+ rescue Interrupt
9
8
  nil
10
9
  end
@@ -1,15 +1,15 @@
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
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
@@ -1,7 +1,7 @@
1
- module Recipe
2
- def self.bios
3
- if Os.windows?
4
- "systeminfo | findstr /B /C:\"BIOS Version\""
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
@@ -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
@@ -1,17 +1,17 @@
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
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
@@ -1,7 +1,7 @@
1
- module Recipe
2
- def self.chocolatey
3
- if Os.windows?
4
- "chocolatey version"
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
@@ -1,15 +1,15 @@
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
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
@@ -1,13 +1,13 @@
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
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
@@ -1,14 +1,14 @@
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
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
@@ -1,5 +1,5 @@
1
- module Recipe
2
- def self.dmake
3
- "dmake -V"
4
- end
5
- end
1
+ module Recipe
2
+ def self.dmake
3
+ 'dmake -V'
4
+ end
5
+ end
@@ -1,13 +1,13 @@
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
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
@@ -1,5 +1,5 @@
1
- module Recipe
2
- def self.fabric
3
- "fab --version"
4
- end
5
- end
1
+ module Recipe
2
+ def self.fabric
3
+ 'fab --version'
4
+ end
5
+ end
@@ -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
- "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
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
@@ -1,5 +1,5 @@
1
- module Recipe
2
- def self.go
3
- "go version"
4
- end
5
- end
1
+ module Recipe
2
+ def self.go
3
+ 'go version'
4
+ end
5
+ end
@@ -1,25 +1,25 @@
1
- module Recipe
2
- def self.hadoophome
3
- if Os.windows? and not 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? and not 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
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
@@ -5,15 +5,15 @@ module Recipe
5
5
  def self.hardware
6
6
  # Use environment variable.
7
7
  if Os.windows?
8
- "systeminfo | findstr /B /C:\"System Manufacturer\" /C:\"System Model\""
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 | 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,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
- "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
- [
22
- cabal,
23
- ghc,
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
@@ -1,9 +1,9 @@
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
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