specs 0.3 → 0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +15 -0
- data/LICENSE.md +22 -22
- data/bin/specs +10 -10
- data/lib/aspects/chrome.rb +1 -5
- data/lib/aspects/clojure.rb +1 -1
- data/lib/aspects/oz.rb +5 -0
- data/lib/specs.rb +6 -33
- metadata +5 -6
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZWRhMzIxODY1MTg5ODdjZWVmOGIwYmYzMTg5MThiMjJjYTY4OTFiZg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZDVmNWZlMjJjOGEzODlmY2UyNGI2OGJiNjI4ODZmNTU5ODI5NDdhNA==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZjljM2M3NjkwYzA4ZDkxYzZmMzJkMTljMjRkNmI4ZTQwNWQ1YzlkN2RiOGY0
|
10
|
+
NzJmOGY5MjY2ODc4ZDViNmE2MTcwMGVmOTllZDFkNmI5MDBiMWNkMjdlZGY2
|
11
|
+
ZDRlOGZjYzQ3YjQxNWIwYTA1ZDMzNzFiZDc5MzkwNWMxZGNmODI=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
Mjc2MzkxNzY3MDk1NzgzNGI0NjRmN2Q0NDRkYTE1M2VkMDA3MDE3MjdmMTll
|
14
|
+
MjAzN2U1OTUwMTcxNDYxMTJiZGY0OTNmMDk1ODdhOGM0MTg1ZGFkNjY2NjYw
|
15
|
+
OTZjODUxZjkyMDU0NTk3MDQ3ZjgyODFkZWQwYWQzOWJmZDE1M2Q=
|
data/LICENSE.md
CHANGED
@@ -1,23 +1,23 @@
|
|
1
|
-
# FreeBSD License
|
2
|
-
|
3
|
-
# Copyright 2012 Andrew Pennebaker. All rights reserved.
|
4
|
-
|
5
|
-
Redistribution and use in source and binary forms, with or without modification,
|
6
|
-
are permitted provided that the following conditions are met:
|
7
|
-
|
8
|
-
1. Redistributions of source code must retain the above copyright notice, this
|
9
|
-
list of conditions and the following disclaimer.
|
10
|
-
2. Redistributions in binary form must reproduce the above copyright notice,
|
11
|
-
this list of conditions and the following disclaimer in the documentation and/or
|
12
|
-
other materials provided with the distribution.
|
13
|
-
|
14
|
-
THIS SOFTWARE IS PROVIDED BY THE AUTHORS "AS IS" AND ANY EXPRESS OR IMPLIED
|
15
|
-
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
16
|
-
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
|
17
|
-
SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
18
|
-
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
19
|
-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
20
|
-
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
21
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
22
|
-
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
1
|
+
# FreeBSD License
|
2
|
+
|
3
|
+
# Copyright 2012 Andrew Pennebaker. All rights reserved.
|
4
|
+
|
5
|
+
Redistribution and use in source and binary forms, with or without modification,
|
6
|
+
are permitted provided that the following conditions are met:
|
7
|
+
|
8
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
9
|
+
list of conditions and the following disclaimer.
|
10
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
11
|
+
this list of conditions and the following disclaimer in the documentation and/or
|
12
|
+
other materials provided with the distribution.
|
13
|
+
|
14
|
+
THIS SOFTWARE IS PROVIDED BY THE AUTHORS "AS IS" AND ANY EXPRESS OR IMPLIED
|
15
|
+
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
16
|
+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
|
17
|
+
SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
18
|
+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
19
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
20
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
21
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
22
|
+
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
23
23
|
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
data/bin/specs
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
#!/bin/env ruby
|
2
|
-
|
3
|
-
require "rubygems"
|
4
|
-
require "specs"
|
5
|
-
|
6
|
-
begin
|
7
|
-
|
8
|
-
rescue Interrupt => e
|
9
|
-
|
10
|
-
end
|
1
|
+
#!/bin/env ruby
|
2
|
+
|
3
|
+
require "rubygems"
|
4
|
+
require "specs"
|
5
|
+
|
6
|
+
begin
|
7
|
+
main
|
8
|
+
rescue Interrupt => e
|
9
|
+
nil
|
10
|
+
end
|
data/lib/aspects/chrome.rb
CHANGED
@@ -4,11 +4,7 @@ module Recipe
|
|
4
4
|
if Os.mac?
|
5
5
|
"/Applications/Google\\ Chrome.app/Contents/MacOS/Google\\ Chrome --version 2>&1 | grep -v Unsure" # Redirect stderr to stdout
|
6
6
|
elsif Os.windows?
|
7
|
-
|
8
|
-
"%UserProfile%\\AppData\\Local\\Google\\Chrome\\Application\\chrome --version"
|
9
|
-
else
|
10
|
-
"\"C:\\Program Files\\Google\\Chrome\\Application\\chrome\" --version"
|
11
|
-
end
|
7
|
+
"reg query \"HKEY_LOCAL_MACHINE\\SOFTWARE\\Google\\Update\\Clients\\{4DC8B4CA-1BDA-483e-B5FA-D3C12E15B62D}\""
|
12
8
|
# Assumes
|
13
9
|
# * binary is google-chrome.
|
14
10
|
# * binary is in PATH.
|
data/lib/aspects/clojure.rb
CHANGED
data/lib/aspects/oz.rb
ADDED
data/lib/specs.rb
CHANGED
@@ -29,7 +29,7 @@
|
|
29
29
|
require "getoptlong"
|
30
30
|
require "pathname"
|
31
31
|
|
32
|
-
SPECS_VERSION = "0.
|
32
|
+
SPECS_VERSION = "0.4"
|
33
33
|
SPECS_VERSION_STRING = "specs #{SPECS_VERSION}"
|
34
34
|
SPECS_HOME_PAGE = "https://github.com/mcandre/specs#readme"
|
35
35
|
|
@@ -187,9 +187,8 @@ def run(cmd, aspect)
|
|
187
187
|
# Newline to visually separate multiple aspect commands.
|
188
188
|
puts ""
|
189
189
|
|
190
|
-
if cmd
|
190
|
+
if !cmd
|
191
191
|
puts "#{aspect} aspect not implemented for this system"
|
192
|
-
|
193
192
|
elsif cmd == SPECS_VERSION_STRING
|
194
193
|
puts "specs --version"
|
195
194
|
puts SPECS_VERSION_STRING
|
@@ -206,16 +205,6 @@ def run(cmd, aspect)
|
|
206
205
|
end
|
207
206
|
end
|
208
207
|
|
209
|
-
def usage
|
210
|
-
system "more specs.rb"
|
211
|
-
exit
|
212
|
-
end
|
213
|
-
|
214
|
-
def print_specs_own_version
|
215
|
-
puts SPECS_VERSION_STRING
|
216
|
-
puts SPECS_HOME_PAGE
|
217
|
-
end
|
218
|
-
|
219
208
|
def check_ruby_version
|
220
209
|
if RUBY_VERSION =~ /^1\.8/
|
221
210
|
puts "Requires Ruby 1.9+"
|
@@ -227,23 +216,9 @@ end
|
|
227
216
|
def main
|
228
217
|
check_ruby_version
|
229
218
|
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
)
|
234
|
-
|
235
|
-
begin
|
236
|
-
opts.each { |option, value|
|
237
|
-
case option
|
238
|
-
when "--help"
|
239
|
-
usage
|
240
|
-
when "--version"
|
241
|
-
print_specs_own_version
|
242
|
-
end
|
243
|
-
}
|
244
|
-
rescue GetoptLong::InvalidOption
|
245
|
-
usage
|
246
|
-
end
|
219
|
+
puts "Specs:\n\n#{SPECS_VERSION_STRING}\n#{SPECS_HOME_PAGE}"
|
220
|
+
|
221
|
+
exit if ARGV.include?("--version")
|
247
222
|
|
248
223
|
# Default aspects
|
249
224
|
aspects = ["specs", "os", "hardware"]
|
@@ -252,15 +227,13 @@ def main
|
|
252
227
|
end
|
253
228
|
|
254
229
|
aspects = aspects - ["specs"]
|
255
|
-
puts "Specs:\n\n"
|
256
|
-
print_specs_own_version
|
257
230
|
|
258
231
|
aspects.each { |aspect|
|
259
232
|
# What does the aspect module say to run
|
260
233
|
# in order to retrieve the aspect information?
|
261
234
|
cmds = command(aspect)
|
262
235
|
|
263
|
-
if cmds
|
236
|
+
if !cmds or cmds.instance_of?(String)
|
264
237
|
run(cmds, aspect)
|
265
238
|
# Module returns an array of command strings.
|
266
239
|
elsif cmds.instance_of?(Array)
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: specs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
5
|
-
prerelease:
|
4
|
+
version: '0.4'
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Andrew Pennebaker
|
@@ -39,6 +38,7 @@ files:
|
|
39
38
|
- lib/aspects/node.rb
|
40
39
|
- lib/aspects/ocaml.rb
|
41
40
|
- lib/aspects/opera.rb
|
41
|
+
- lib/aspects/oz.rb
|
42
42
|
- lib/aspects/perl.rb
|
43
43
|
- lib/aspects/powershell.rb
|
44
44
|
- lib/aspects/ram.rb
|
@@ -52,26 +52,25 @@ files:
|
|
52
52
|
- bin/specs
|
53
53
|
homepage: https://github.com/mcandre/specs
|
54
54
|
licenses: []
|
55
|
+
metadata: {}
|
55
56
|
post_install_message:
|
56
57
|
rdoc_options: []
|
57
58
|
require_paths:
|
58
59
|
- lib
|
59
60
|
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
-
none: false
|
61
61
|
requirements:
|
62
62
|
- - ! '>='
|
63
63
|
- !ruby/object:Gem::Version
|
64
64
|
version: '0'
|
65
65
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
66
|
requirements:
|
68
67
|
- - ! '>='
|
69
68
|
- !ruby/object:Gem::Version
|
70
69
|
version: '0'
|
71
70
|
requirements: []
|
72
71
|
rubyforge_project:
|
73
|
-
rubygems_version:
|
72
|
+
rubygems_version: 2.0.3
|
74
73
|
signing_key:
|
75
|
-
specification_version:
|
74
|
+
specification_version: 4
|
76
75
|
summary: Software version information at your fingertips
|
77
76
|
test_files: []
|