fakerbot 0.2.0 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/fakerbot/commands/search.rb +5 -1
- data/lib/fakerbot/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: e69f2f82ca880b7296703001d6f5f787cce885a7
|
4
|
+
data.tar.gz: c818353d057e1bb14ffb3ef343e73de63c8fcfdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d8201991eb7fb523e23a91736b1a5752ed32e7746416776d53351357f466ba45dc11b5ddd2c77f8b00b0781d76b799e216fb0bf58fdf94f184298610c73f353
|
7
|
+
data.tar.gz: c86c5b42cde4c3b747f742d2707664c6bc883e0e69bfed210f6add5c906f557c68afdf191c241e4799631ff393cf99a75ff8fc2153cf11e1c594212b6aea6ed5
|
data/Gemfile.lock
CHANGED
@@ -13,7 +13,7 @@ module FakerBot
|
|
13
13
|
|
14
14
|
def execute(input)
|
15
15
|
result = FakerBot::Bot.find(input)
|
16
|
-
puts tree(result).render
|
16
|
+
puts result.empty? ? not_found : tree(result).render
|
17
17
|
end
|
18
18
|
|
19
19
|
def tree(input)
|
@@ -25,6 +25,10 @@ module FakerBot
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
28
|
+
|
29
|
+
def not_found
|
30
|
+
"\n ☹️ Sorry, we couldn't find a match\n"
|
31
|
+
end
|
28
32
|
end
|
29
33
|
end
|
30
34
|
end
|
data/lib/fakerbot/version.rb
CHANGED