volt-user_templates 0.2.0 → 0.2.1

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: a169f842ffc8ac6249c95f115aa4d83ca0d46ae9
4
- data.tar.gz: d62855a1ef6018a30db81b58429db925fa4e6f1b
3
+ metadata.gz: 0eaaeb969ed0696f54bb7050cb51ce7ff49897f7
4
+ data.tar.gz: 006cd8c8e3220f4b7f48b0b77d5a7c53a114b52d
5
5
  SHA512:
6
- metadata.gz: c65b247fc8120f057d3497d7cd9320dbe09e603af6d5ec0ff06a53d5fdf2d06ece15246f18c2f216145134feb67efaef5546db05f4151b253fcaf5bec5a15306
7
- data.tar.gz: dca98dd40b3ee81946a7b4b66f9f17685ed952d9530be520caaa4f6cb058b865aa851fd379021586ce8d2431f839eaf433618489ae0a14c9ba53461345cce0b2
6
+ metadata.gz: 4511e46fd90c38d93946c54b767cfdb0a12b124635a649ce822abeda44d18205c69c3a4cdb56d2384852ce1092ccd23edbb7ea10d80084b9fd4403223ca17e9e
7
+ data.tar.gz: a814236105ff75a201acc49df0523b7b5ea7db88e1edf4cd1231e3069cb5cdc3fd06f355a2f55caedef0cedf02c16b786de10c23761139bc122fdbca2509e999
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -3,11 +3,12 @@ class UserTemplateTasks < Volt::Task
3
3
  # Find user by e-mail
4
4
  Volt.skip_permissions do
5
5
  store._users.where(email: email).fetch_first do |user|
6
- Mailer.deliver('user_templates/mailers/forgot', {to: email, name: user._name}).then do
7
- true
6
+ if user
7
+ Mailer.deliver('user_templates/mailers/forgot', {to: email, name: user._name})
8
+ else
9
+ raise "There is no account with the e-mail of #{email}."
8
10
  end
9
11
  end
10
12
  end
11
-
12
13
  end
13
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volt-user_templates
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Stout