authentication-zero 2.16.8 → 2.16.9

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: 22f85e52857c07004eb56d4fdcad96e6b1bd1f709a6038afff84bb4a8378dce2
4
- data.tar.gz: 6467a490abffb63134b1f217a054559cf34fbab939a15bdcc10e419acecbc78d
3
+ metadata.gz: d695ca0e7c4d270b6fe07929260341edf25e6e8ac1ab451d9de956795cdf92f0
4
+ data.tar.gz: ac4c926f168b43c8daeebb676d7d7f00be6667c1b5627f5a7b91c1038a7d9e22
5
5
  SHA512:
6
- metadata.gz: b53657217a8f8b5376f12d37dc3ef56989a4159f25d1f3fe89e3398288a599ac2f4a1be0975ad98fb1798b7d084b7e3a4f05bf302145559488c22b9df22bc153
7
- data.tar.gz: 3622a1349a61da59814b7476d90ef8cf132a50f5624b10b0e3d92da8d1f996785be02b2929728dd79a578692f708af8552b16923202ca72bca81fa6d6875c0a7
6
+ metadata.gz: 7d3421d5fb49b0b9dda2154ea9d0cbf7a36b25e3a2e5afaa8ec46b9ea17da532248e2d518104a934f68a13c08df175c0e2f09d22ab66c9b58072b29f4de7624e
7
+ data.tar.gz: da27bacca31013b8f8a0d30f25f135f6848abbbf30f077fd3b3ead2a5110ad48e7445c6154a7b9fb6dc5245c3713df7db9e9141ffaf69c82da4cb1eafa47d941
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- authentication-zero (2.16.8)
4
+ authentication-zero (2.16.9)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module AuthenticationZero
2
- VERSION = "2.16.8"
2
+ VERSION = "2.16.9"
3
3
  end
@@ -5,7 +5,7 @@ class ApplicationController < ActionController::API
5
5
  before_action :authenticate
6
6
  <%- if options.lockable? %>
7
7
  def require_lock(wait: 1.hour, attempts: 10)
8
- counter = Kredis.counter("require_lock:#{request.remote_ip}:#{params[:controller]}:#{params[:action]}", expires_in: wait)
8
+ counter = Kredis.counter("require_lock:#{request.remote_ip}:#{controller_path}:#{action_name}", expires_in: wait)
9
9
  counter.increment
10
10
 
11
11
  if counter.value > attempts
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authentication-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.16.8
4
+ version: 2.16.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nixon