fast_submission_protection 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ = 0.1.2
2
+ * Fix gemspec home page link
3
+
1
4
  = 0.1.1
2
5
  * Supply an error template which includes the delay
3
6
  * Adds config.action_controller.allow_fast_submission_protection (off by default in test mode)
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # FastSubmissionProtection
2
2
 
3
- [![Build Status](https://secure.travis-ci.org/i2w/fast_submission_protection.png?branch=master)](http://travis-ci.org/i2w/timed_spam_rejection)
3
+ [![Build Status](https://secure.travis-ci.org/i2w/fast_submission_protection.png?branch=master)](http://travis-ci.org/i2w/fast_submission_protection)
4
4
 
5
5
  ActionController engine that facilitates rejecting spam based on how long the form submission took.
6
6
 
@@ -1,3 +1,3 @@
1
1
  module FastSubmissionProtection
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -1,5 +1,22 @@
1
1
  require 'spec_helper'
2
2
 
3
+ class Rails::Application::Configuration
4
+ def database_configuration
5
+ {'test' => {'adapter' => 'nulldb'}}
6
+ end
7
+ end
8
+
9
+ module FastSubmissionProtection
10
+ class Application < Rails::Application
11
+ config.active_support.deprecation = :stderr
12
+ end
13
+ end
14
+
15
+ class ApplicationController < ActionController::Base
16
+ end
17
+
18
+ FastSubmissionProtection::Application.initialize!
19
+
3
20
  describe 'A controller with protect_from_fast_submission' do
4
21
  controller do
5
22
  self.allow_fast_submission_protection = true # test mode turns this off be default
@@ -11,20 +11,3 @@ require 'rails/all'
11
11
  require 'rspec'
12
12
  require 'rspec/rails'
13
13
  require_relative '../lib/fast_submission_protection'
14
-
15
- class Rails::Application::Configuration
16
- def database_configuration
17
- {'test' => {'adapter' => 'sqlite3', 'database' => ":memory:"}}
18
- end
19
- end
20
-
21
- module FastSubmissionProtection
22
- class Application < Rails::Application
23
- config.active_support.deprecation = :stderr
24
- end
25
- end
26
-
27
- class ApplicationController < ActionController::Base
28
- end
29
-
30
- FastSubmissionProtection::Application.initialize!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fast_submission_protection
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ date: 2012-04-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
17
- requirement: &70119054331820 !ruby/object:Gem::Requirement
17
+ requirement: &70260783104800 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: '3'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70119054331820
25
+ version_requirements: *70260783104800
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rspec-rails
28
- requirement: &70119054331160 !ruby/object:Gem::Requirement
28
+ requirement: &70260783104000 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,20 +33,9 @@ dependencies:
33
33
  version: '2'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *70119054331160
37
- - !ruby/object:Gem::Dependency
38
- name: sqlite3
39
- requirement: &70119054330560 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ! '>='
43
- - !ruby/object:Gem::Version
44
- version: '0'
45
- type: :development
46
- prerelease: false
47
- version_requirements: *70119054330560
36
+ version_requirements: *70260783104000
48
37
  description: Reject form submissions based on the time taken to submit them. Version
49
- 0.1.1
38
+ 0.1.2
50
39
  email:
51
40
  - ian@i2wdev.com
52
41
  executables: []
@@ -67,7 +56,7 @@ files:
67
56
  - spec/fast_submission_protection/filters_spec.rb
68
57
  - spec/fast_submission_protection/submission_timer_spec.rb
69
58
  - spec/spec_helper.rb
70
- homepage: http://github.com/i2w/timed_spam_rejection
59
+ homepage: http://github.com/i2w/fast_submission_protection
71
60
  licenses: []
72
61
  post_install_message:
73
62
  rdoc_options: []
@@ -81,7 +70,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
81
70
  version: '0'
82
71
  segments:
83
72
  - 0
84
- hash: -2459182796522294369
73
+ hash: 3223755396065670306
85
74
  required_rubygems_version: !ruby/object:Gem::Requirement
86
75
  none: false
87
76
  requirements:
@@ -90,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
79
  version: '0'
91
80
  segments:
92
81
  - 0
93
- hash: -2459182796522294369
82
+ hash: 3223755396065670306
94
83
  requirements: []
95
84
  rubyforge_project:
96
85
  rubygems_version: 1.8.10