cul_omniauth 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8ba38b1d154bb45319aa7a7b320feebbd782d98
4
- data.tar.gz: 3ff2f174925240d120e8787ce5b3074662b8e7f0
3
+ metadata.gz: c61a80d8b694720517e45c004770acf8bfa5d1ab
4
+ data.tar.gz: ba3dec1e16ff45127e6f2dd5b6e40c51f679aacc
5
5
  SHA512:
6
- metadata.gz: b93f0f9c6c8ba0ea242716e8fbe6d87086bb85a562f29b88eedabdeb16f6fabbabcc8a4b37696d29b07dbb031aac976543d0bf00b9b7ac4f052a347e6baa1c80
7
- data.tar.gz: e1cb942dbfb5c8dd68e22d82a433dc0f355df74b5708d079668d920efed3c5088a7543848ea41cbc379fa260f332565aa53599d437140d0ed048b05576a5b4fa
6
+ metadata.gz: 37c0e2aa4045bb96de86c0e4a098a169bb138bd46d49741f4fe4c9f085290fe425b7fa2436eafac785ca85b5089bc3277cd19aaf3473dadac229a39e80471fd5
7
+ data.tar.gz: d33ea623afc2dd57d7b64d423eb3e73936e38ac0a84ffc081959c1e862a3ae79c8e96e2d51f9de2ff7fe6fc8ab510f9bbee92558421b6fa40eb273a1b18678d7
@@ -29,7 +29,11 @@ module Cul::Omniauth::Callbacks
29
29
  session["devise.roles"] = affils
30
30
  if @current_user && @current_user.persisted?
31
31
  message = I18n.t "devise.omniauth_callbacks.success", kind: auth_type
32
- flash[:notice] = message unless message.blank?
32
+ if message.blank?
33
+ flash.delete(:notice)
34
+ else
35
+ flash[:notice] = message
36
+ end
33
37
  sign_in_and_redirect @current_user, :event => :authentication
34
38
  else
35
39
  reason = @current_user ? 'no persisted user for id' : 'no uid in token'
@@ -1,5 +1,5 @@
1
1
  module Cul
2
2
  module Omniauth
3
- VERSION = "0.5.0"
3
+ VERSION = "0.5.1"
4
4
  end
5
5
  end
@@ -221,3 +221,6 @@ no persisted user for id {"uid"=>"foo", "extra"=>{}}
221
221
  no persisted user for id {"uid"=>"foo", "extra"=>{}}
222
222
  no persisted user for id {"uid"=>"foo", "extra"=>{}}
223
223
  no persisted user for id {"uid"=>"foo", "extra"=>{}}
224
+ no persisted user for id {"uid"=>"foo", "extra"=>{}}
225
+ no persisted user for id {"uid"=>"foo", "extra"=>{}}
226
+ no persisted user for id {"uid"=>"foo", "extra"=>{}}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cul_omniauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - barmintor
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-03 00:00:00.000000000 Z
11
+ date: 2015-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails