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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d6f9c6012e690d78b9fe3312c3df35ab4e9f0fb0
4
- data.tar.gz: ba34f6335dbfc51d8cec5f4d81e8886053da87e5
3
+ metadata.gz: e69f2f82ca880b7296703001d6f5f787cce885a7
4
+ data.tar.gz: c818353d057e1bb14ffb3ef343e73de63c8fcfdd
5
5
  SHA512:
6
- metadata.gz: 22b90cab9064cb1e24f6f71bef7e6df71af6e70a81615a51a894dd70820e90897dd1c71f3f93175c0ccfeb1385415823ce0b5076007851aded1feadba9eaa24d
7
- data.tar.gz: 97d80d7590d2758720536390d31cdd909f0c7e2f16bf8ecb2416799ece3e6db83c8c5fa3bb947c4dd4aec41d8f6a93a2dcfdb91b0ee56cc80527736f9296e63c
6
+ metadata.gz: 3d8201991eb7fb523e23a91736b1a5752ed32e7746416776d53351357f466ba45dc11b5ddd2c77f8b00b0781d76b799e216fb0bf58fdf94f184298610c73f353
7
+ data.tar.gz: c86c5b42cde4c3b747f742d2707664c6bc883e0e69bfed210f6add5c906f557c68afdf191c241e4799631ff393cf99a75ff8fc2153cf11e1c594212b6aea6ed5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fakerbot (0.1.2)
4
+ fakerbot (0.2.3)
5
5
  faker
6
6
  pastel (~> 0.7.2)
7
7
  thor (~> 0.20.0)
@@ -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
@@ -1,3 +1,3 @@
1
1
  module FakerBot
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.2.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fakerbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Kabiru