oliver 1.5.3.4 → 1.5.3.5
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/lib/oliver/version.rb +1 -1
- data/lib/oliver.rb +5 -12
- 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: f05528d4574d938f934acd0acc4f62ac361c43dd
|
4
|
+
data.tar.gz: 5b97901985a51b03f9068cca12f053f18e0fe130
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f7c0f18520deaa22a362b2e989aaebdc01e927795001719eae0e496187f7b1e80e9839934ae6138b728225caceca8395854363e46d060dafe5bbf131bbdf9a9
|
7
|
+
data.tar.gz: 06ae35114a12a9ccdc470ab78cdc1e0bab389fb593126d176d37c8f67c70e8180960d80e402e57acd0efbf1eb3ded96b8921ba69b60b4c77d28a05a564e9a007
|
data/lib/oliver/version.rb
CHANGED
data/lib/oliver.rb
CHANGED
@@ -8,23 +8,16 @@ require_relative "oliver/version"
|
|
8
8
|
require_relative "oliver/methods"
|
9
9
|
require_relative "oliver/main"
|
10
10
|
|
11
|
+
# if the user doesn't want to use rainbow
|
12
|
+
# just disable it completely
|
13
|
+
Rainbow.enabled = false if ARGV[-1] == 'colour=off'
|
14
|
+
|
11
15
|
# Right off the bat,
|
12
16
|
# if the user doesn't specify even one argument
|
13
17
|
# just give him some help and quit oliver
|
14
18
|
if ARGV[0].nil?
|
15
19
|
help
|
16
|
-
exit
|
17
|
-
end
|
18
|
-
|
19
|
-
# if the user doesn't want to use rainbow
|
20
|
-
# just disable it completely
|
21
|
-
Rainbow.enabled = false if ARGV[-1].downcase == 'colour=off'
|
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
|
20
|
+
Jib.exit
|
28
21
|
end
|
29
22
|
|
30
23
|
# (Literally) different arguments
|