oliver 1.5.3.1 → 1.5.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/oliver/version.rb +1 -1
- data/lib/oliver.rb +7 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 018be3f4e573c65ec4ccdf463465c805bf2ffe90
|
4
|
+
data.tar.gz: a8419ea7673bc86b9d9e031773497c9c36020a85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05380fb7a3b4dd3cbba7ff3680a66949064c308a84535d204db6b0cbbd2cc10ccf4c1bbef4526e057664a708f0a6ef31e0e5fca2f723b89e61d6b99a11d041a0
|
7
|
+
data.tar.gz: 944f9f53c07edd80ab773d8962d7ca4633cccb9c827d83fe9d63cd821d3ff7f28e2f2d44ae3fc9f9a407e5df0f8cc8e17c0bad712971874d5f399cab18b8e697
|
data/lib/oliver/version.rb
CHANGED
data/lib/oliver.rb
CHANGED
@@ -11,11 +11,6 @@ require_relative "oliver/main"
|
|
11
11
|
# if the user doesn't want to use rainbow
|
12
12
|
# just disable it completely
|
13
13
|
Rainbow.enabled = false if ARGV[-1].downcase == 'colour=off'
|
14
|
-
if ARGV[-1].downcase == 'color=off'
|
15
|
-
color = "\"color\""
|
16
|
-
puts "Don't you know how to spell #{Rainbow(color).red}?"
|
17
|
-
exit
|
18
|
-
end
|
19
14
|
|
20
15
|
# Right off the bat,
|
21
16
|
# if the user doesn't specify even one argument
|
@@ -25,6 +20,13 @@ if ARGV[0].nil?
|
|
25
20
|
exit
|
26
21
|
end
|
27
22
|
|
23
|
+
# huehuehue
|
24
|
+
if ARGV[-1].downcase == 'color=off'
|
25
|
+
color = "\"color\""
|
26
|
+
puts "Don't you know how to spell #{Rainbow(color).red}?"
|
27
|
+
exit
|
28
|
+
end
|
29
|
+
|
28
30
|
# (Literally) different arguments
|
29
31
|
different_arguments
|
30
32
|
|