rails_limiter 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +46 -0
- data/Rakefile +38 -0
- data/lib/rails_limiter.rb +4 -0
- data/lib/rails_limiter/configuration.rb +5 -0
- data/lib/rails_limiter/init.rb +13 -0
- data/lib/rails_limiter/rails_limiter.rb +39 -0
- data/lib/rails_limiter/railtie.rb +9 -0
- data/lib/rails_limiter/version.rb +3 -0
- data/lib/tasks/rails_limiter_tasks.rake +4 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/javascripts/test.js +2 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/assets/stylesheets/test.css +4 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/controllers/test_controller.rb +10 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/test_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/test/index.html.erb +1 -0
- data/test/dummy/app/views/test/redirect.html.erb +1 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/rails_limiter.rb +3 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +7 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +1076 -0
- data/test/dummy/log/test.log +52 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test/functional/test_controller_test.rb +18 -0
- data/test/dummy/test/unit/helpers/test_helper_test.rb +4 -0
- data/test/dummy/tmp/cache/assets/C44/F80/sprockets%2Fb4a3a67d546c3080b8685930021d4821 +0 -0
- data/test/dummy/tmp/cache/assets/C63/420/sprockets%2F5daa64d9601a1dd14726112003d08364 +0 -0
- data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
- data/test/dummy/tmp/cache/assets/CD9/1E0/sprockets%2F293460f7bea2aea456231b769212f36f +0 -0
- data/test/dummy/tmp/cache/assets/CEC/220/sprockets%2F3593fa0f36286c3f12845a83bd937ed8 +0 -0
- data/test/dummy/tmp/cache/assets/CEE/CC0/sprockets%2Fa955dc6f427c92e2d7386ec53824157b +0 -0
- data/test/dummy/tmp/cache/assets/D16/860/sprockets%2Fb45890d98668c132fee5cae4b15320d9 +0 -0
- data/test/dummy/tmp/cache/assets/D19/490/sprockets%2F949b38fc755d354064c004eb5f6b39fc +0 -0
- data/test/dummy/tmp/cache/assets/D20/260/sprockets%2F7544655fdf8fa2516fa2d508c8e9291d +0 -0
- data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/test/dummy/tmp/cache/assets/D64/C60/sprockets%2F2d1c7e7a64aaaa07b94846dd251db329 +0 -0
- data/test/dummy/tmp/cache/assets/D65/600/sprockets%2Fdaa0e3c217673cb0ebb89d97438a1b80 +0 -0
- data/test/dummy/tmp/cache/assets/D8C/B60/sprockets%2Fb47d6c7e37ef89fe14e318a8d676e38c +0 -0
- data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/test/dummy/tmp/cache/assets/E1C/E60/sprockets%2Fb9dc6ffd9a482f898cedbfd06f46a558 +0 -0
- data/test/rails_limiter_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- metadata +203 -0
@@ -0,0 +1,52 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
3
|
+
Processing by TestController#index as HTML
|
4
|
+
Rendered test/index.html.erb within layouts/application (1.0ms)
|
5
|
+
Completed 200 OK in 8ms (Views: 7.1ms | ActiveRecord: 0.0ms)
|
6
|
+
Processing by TestController#index as HTML
|
7
|
+
Rendered test/index.html.erb within layouts/application (0.0ms)
|
8
|
+
Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
|
9
|
+
Processing by TestController#index as HTML
|
10
|
+
Redirected to http://test.host/test/redirect
|
11
|
+
Filter chain halted as #<Proc:0x007fe0fa9eb578@/Users/jseveno/Documents/Developpement/Rails/rails3/idolcamp/rails_limiter/test/dummy/app/controllers/test_controller.rb:2> rendered or redirected
|
12
|
+
Completed 302 Found in 0ms (Views: 0.7ms | ActiveRecord: 0.0ms)
|
13
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
14
|
+
Connecting to database specified by database.yml
|
15
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
16
|
+
Processing by TestController#index as HTML
|
17
|
+
Rendered test/index.html.erb within layouts/application (0.6ms)
|
18
|
+
Completed 200 OK in 5ms (Views: 5.0ms | ActiveRecord: 0.0ms)
|
19
|
+
Processing by TestController#index as HTML
|
20
|
+
Rendered test/index.html.erb within layouts/application (0.0ms)
|
21
|
+
Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
|
22
|
+
Processing by TestController#index as HTML
|
23
|
+
Redirected to http://test.host/test/redirect
|
24
|
+
Filter chain halted as #<Proc:0x007fc1ec179728@/Users/jseveno/Documents/Developpement/Rails/rails3/idolcamp/rails_limiter/test/dummy/app/controllers/test_controller.rb:2> rendered or redirected
|
25
|
+
Completed 302 Found in 0ms (Views: 0.7ms | ActiveRecord: 0.0ms)
|
26
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
27
|
+
Connecting to database specified by database.yml
|
28
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
29
|
+
Processing by TestController#index as HTML
|
30
|
+
Rendered test/index.html.erb within layouts/application (0.6ms)
|
31
|
+
Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)
|
32
|
+
Processing by TestController#index as HTML
|
33
|
+
Rendered test/index.html.erb within layouts/application (0.0ms)
|
34
|
+
Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
|
35
|
+
Processing by TestController#index as HTML
|
36
|
+
Redirected to http://test.host/test/redirect
|
37
|
+
Filter chain halted as #<Proc:0x007fb2ec92d5c8@/Users/jseveno/Documents/Developpement/Rails/rails3/idolcamp/rails_limiter/test/dummy/app/controllers/test_controller.rb:2> rendered or redirected
|
38
|
+
Completed 302 Found in 0ms (Views: 0.7ms | ActiveRecord: 0.0ms)
|
39
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
40
|
+
Connecting to database specified by database.yml
|
41
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
42
|
+
Processing by TestController#index as HTML
|
43
|
+
Rendered test/index.html.erb within layouts/application (0.6ms)
|
44
|
+
Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)
|
45
|
+
Processing by TestController#index as HTML
|
46
|
+
Rendered test/index.html.erb within layouts/application (0.0ms)
|
47
|
+
Completed 200 OK in 1ms (Views: 0.7ms | ActiveRecord: 0.0ms)
|
48
|
+
Processing by TestController#index as HTML
|
49
|
+
Redirected to http://test.host/test/redirect
|
50
|
+
Filter chain halted as #<Proc:0x007f9edc14d598@/Users/jseveno/Documents/Developpement/Rails/rails3/idolcamp/rails_limiter/test/dummy/app/controllers/test_controller.rb:2> rendered or redirected
|
51
|
+
Completed 302 Found in 0ms (Views: 0.7ms | ActiveRecord: 0.0ms)
|
52
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class TestControllerTest < ActionController::TestCase
|
4
|
+
|
5
|
+
test 'can access to index until max is reached' do
|
6
|
+
|
7
|
+
get :index
|
8
|
+
assert_response :success
|
9
|
+
|
10
|
+
get :index
|
11
|
+
assert_response :success
|
12
|
+
|
13
|
+
get :index
|
14
|
+
assert flash[:error].include?("You exceeded your requests limit of 2. Try again in 60 seconds")
|
15
|
+
assert_response :redirect
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../dummy/config/environment.rb", __FILE__)
|
5
|
+
require "rails/test_help"
|
6
|
+
|
7
|
+
Rails.backtrace_cleaner.remove_silencers!
|
8
|
+
|
9
|
+
# Load support files
|
10
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
11
|
+
|
12
|
+
# Load fixtures from the engine
|
13
|
+
if ActiveSupport::TestCase.method_defined?(:fixture_path=)
|
14
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,203 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rails_limiter
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Julien Séveno
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-07-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.2.13
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.2.13
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: sqlite3
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
description: To limit the requests number of a user on an action's controller
|
42
|
+
email:
|
43
|
+
- jseveno@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- lib/rails_limiter/configuration.rb
|
49
|
+
- lib/rails_limiter/init.rb
|
50
|
+
- lib/rails_limiter/rails_limiter.rb
|
51
|
+
- lib/rails_limiter/railtie.rb
|
52
|
+
- lib/rails_limiter/version.rb
|
53
|
+
- lib/rails_limiter.rb
|
54
|
+
- lib/tasks/rails_limiter_tasks.rake
|
55
|
+
- MIT-LICENSE
|
56
|
+
- Rakefile
|
57
|
+
- README.rdoc
|
58
|
+
- test/dummy/app/assets/javascripts/application.js
|
59
|
+
- test/dummy/app/assets/javascripts/test.js
|
60
|
+
- test/dummy/app/assets/stylesheets/application.css
|
61
|
+
- test/dummy/app/assets/stylesheets/test.css
|
62
|
+
- test/dummy/app/controllers/application_controller.rb
|
63
|
+
- test/dummy/app/controllers/test_controller.rb
|
64
|
+
- test/dummy/app/helpers/application_helper.rb
|
65
|
+
- test/dummy/app/helpers/test_helper.rb
|
66
|
+
- test/dummy/app/views/layouts/application.html.erb
|
67
|
+
- test/dummy/app/views/test/index.html.erb
|
68
|
+
- test/dummy/app/views/test/redirect.html.erb
|
69
|
+
- test/dummy/config/application.rb
|
70
|
+
- test/dummy/config/boot.rb
|
71
|
+
- test/dummy/config/database.yml
|
72
|
+
- test/dummy/config/environment.rb
|
73
|
+
- test/dummy/config/environments/development.rb
|
74
|
+
- test/dummy/config/environments/production.rb
|
75
|
+
- test/dummy/config/environments/test.rb
|
76
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
77
|
+
- test/dummy/config/initializers/inflections.rb
|
78
|
+
- test/dummy/config/initializers/mime_types.rb
|
79
|
+
- test/dummy/config/initializers/rails_limiter.rb
|
80
|
+
- test/dummy/config/initializers/secret_token.rb
|
81
|
+
- test/dummy/config/initializers/session_store.rb
|
82
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
83
|
+
- test/dummy/config/locales/en.yml
|
84
|
+
- test/dummy/config/routes.rb
|
85
|
+
- test/dummy/config.ru
|
86
|
+
- test/dummy/db/development.sqlite3
|
87
|
+
- test/dummy/db/test.sqlite3
|
88
|
+
- test/dummy/log/development.log
|
89
|
+
- test/dummy/log/test.log
|
90
|
+
- test/dummy/public/404.html
|
91
|
+
- test/dummy/public/422.html
|
92
|
+
- test/dummy/public/500.html
|
93
|
+
- test/dummy/public/favicon.ico
|
94
|
+
- test/dummy/Rakefile
|
95
|
+
- test/dummy/README.rdoc
|
96
|
+
- test/dummy/script/rails
|
97
|
+
- test/dummy/test/functional/test_controller_test.rb
|
98
|
+
- test/dummy/test/unit/helpers/test_helper_test.rb
|
99
|
+
- test/dummy/tmp/cache/assets/C44/F80/sprockets%2Fb4a3a67d546c3080b8685930021d4821
|
100
|
+
- test/dummy/tmp/cache/assets/C63/420/sprockets%2F5daa64d9601a1dd14726112003d08364
|
101
|
+
- test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
102
|
+
- test/dummy/tmp/cache/assets/CD9/1E0/sprockets%2F293460f7bea2aea456231b769212f36f
|
103
|
+
- test/dummy/tmp/cache/assets/CEC/220/sprockets%2F3593fa0f36286c3f12845a83bd937ed8
|
104
|
+
- test/dummy/tmp/cache/assets/CEE/CC0/sprockets%2Fa955dc6f427c92e2d7386ec53824157b
|
105
|
+
- test/dummy/tmp/cache/assets/D16/860/sprockets%2Fb45890d98668c132fee5cae4b15320d9
|
106
|
+
- test/dummy/tmp/cache/assets/D19/490/sprockets%2F949b38fc755d354064c004eb5f6b39fc
|
107
|
+
- test/dummy/tmp/cache/assets/D20/260/sprockets%2F7544655fdf8fa2516fa2d508c8e9291d
|
108
|
+
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
109
|
+
- test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
110
|
+
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
111
|
+
- test/dummy/tmp/cache/assets/D64/C60/sprockets%2F2d1c7e7a64aaaa07b94846dd251db329
|
112
|
+
- test/dummy/tmp/cache/assets/D65/600/sprockets%2Fdaa0e3c217673cb0ebb89d97438a1b80
|
113
|
+
- test/dummy/tmp/cache/assets/D8C/B60/sprockets%2Fb47d6c7e37ef89fe14e318a8d676e38c
|
114
|
+
- test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
115
|
+
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
116
|
+
- test/dummy/tmp/cache/assets/E1C/E60/sprockets%2Fb9dc6ffd9a482f898cedbfd06f46a558
|
117
|
+
- test/rails_limiter_test.rb
|
118
|
+
- test/test_helper.rb
|
119
|
+
homepage: https://github.com/idolweb/rails_limiter
|
120
|
+
licenses: []
|
121
|
+
metadata: {}
|
122
|
+
post_install_message:
|
123
|
+
rdoc_options: []
|
124
|
+
require_paths:
|
125
|
+
- lib
|
126
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - '>='
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0'
|
131
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - '>='
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: '0'
|
136
|
+
requirements: []
|
137
|
+
rubyforge_project:
|
138
|
+
rubygems_version: 2.0.3
|
139
|
+
signing_key:
|
140
|
+
specification_version: 4
|
141
|
+
summary: To limit the requests number of a user on an action's controller
|
142
|
+
test_files:
|
143
|
+
- test/dummy/app/assets/javascripts/application.js
|
144
|
+
- test/dummy/app/assets/javascripts/test.js
|
145
|
+
- test/dummy/app/assets/stylesheets/application.css
|
146
|
+
- test/dummy/app/assets/stylesheets/test.css
|
147
|
+
- test/dummy/app/controllers/application_controller.rb
|
148
|
+
- test/dummy/app/controllers/test_controller.rb
|
149
|
+
- test/dummy/app/helpers/application_helper.rb
|
150
|
+
- test/dummy/app/helpers/test_helper.rb
|
151
|
+
- test/dummy/app/views/layouts/application.html.erb
|
152
|
+
- test/dummy/app/views/test/index.html.erb
|
153
|
+
- test/dummy/app/views/test/redirect.html.erb
|
154
|
+
- test/dummy/config/application.rb
|
155
|
+
- test/dummy/config/boot.rb
|
156
|
+
- test/dummy/config/database.yml
|
157
|
+
- test/dummy/config/environment.rb
|
158
|
+
- test/dummy/config/environments/development.rb
|
159
|
+
- test/dummy/config/environments/production.rb
|
160
|
+
- test/dummy/config/environments/test.rb
|
161
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
162
|
+
- test/dummy/config/initializers/inflections.rb
|
163
|
+
- test/dummy/config/initializers/mime_types.rb
|
164
|
+
- test/dummy/config/initializers/rails_limiter.rb
|
165
|
+
- test/dummy/config/initializers/secret_token.rb
|
166
|
+
- test/dummy/config/initializers/session_store.rb
|
167
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
168
|
+
- test/dummy/config/locales/en.yml
|
169
|
+
- test/dummy/config/routes.rb
|
170
|
+
- test/dummy/config.ru
|
171
|
+
- test/dummy/db/development.sqlite3
|
172
|
+
- test/dummy/db/test.sqlite3
|
173
|
+
- test/dummy/log/development.log
|
174
|
+
- test/dummy/log/test.log
|
175
|
+
- test/dummy/public/404.html
|
176
|
+
- test/dummy/public/422.html
|
177
|
+
- test/dummy/public/500.html
|
178
|
+
- test/dummy/public/favicon.ico
|
179
|
+
- test/dummy/Rakefile
|
180
|
+
- test/dummy/README.rdoc
|
181
|
+
- test/dummy/script/rails
|
182
|
+
- test/dummy/test/functional/test_controller_test.rb
|
183
|
+
- test/dummy/test/unit/helpers/test_helper_test.rb
|
184
|
+
- test/dummy/tmp/cache/assets/C44/F80/sprockets%2Fb4a3a67d546c3080b8685930021d4821
|
185
|
+
- test/dummy/tmp/cache/assets/C63/420/sprockets%2F5daa64d9601a1dd14726112003d08364
|
186
|
+
- test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
|
187
|
+
- test/dummy/tmp/cache/assets/CD9/1E0/sprockets%2F293460f7bea2aea456231b769212f36f
|
188
|
+
- test/dummy/tmp/cache/assets/CEC/220/sprockets%2F3593fa0f36286c3f12845a83bd937ed8
|
189
|
+
- test/dummy/tmp/cache/assets/CEE/CC0/sprockets%2Fa955dc6f427c92e2d7386ec53824157b
|
190
|
+
- test/dummy/tmp/cache/assets/D16/860/sprockets%2Fb45890d98668c132fee5cae4b15320d9
|
191
|
+
- test/dummy/tmp/cache/assets/D19/490/sprockets%2F949b38fc755d354064c004eb5f6b39fc
|
192
|
+
- test/dummy/tmp/cache/assets/D20/260/sprockets%2F7544655fdf8fa2516fa2d508c8e9291d
|
193
|
+
- test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
|
194
|
+
- test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
|
195
|
+
- test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
|
196
|
+
- test/dummy/tmp/cache/assets/D64/C60/sprockets%2F2d1c7e7a64aaaa07b94846dd251db329
|
197
|
+
- test/dummy/tmp/cache/assets/D65/600/sprockets%2Fdaa0e3c217673cb0ebb89d97438a1b80
|
198
|
+
- test/dummy/tmp/cache/assets/D8C/B60/sprockets%2Fb47d6c7e37ef89fe14e318a8d676e38c
|
199
|
+
- test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
|
200
|
+
- test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
|
201
|
+
- test/dummy/tmp/cache/assets/E1C/E60/sprockets%2Fb9dc6ffd9a482f898cedbfd06f46a558
|
202
|
+
- test/rails_limiter_test.rb
|
203
|
+
- test/test_helper.rb
|