devcheck 0.1.8 → 0.2.0
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 +4 -4
- data/devcheck +15 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 533af8aa2f0653929aa02d723aeed5a8b6c518f386c8ce81b307de0641e27b7a
|
|
4
|
+
data.tar.gz: 21a67dc1018254b9c997a554a1254a139c6f6d4731cc3b79251b50db99a8f32a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 806b00d4db5fe9b5eae5c7ca9eb2a332536b136627972b76bafcefe332774b7bbf6a2dbdc8078a95e4614fb50fb48f0f7678a2951368e825c23800f1fec92e04
|
|
7
|
+
data.tar.gz: aa6ee55558cc85f342d4513855fc854937911ad6ef02f89b358fffb83bf3fb23dd35c519e9ddac92a19abcf25a1eabefe47691018e598fd7986d7822baf64244
|
data/devcheck
CHANGED
|
@@ -11,8 +11,14 @@
|
|
|
11
11
|
$failures = 0
|
|
12
12
|
$commands = []
|
|
13
13
|
$files = []
|
|
14
|
+
$name = ""
|
|
14
15
|
|
|
16
|
+
require 'rubygems'
|
|
15
17
|
# Define Functions
|
|
18
|
+
def name(name = "devcheck")
|
|
19
|
+
$name = name
|
|
20
|
+
end
|
|
21
|
+
|
|
16
22
|
def command(name)
|
|
17
23
|
$commands << name
|
|
18
24
|
end
|
|
@@ -21,6 +27,10 @@ def file(name)
|
|
|
21
27
|
$files << name
|
|
22
28
|
end
|
|
23
29
|
|
|
30
|
+
def get_version
|
|
31
|
+
spec = Gem::Specification::load('devcheck.gemspec')
|
|
32
|
+
version = spec.version
|
|
33
|
+
end
|
|
24
34
|
|
|
25
35
|
def command_exists?(cmd)
|
|
26
36
|
# On Windows, use 'where', on Unix-like systems use 'which'
|
|
@@ -53,9 +63,13 @@ rescue LoadError
|
|
|
53
63
|
exit 1
|
|
54
64
|
end
|
|
55
65
|
|
|
66
|
+
|
|
67
|
+
|
|
56
68
|
# Main Function
|
|
69
|
+
version = get_version
|
|
57
70
|
|
|
58
|
-
puts "devcheck"
|
|
71
|
+
puts "devcheck v#{version}"
|
|
72
|
+
puts "Environment Name: #{$name}"
|
|
59
73
|
puts "Checking Development Environment"
|
|
60
74
|
puts ""
|
|
61
75
|
|