rails_onboarding 0.8.2 → 0.8.3

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
  SHA256:
3
- metadata.gz: 6a33d58aa73f7c851196a6ed683c0a907eabc60addda69cc841206ef7765201e
4
- data.tar.gz: 28b37e7d218f6503e256e35292eb71c48a2074bb18f89be4581e417a98365cc0
3
+ metadata.gz: 98452f929df5910d698c5309c4bb1b1c2e5e9d4e3322f41ec4a4407b14bea0b4
4
+ data.tar.gz: ea59a57c10f7fa497a4c1cfce14ff3b9f828e0b645fc1e652c08087e8c07ff09
5
5
  SHA512:
6
- metadata.gz: b1e1fa8588b97a8402ae6f68c0c968e88a0e8229fff82f9f1e79249bfec60b067f465369800241f56bcf63543663d979dcc5dbb14eefabd7982af921695edcaa
7
- data.tar.gz: eb6c36a63a60df9e93e83713022ffa175d6579fba9cd9b73246f1a82f8c1cc7fa165729b8d5f852564d494e246e7e0b099fcd3a6478bf184cb5a7d1e36ec125a
6
+ metadata.gz: f26e666c6aca70b79c69aa9b1d25e83ffb2be711bf9249bb1061ca9f76d57c7c7526f1a6d8ac0a8a25e9ae4135cc35ffe01956b65cd6b5931e00540f4676d43b
7
+ data.tar.gz: eeae8264bc96aa699ba8b86a9d29c15ae5ebe2355475c74df0b1b877eb8217c137688dee247e4445956a1a13135deb02f7f7592a5f6c1e738b7868012e351aa3
@@ -112,7 +112,15 @@ module RailsOnboarding
112
112
  private
113
113
 
114
114
  def authenticate_user!
115
- unless respond_to?(:current_user) && current_user
115
+ # respond_to? omits private methods, and a host app that hand-rolls
116
+ # authentication commonly keeps current_user private - a public method on
117
+ # a controller can be reached as an action. Without the second argument
118
+ # this guard is false for every such host and the page is unreachable no
119
+ # matter who is signed in. (Gift Posse is exactly that shape.) The helper
120
+ # and layout uses of respond_to?(:current_user) elsewhere are fine as they
121
+ # stand: they run in view context, where helper_method has already defined
122
+ # a public current_user.
123
+ unless respond_to?(:current_user, true) && current_user
116
124
  redirect_to main_app.root_path, alert: "Please log in to view milestones"
117
125
  end
118
126
  end
@@ -1,3 +1,3 @@
1
1
  module RailsOnboarding
2
- VERSION = "0.8.2"
2
+ VERSION = "0.8.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_onboarding
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Lewis
@@ -282,7 +282,7 @@ licenses:
282
282
  metadata:
283
283
  allowed_push_host: https://rubygems.org
284
284
  homepage_uri: https://github.com/bunnahabhain/rails_onboarding
285
- source_code_uri: https://github.com/bunnahabhain/rails_onboarding/tree/v0.8.2
285
+ source_code_uri: https://github.com/bunnahabhain/rails_onboarding/tree/v0.8.3
286
286
  changelog_uri: https://github.com/bunnahabhain/rails_onboarding/blob/master/docs/CHANGELOG.md
287
287
  rdoc_options: []
288
288
  require_paths: