oliver 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/oliver/commands.rb +2 -2
- data/lib/oliver/helpers.rb +5 -4
- data/lib/oliver/version.rb +1 -1
- 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: cd8b83ecd2172dc6061fa1448b42e15ace41c6b9
|
4
|
+
data.tar.gz: 66c5f646ebc146a14b799a36ca5d40d14c084c0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 001824bc958c2ede3654db9c650ab11b4daaeb1a660673d264114776f54dadc9424e43d502b75ab7a895c07fde95b73ed9da274d2c233870930e3732333aac46
|
7
|
+
data.tar.gz: 38d0205ec75e34df3e2a6c7ffa9cc065772e056201d07a2d1a11af83869d5583d05b23d240eca81809906b9f4339c71d20de781e7583cb5a767a475538621c37
|
data/lib/oliver/commands.rb
CHANGED
@@ -60,8 +60,8 @@ Commands:\n
|
|
60
60
|
# check if listed and local (good)
|
61
61
|
# star if listed but not local
|
62
62
|
# x if local but not listed
|
63
|
-
log('.oliver does not exist', :error) unless Helpers.oliver_exists?
|
64
|
-
log('.oliver is empty', :error) if Helpers.file.empty?
|
63
|
+
Helpers.log('.oliver does not exist', :error) unless Helpers.oliver_exists?
|
64
|
+
Helpers.log('.oliver is empty', :error) if Helpers.file.empty?
|
65
65
|
|
66
66
|
Helpers.file.map do |user, repos|
|
67
67
|
repos.each do |repo|
|
data/lib/oliver/helpers.rb
CHANGED
@@ -27,10 +27,11 @@ module Helpers
|
|
27
27
|
|
28
28
|
def log(text, priority=:default)
|
29
29
|
symbol = "==>"
|
30
|
-
symbols = {
|
31
|
-
|
32
|
-
|
33
|
-
|
30
|
+
symbols = {
|
31
|
+
:default => symbol.colorize(:blue),
|
32
|
+
:warning => symbol.colorize(:yellow),
|
33
|
+
:error => symbol.colorize(:red),
|
34
|
+
:success => symbol.colorize(:green) }
|
34
35
|
return "#{symbols[priority]} #{text}"
|
35
36
|
end
|
36
37
|
|
data/lib/oliver/version.rb
CHANGED