rails_rate_limiter 0.1.2 → 0.1.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
  SHA1:
3
- metadata.gz: b85c020808707611a717447f827c04882dee708f
4
- data.tar.gz: 2d74f96ad5c933086297d1f1d4712391d1c2cd6a
3
+ metadata.gz: cc8d075f4e6bd2d140fdb831d6a6e58cb2c2a365
4
+ data.tar.gz: d6a11b2be61a472611ec5fd818d57818df007f76
5
5
  SHA512:
6
- metadata.gz: 2161ab8e1e4bb335564711499c388ccbae78f0bbd4bae1bf2888cf0f1bc5aff6723e4a619f8a21296eecb63bee3e1cfd1cf4426797c2868f18d61ee32e6dc6f4
7
- data.tar.gz: 87368205eafd4f44a1c167008412ecb7bc416271259339ba4359bd6dd8623cd3a71b7499fb8a975767ad3c0db02014569d9d8c4178c59ec6e7fcc6ab34711004
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.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
@@ -1,3 +1,3 @@
1
1
  module RailsRateLimiter
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -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
- extend ActiveSupport::Concern
10
+ def self.included(base)
11
+ base.extend ClassMethods
12
+ end
12
13
 
13
- class_methods do
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
  #
@@ -27,5 +27,4 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency 'rspec-rails'
28
28
  spec.add_development_dependency 'pry'
29
29
  spec.add_development_dependency 'mock_redis'
30
- spec.add_development_dependency 'yard-activesupport-concern'
31
30
  end
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.2
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