acts_as_textcaptcha 1.2.0 → 1.2.1
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.
- data/README.rdoc +8 -8
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/acts_as_textcaptcha.gemspec +5 -5
- metadata +12 -5
data/README.rdoc
CHANGED
|
@@ -30,7 +30,7 @@ Install the gems
|
|
|
30
30
|
|
|
31
31
|
Or you can install acts_as_textcaptcha as a Rails plugin
|
|
32
32
|
|
|
33
|
-
script/plugin install git://github.com/
|
|
33
|
+
script/plugin install git://github.com/matthutchinson/acts_as_textcaptcha
|
|
34
34
|
|
|
35
35
|
== Using
|
|
36
36
|
|
|
@@ -91,7 +91,7 @@ You can also configure spam protection in the following ways.
|
|
|
91
91
|
|
|
92
92
|
=== YAML config
|
|
93
93
|
|
|
94
|
-
All the above options can be expressed in a {textcaptcha.yml}[http://github.com/
|
|
94
|
+
All the above options can be expressed in a {textcaptcha.yml}[http://github.com/matthutchinson/acts_as_textcaptcha/raw/master/config/textcaptcha.yml] file. Drop this into your RAILS_ROOT/config folder.
|
|
95
95
|
|
|
96
96
|
=== _Without_ the Text CAPTCHA web service
|
|
97
97
|
|
|
@@ -113,7 +113,7 @@ If an error occurs in loading or parsing the web service XML, ActsAsTextcaptcha
|
|
|
113
113
|
|
|
114
114
|
If the web service fails or no-api key is specified AND no alternate questions are configured, the @model will not require spam checking and will pass as valid.
|
|
115
115
|
|
|
116
|
-
For more details on the code please check the {documentation}[http://rdoc.info/projects/
|
|
116
|
+
For more details on the code please check the {documentation}[http://rdoc.info/projects/matthutchinson/acts_as_textcaptcha].
|
|
117
117
|
|
|
118
118
|
== Rake Tasks
|
|
119
119
|
|
|
@@ -123,17 +123,17 @@ For more details on the code please check the {documentation}[http://rdoc.info/p
|
|
|
123
123
|
|
|
124
124
|
== Links
|
|
125
125
|
|
|
126
|
-
* {Documentation}[http://rdoc.info/projects/
|
|
126
|
+
* {Documentation}[http://rdoc.info/projects/matthutchinson/acts_as_textcaptcha]
|
|
127
127
|
* {Demo}[http://textcaptcha.heroku.com]
|
|
128
|
-
* {Code}[http://github.com/
|
|
129
|
-
* {Wiki}[http://wiki.github.com/
|
|
130
|
-
* {Bug Tracker}[http://github.com/
|
|
128
|
+
* {Code}[http://github.com/matthutchinson/acts_as_textcaptcha]
|
|
129
|
+
* {Wiki}[http://wiki.github.com/matthutchinson/acts_as_textcaptcha/]
|
|
130
|
+
* {Bug Tracker}[http://github.com/matthutchinson/acts_as_textcaptcha/issues]
|
|
131
131
|
* {Gem}[http://rubygems.org/gems/acts_as_textcaptcha]
|
|
132
132
|
* {Code Metrics}[http://getcaliper.com/caliper/project?repo=http%3A%2F%2Frubygems.org%2Fgems%2Facts_as_textcaptcha] (flay, reek, churn etc.)
|
|
133
133
|
|
|
134
134
|
== Who's who?
|
|
135
135
|
|
|
136
|
-
* {ActsAsTextcaptcha}[http://github.com/
|
|
136
|
+
* {ActsAsTextcaptcha}[http://github.com/matthutchinson/acts_as_textcaptcha] and {little robot drawing}[http://www.flickr.com/photos/hiddenloop/4541195635/] by {Matthew Hutchinson}[http://matthewhutchinson.net]
|
|
137
137
|
* {Text CAPTCHA}[http://textcaptcha.com] api and service by {Rob Tuley}[http://openknot.com/me/] at {Openknot}[http://openknot.com]
|
|
138
138
|
* {bcrypt-ruby}[http://bcrypt-ruby.rubyforge.org/] Gem by {Coda Hale}[http://codahale.com]
|
|
139
139
|
|
data/Rakefile
CHANGED
|
@@ -38,7 +38,7 @@ begin
|
|
|
38
38
|
The logic questions are aimed at a child's age of 7, so can be solved easily by all but the most cognitively impaired users. As they involve human logic, such questions cannot be solved by a robot.
|
|
39
39
|
For more reasons on why logic questions are useful, see here; http://textcaptcha.com/why"
|
|
40
40
|
gemspec.email = "matt@hiddenloop.com"
|
|
41
|
-
gemspec.homepage = "http://github.com/
|
|
41
|
+
gemspec.homepage = "http://github.com/matthutchinson/acts_as_textcaptcha"
|
|
42
42
|
gemspec.authors = ["Matthew Hutchinson"]
|
|
43
43
|
|
|
44
44
|
gemspec.add_dependency('bcrypt-ruby', '>= 2.1.2')
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.1
|
data/acts_as_textcaptcha.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{acts_as_textcaptcha}
|
|
8
|
-
s.version = "1.2.
|
|
8
|
+
s.version = "1.2.1"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Matthew Hutchinson"]
|
|
12
|
-
s.date = %q{2010-
|
|
12
|
+
s.date = %q{2010-07-29}
|
|
13
13
|
s.description = %q{Spam protection for your ActiveRecord models using logic questions and the excellent textcaptcha api. See textcaptcha.com for more details and to get your api key.
|
|
14
14
|
The logic questions are aimed at a child's age of 7, so can be solved easily by all but the most cognitively impaired users. As they involve human logic, such questions cannot be solved by a robot.
|
|
15
15
|
For more reasons on why logic questions are useful, see here; http://textcaptcha.com/why}
|
|
@@ -36,10 +36,10 @@ Gem::Specification.new do |s|
|
|
|
36
36
|
"spec/spec.opts",
|
|
37
37
|
"spec/spec_helper.rb"
|
|
38
38
|
]
|
|
39
|
-
s.homepage = %q{http://github.com/
|
|
39
|
+
s.homepage = %q{http://github.com/matthutchinson/acts_as_textcaptcha}
|
|
40
40
|
s.rdoc_options = ["--charset=UTF-8"]
|
|
41
41
|
s.require_paths = ["lib"]
|
|
42
|
-
s.rubygems_version = %q{1.3.
|
|
42
|
+
s.rubygems_version = %q{1.3.7}
|
|
43
43
|
s.summary = %q{Spam protection for your models via logic questions and the excellent textcaptcha.com api}
|
|
44
44
|
s.test_files = [
|
|
45
45
|
"spec/acts_as_textcaptcha_spec.rb",
|
|
@@ -51,7 +51,7 @@ Gem::Specification.new do |s|
|
|
|
51
51
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
52
52
|
s.specification_version = 3
|
|
53
53
|
|
|
54
|
-
if Gem::Version.new(Gem::
|
|
54
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
55
55
|
s.add_runtime_dependency(%q<bcrypt-ruby>, [">= 2.1.2"])
|
|
56
56
|
else
|
|
57
57
|
s.add_dependency(%q<bcrypt-ruby>, [">= 2.1.2"])
|
metadata
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: acts_as_textcaptcha
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
+
hash: 29
|
|
4
5
|
prerelease: false
|
|
5
6
|
segments:
|
|
6
7
|
- 1
|
|
7
8
|
- 2
|
|
8
|
-
-
|
|
9
|
-
version: 1.2.
|
|
9
|
+
- 1
|
|
10
|
+
version: 1.2.1
|
|
10
11
|
platform: ruby
|
|
11
12
|
authors:
|
|
12
13
|
- Matthew Hutchinson
|
|
@@ -14,16 +15,18 @@ autorequire:
|
|
|
14
15
|
bindir: bin
|
|
15
16
|
cert_chain: []
|
|
16
17
|
|
|
17
|
-
date: 2010-
|
|
18
|
+
date: 2010-07-29 00:00:00 +01:00
|
|
18
19
|
default_executable:
|
|
19
20
|
dependencies:
|
|
20
21
|
- !ruby/object:Gem::Dependency
|
|
21
22
|
name: bcrypt-ruby
|
|
22
23
|
prerelease: false
|
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
24
26
|
requirements:
|
|
25
27
|
- - ">="
|
|
26
28
|
- !ruby/object:Gem::Version
|
|
29
|
+
hash: 15
|
|
27
30
|
segments:
|
|
28
31
|
- 2
|
|
29
32
|
- 1
|
|
@@ -61,7 +64,7 @@ files:
|
|
|
61
64
|
- spec/spec.opts
|
|
62
65
|
- spec/spec_helper.rb
|
|
63
66
|
has_rdoc: true
|
|
64
|
-
homepage: http://github.com/
|
|
67
|
+
homepage: http://github.com/matthutchinson/acts_as_textcaptcha
|
|
65
68
|
licenses: []
|
|
66
69
|
|
|
67
70
|
post_install_message:
|
|
@@ -70,23 +73,27 @@ rdoc_options:
|
|
|
70
73
|
require_paths:
|
|
71
74
|
- lib
|
|
72
75
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
76
|
+
none: false
|
|
73
77
|
requirements:
|
|
74
78
|
- - ">="
|
|
75
79
|
- !ruby/object:Gem::Version
|
|
80
|
+
hash: 3
|
|
76
81
|
segments:
|
|
77
82
|
- 0
|
|
78
83
|
version: "0"
|
|
79
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
|
+
none: false
|
|
80
86
|
requirements:
|
|
81
87
|
- - ">="
|
|
82
88
|
- !ruby/object:Gem::Version
|
|
89
|
+
hash: 3
|
|
83
90
|
segments:
|
|
84
91
|
- 0
|
|
85
92
|
version: "0"
|
|
86
93
|
requirements: []
|
|
87
94
|
|
|
88
95
|
rubyforge_project:
|
|
89
|
-
rubygems_version: 1.3.
|
|
96
|
+
rubygems_version: 1.3.7
|
|
90
97
|
signing_key:
|
|
91
98
|
specification_version: 3
|
|
92
99
|
summary: Spam protection for your models via logic questions and the excellent textcaptcha.com api
|