samer 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/samer/engine.rb +1 -0
- 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: 989bc24051aaf56c2d3d534084d58fd1f25f0fc8
|
4
|
+
data.tar.gz: 09e99955e26f6bf9d827fd91617f358194015163
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e832a7ae1793dbad7a0eb86d8c071a3ba3de584f525b73ec7006ce8bf42c0e0cd7f3ff508c6e0e61a05195c987e0d0e4053c7c2eca1ad76b6e340799764346d
|
7
|
+
data.tar.gz: 1db7014953182b98c79ba49c77a541ab9dea01a57a1e85d86d376dbbb66e569b9f2229c0cbf44c811bbebf99cd9cc6861b84fe0254d5d770464e705fb4d01b41
|
data/lib/samer/engine.rb
CHANGED
@@ -12,6 +12,7 @@ module Samer
|
|
12
12
|
def find_for name
|
13
13
|
similar = {}
|
14
14
|
current_user = @users.find{ |user| user.name == name }
|
15
|
+
return "User @#{name} is not present in example users list. See it in lib/data/users.yml" unless current_user
|
15
16
|
|
16
17
|
@users.each do |user|
|
17
18
|
next if user.name == current_user.name
|