samer 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/samer/engine.rb +1 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa970d150fe36ec4c3fa8c2423ed85bcdfa286f2
4
- data.tar.gz: dd4efeae6e03d0fed71012f1b6b54954a459a184
3
+ metadata.gz: 989bc24051aaf56c2d3d534084d58fd1f25f0fc8
4
+ data.tar.gz: 09e99955e26f6bf9d827fd91617f358194015163
5
5
  SHA512:
6
- metadata.gz: 26777816344a4b11d00656fce50ffb4b99573bc5d1250fbb70070da194bd09f57ee8483c23cf767a251f23818a5ef8eb8be813a3a15f564ff438e925399d0ddb
7
- data.tar.gz: 8a633740c07bebe5e277f20b222643eacdf5199ac95c8eddbbd7d7d25cae16b12317770f5804a0d1f6475b2c38898b5f00ba63fce4b461aabe86e629f0663630
6
+ metadata.gz: 9e832a7ae1793dbad7a0eb86d8c071a3ba3de584f525b73ec7006ce8bf42c0e0cd7f3ff508c6e0e61a05195c987e0d0e4053c7c2eca1ad76b6e340799764346d
7
+ data.tar.gz: 1db7014953182b98c79ba49c77a541ab9dea01a57a1e85d86d376dbbb66e569b9f2229c0cbf44c811bbebf99cd9cc6861b84fe0254d5d770464e705fb4d01b41
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: samer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgeniy Fateev