incline 0.2.8 → 0.2.9

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: 96abfaafca9bf6706a2f20c026892324ed54535e
4
- data.tar.gz: 774487236771970729fe63b66f01051c0186635b
3
+ metadata.gz: dbae7c62994b97391e8dd5fdce61b99e8c807c1e
4
+ data.tar.gz: a818d364f285e349983058efc25f743285f14cd9
5
5
  SHA512:
6
- metadata.gz: c7c8dfba5bbbb8dd7098d1a0471b369990b50f955577c4240254d7fd7aa16c7353ef25352438e5a55bd321f415d5f20fce1dbab3decf2d69537c1d0cdc5c5637
7
- data.tar.gz: ce534a4d60ebb59f9b7c00aecb9389a23bedfb6e0f9b82fec5610e25ef8eeee3fb2cd9e42928370bedab947a4a2395bdae95bd92a934ddce46189e2b3c955eed
6
+ metadata.gz: c77a4ca28433d4948d2dda39b3e808a29311b24399c6394abe01c20690688f4c7b4bb531369174c321ee8e2937ba53d65ec36af79c641ed41d4e0ccdfa584ffe
7
+ data.tar.gz: 5f09342e29be9f1486a999a0b9246162c6b866d56296c6393aeda433ea41fde9faf775b6ea90d5137d4bcd0d12fde373315ec793ea68c893a848e71f27de01b8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- incline (0.2.8)
4
+ incline (0.2.9)
5
5
  ansi (~> 1.5.0)
6
6
  bcrypt
7
7
  bootstrap-sass
@@ -285,13 +285,13 @@ module Incline::Extensions
285
285
  # an authenticated user must exist.
286
286
  unless logged_in?
287
287
 
288
+ store_location
289
+
288
290
  if (auth_url = ::Incline::UserManager.begin_external_authentication(request))
289
291
  ::Incline::Log.debug 'Redirecting for external authentication.'
290
292
  redirect_to auth_url
291
293
  return false
292
294
  end
293
-
294
- store_location
295
295
 
296
296
  raise_not_logged_in "You need to login to access '#{request.fullpath}'.",
297
297
  'nobody is logged in'
@@ -429,7 +429,7 @@ module Incline::Extensions
429
429
  elsif require_anon_for_request?
430
430
  if logged_in?
431
431
  flash[:warning] = 'The specified action cannot be performed while logged in.'
432
- redirect_to current_user
432
+ redirect_to incline.user_path(current_user)
433
433
  end
434
434
  elsif allow_anon_for_request?
435
435
  true
@@ -1,3 +1,3 @@
1
1
  module Incline
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: incline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Beau Barker
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-28 00:00:00.000000000 Z
11
+ date: 2017-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -604,7 +604,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
604
604
  version: '0'
605
605
  requirements: []
606
606
  rubyforge_project:
607
- rubygems_version: 2.6.11
607
+ rubygems_version: 2.5.2
608
608
  signing_key:
609
609
  specification_version: 4
610
610
  summary: A gem designed to get off to an even quicker start with Rails.