volt-user_templates 0.1.2 → 0.1.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: 4da747888cdb75be79891a93686f5a0ffd86fff3
4
- data.tar.gz: 3227d35a3306ed6d92904da099f20237c189d373
3
+ metadata.gz: 70548ddb76f0bc5eb9338c30f83b063d46dfb9df
4
+ data.tar.gz: 2c37273ac2911dca47f5dfe5dc1b78b32146084c
5
5
  SHA512:
6
- metadata.gz: 840e21927a6c47894bd231d32415f7d1e44a0dcf0468b2e92760c8b1142b1aacf68511e416046a24157001d7b8f87fbc4a0072166c96c485d93dbfc1ad840a6c
7
- data.tar.gz: 5042454d2a388668a65393fec3907483975b7cbbddbe712db7228b9000ec0308ce8c704ee8fd76af9dc6d104969361797613ba6c53751e63391e29ccdd15e952
6
+ metadata.gz: d4179eb9fd3b0d79ae4a5961bea85a3333fe7dae004c1d8a0a986f5560e7ed1d0a109ede1a6687bbc92a38f68e094e1e8be814ffca33e1b76db1e81308ee153d
7
+ data.tar.gz: a888bf3d8c6de5413bb1b07c65f1c4d2261bb872d7f342c7976ebadf073f491adbad4b6f15ce42f0c9c3953f1d56501a1615a7e7c5e3656bf1dcbd200805fe27
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -11,7 +11,7 @@ module UserTemplates
11
11
  self.login = ''
12
12
  self.password = ''
13
13
 
14
- go(attrs.post_login_url.or('/'))
14
+ go(attrs.post_login_url || '/')
15
15
 
16
16
  nil
17
17
  end.fail do |errors|
@@ -2,7 +2,7 @@ module UserTemplates
2
2
  class MenuController < Volt::ModelController
3
3
  def show_name
4
4
  Volt.fetch_current_user.then do |user|
5
- user._name.or(user._email).or(user._username)
5
+ user._name || user._email || user._username
6
6
  end
7
7
  end
8
8
  end
@@ -12,7 +12,7 @@ module UserTemplates
12
12
  save!.then do |result|
13
13
  flash._notices << "Signup successful"
14
14
 
15
- post_signup_url = attrs.post_signup_url.or('/')
15
+ post_signup_url = attrs.post_signup_url || '/'
16
16
 
17
17
  # On a successful signup, then login
18
18
  Volt.login(login, password).then do
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.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Stout