better_rate_limit 0.1.1 → 0.1.2

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
  SHA256:
3
- metadata.gz: c4d162e7489abec1ddc7da39b21c0ae310006ed0b95019d319cd078165535ef6
4
- data.tar.gz: b17e2dcbd2a77f637a06a7402724863f29fb8331c7693128ae78650b35377dce
3
+ metadata.gz: b8202a0675862d02c311bc2c05f294d5adf1a1add2e5cf65aa401edcb0c159d5
4
+ data.tar.gz: b94eb54339bdd7347dbc83f4ac95f87f413671227c89e072bbc0d56bc5a5fb65
5
5
  SHA512:
6
- metadata.gz: 84678f8937e1e9c0289155a2879d2e7843f62545e358d002e6abe6e77b0adb4afa645328a09faa9e075464924db34dea816ae4fc85b14b8f1b247c87c0493426
7
- data.tar.gz: 86b48ab0065c39fb44450053bc45152e5af7d11824380a3867d3c1a8f49b86a7c1d4b8dcd7a02ac0804b4683e3ff968082b46c47c8c8185f650baa62f07929b7
6
+ metadata.gz: '07802df810af301f0d5d1fd8f1bd4f924b535e1dddc98575faa20ec20093d88777f27dc9f99cd6d17d7dd9163ea5760300af5b266ae5a5e120cb03c31c0ee2ea'
7
+ data.tar.gz: 2659222d45eb6a1d2a6559ef78c8a64fefd7e0c66a06d38b96810782063059037d6f8da8a6453b55aa8adc9c7d6e70b7c98797405c9b4258b908ed339c788d89
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- better_rate_limit (0.1.1)
4
+ better_rate_limit (0.1.2)
5
5
  actionpack (>= 5.0)
6
6
  redis (>= 3.3)
7
7
 
@@ -38,7 +38,7 @@ module ActionController
38
38
 
39
39
  return render json: { error: 'Too many requests' }, status: :too_many_requests if json?
40
40
 
41
- send_file 'public/429.html', status: :too_many_requests
41
+ render file: 'public/429.html', status: :too_many_requests, layout: false
42
42
  end
43
43
 
44
44
  private
@@ -1,3 +1,3 @@
1
1
  module BetterRateLimit
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: better_rate_limit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pablo Fonseca
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-08-06 00:00:00.000000000 Z
12
+ date: 2020-08-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: redis
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  requirements: []
85
- rubygems_version: 3.0.8
85
+ rubygems_version: 3.1.4
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: Rate limit requests