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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e4f1edcf8428a1c0f75189e243a543c3e15b9921
4
- data.tar.gz: f83c4bbbd435515f3b6e45f32f88470fb8b7dda0
3
+ metadata.gz: 3c5bccf31a91cd9c4c46aeae3196a0f5b82e996f
4
+ data.tar.gz: ff62e50cbdcf31805c98febe5369ad22e8afd738
5
5
  SHA512:
6
- metadata.gz: fcec8f28ed61caae9ff77687e18ce4720cc5af94eaaec041fd11fdb16fef26df907f8f21ec9549684efd382e593846d5767e90ba449091964314868139f6e94c
7
- data.tar.gz: ddcaa676ee593f1721ede641dad3035176a421252b8877b6a7f2c87e33f498980d33061b6ec09de3670c2674158786ecf8cec7b36f3441a40f1fc594c24e1e01
6
+ metadata.gz: bfe8cc513ca45d375854f1f53be3055d70cdaa823363ef8aed707eb7d3690b42dbf507e357de25bab8d207fb2bfed7e399e2db40e72324fb09e1c3c6b5760188
7
+ data.tar.gz: 630a14ddc42e593a2dfbb3b002a55ef5ac9f94202aee68333ce9705ac7af74811529825d958e5be3afa7ff43d8837bf4fec247919701e7702e684d05a7f358b1
data/README.rdoc CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  You can install rails_limiter by adding this line in your Gemfile :
8
8
 
9
- gem 'rails_limiter', :git => 'git://github.com/idolweb/rails_limiter.git'
9
+ gem "rails_limiter", "~> 0.0.1"
10
10
 
11
11
  And then :
12
12
 
@@ -1,3 +1,3 @@
1
1
  module RailsLimiter
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -10,6 +10,4 @@
10
10
  // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11
11
  // GO AFTER THE REQUIRES BELOW.
12
12
  //
13
- //= require jquery
14
- //= require jquery_ujs
15
13
  //= require_tree .
@@ -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
- assert flash[:error].include?("You exceeded your requests limit of 2. Try again in 60 seconds")
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.1
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: 2013-07-15 00:00:00.000000000 Z
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: 3.2.13
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: 3.2.13
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: []