rails_limiter 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +1 -1
- data/lib/rails_limiter/version.rb +1 -1
- data/test/dummy/app/assets/javascripts/application.js +0 -2
- data/test/dummy/config/environments/development.rb +0 -3
- data/test/dummy/config/environments/test.rb +0 -3
- data/test/dummy/test/functional/test_controller_test.rb +2 -2
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c5bccf31a91cd9c4c46aeae3196a0f5b82e996f
|
4
|
+
data.tar.gz: ff62e50cbdcf31805c98febe5369ad22e8afd738
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfe8cc513ca45d375854f1f53be3055d70cdaa823363ef8aed707eb7d3690b42dbf507e357de25bab8d207fb2bfed7e399e2db40e72324fb09e1c3c6b5760188
|
7
|
+
data.tar.gz: 630a14ddc42e593a2dfbb3b002a55ef5ac9f94202aee68333ce9705ac7af74811529825d958e5be3afa7ff43d8837bf4fec247919701e7702e684d05a7f358b1
|
data/README.rdoc
CHANGED
@@ -22,9 +22,6 @@ Dummy::Application.configure do
|
|
22
22
|
# Only use best-standards-support built into browsers
|
23
23
|
config.action_dispatch.best_standards_support = :builtin
|
24
24
|
|
25
|
-
# Raise exception on mass assignment protection for Active Record models
|
26
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
27
|
-
|
28
25
|
# Log the query plan for queries taking more than this (works
|
29
26
|
# with SQLite, MySQL, and PostgreSQL)
|
30
27
|
config.active_record.auto_explain_threshold_in_seconds = 0.5
|
@@ -29,9 +29,6 @@ Dummy::Application.configure do
|
|
29
29
|
# ActionMailer::Base.deliveries array.
|
30
30
|
config.action_mailer.delivery_method = :test
|
31
31
|
|
32
|
-
# Raise exception on mass assignment protection for Active Record models
|
33
|
-
config.active_record.mass_assignment_sanitizer = :strict
|
34
|
-
|
35
32
|
# Print deprecation notices to the stderr
|
36
33
|
config.active_support.deprecation = :stderr
|
37
34
|
end
|
@@ -11,8 +11,8 @@ class TestControllerTest < ActionController::TestCase
|
|
11
11
|
assert_response :success
|
12
12
|
|
13
13
|
get :index
|
14
|
-
|
14
|
+
assert_match "You exceeded your requests limit of 2. Try again", flash[:error]
|
15
15
|
assert_response :redirect
|
16
16
|
end
|
17
17
|
|
18
|
-
end
|
18
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_limiter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien Séveno
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 4.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sqlite3
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -117,7 +117,8 @@ files:
|
|
117
117
|
- test/rails_limiter_test.rb
|
118
118
|
- test/test_helper.rb
|
119
119
|
homepage: https://github.com/idolweb/rails_limiter
|
120
|
-
licenses:
|
120
|
+
licenses:
|
121
|
+
- MIT
|
121
122
|
metadata: {}
|
122
123
|
post_install_message:
|
123
124
|
rdoc_options: []
|