rails_rate_limiter 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -5
- data/lib/rails_rate_limiter/version.rb +1 -1
- data/lib/rails_rate_limiter.rb +4 -3
- data/rails_rate_limiter.gemspec +0 -1
- metadata +1 -16
- data/.yardopts +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc8d075f4e6bd2d140fdb831d6a6e58cb2c2a365
|
4
|
+
data.tar.gz: d6a11b2be61a472611ec5fd818d57818df007f76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a262c89d7d090c57e34620397458f1897cb75afa674f856a073a4c1f37c098a9643317ba6bb4eae57fdc38b5dcc222f23d07507df3d5be79c53c7a153224cb14
|
7
|
+
data.tar.gz: d610bc4f55ce3daf8b35f55d928d04afe9c0788c1f1c5b1bf962d6b4b522ce70e600385f1b5561c1565f909c36a9aa292a11f0eeb71692533b9a7a42ae48dfdf
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rails_rate_limiter (0.1.
|
4
|
+
rails_rate_limiter (0.1.2)
|
5
5
|
rails (>= 4.2)
|
6
6
|
redis (~> 3.0)
|
7
7
|
|
@@ -139,9 +139,6 @@ GEM
|
|
139
139
|
websocket-driver (0.7.0)
|
140
140
|
websocket-extensions (>= 0.1.0)
|
141
141
|
websocket-extensions (0.1.3)
|
142
|
-
yard (0.9.12)
|
143
|
-
yard-activesupport-concern (0.0.1)
|
144
|
-
yard (>= 0.8)
|
145
142
|
|
146
143
|
PLATFORMS
|
147
144
|
ruby
|
@@ -153,7 +150,6 @@ DEPENDENCIES
|
|
153
150
|
rails_rate_limiter!
|
154
151
|
rake (~> 10.0)
|
155
152
|
rspec-rails
|
156
|
-
yard-activesupport-concern
|
157
153
|
|
158
154
|
BUNDLED WITH
|
159
155
|
1.16.1
|
data/lib/rails_rate_limiter.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'active_support/concern'
|
2
1
|
require 'active_support/inflector'
|
3
2
|
|
4
3
|
require 'rails_rate_limiter/version'
|
@@ -8,9 +7,11 @@ require 'rails_rate_limiter/error'
|
|
8
7
|
# Provides `rate_limit` callback to limit amount of requests
|
9
8
|
# and handle rate limit exceeding
|
10
9
|
module RailsRateLimiter
|
11
|
-
|
10
|
+
def self.included(base)
|
11
|
+
base.extend ClassMethods
|
12
|
+
end
|
12
13
|
|
13
|
-
|
14
|
+
module ClassMethods
|
14
15
|
# Sets callback that handles rate limit exceeding. Additionally to
|
15
16
|
# described options supports all the `before_action` options.
|
16
17
|
#
|
data/rails_rate_limiter.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_rate_limiter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ruslan Kotov
|
@@ -108,20 +108,6 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: yard-activesupport-concern
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
111
|
description:
|
126
112
|
email:
|
127
113
|
- rkotov93@gmail.com
|
@@ -132,7 +118,6 @@ files:
|
|
132
118
|
- ".gitignore"
|
133
119
|
- ".rspec"
|
134
120
|
- ".travis.yml"
|
135
|
-
- ".yardopts"
|
136
121
|
- Gemfile
|
137
122
|
- Gemfile.lock
|
138
123
|
- LICENSE.txt
|
data/.yardopts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--plugin activesupport-concern
|