acts_as_textcaptcha 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ rvm:
2
+ - 1.8.7
3
+ - 1.9.2
4
+ - ree
data/README.rdoc CHANGED
@@ -1,5 +1,7 @@
1
1
  = ActAsTextcaptcha
2
2
 
3
+ {<img src="https://secure.travis-ci.org/matthutchinson/acts_as_textcaptcha.png" alt="Travis Build Status" align="absmiddle"/>}[http://travis-ci.org/#!/matthutchinson/acts_as_textcaptcha] - thanks to {Travis CI}[http://travis-ci.org/#!/matthutchinson/acts_as_textcaptcha]
4
+
3
5
  ActsAsTextcaptcha provides spam protection for your Rails models using logic questions from the excellent {Text CAPTCHA}[http://textcaptcha.com/] web service (by {Rob Tuley}[http://openknot.com/me/] of {Openknot}[http://openknot.com/]). It is also possible to configure your own questions and answers instead of using this API (or as a fall back in the unlikely event of the web service being unavailable)
4
6
 
5
7
  The gem makes use of {bcrypt}[http://bcrypt-ruby.rubyforge.org/] encryption when comparing a guess with the correct answer(s). This gem is actively maintained, has good test coverage and is compatible with Rails 2.3.* and 3. If you have any issues {please report them here}[https://github.com/matthutchinson/acts_as_textcaptcha/issues].
@@ -176,6 +178,7 @@ What do you need?
176
178
  == Links
177
179
 
178
180
  * {Documentation}[http://rdoc.info/projects/matthutchinson/acts_as_textcaptcha]
181
+ * {Travis CI Testing}[http://travis-ci.org/#!/matthutchinson/acts_as_textcaptcha]
179
182
  * {Demo}[http://textcaptcha.heroku.com]
180
183
  * {Code}[http://github.com/matthutchinson/acts_as_textcaptcha]
181
184
  * {Wiki}[http://wiki.github.com/matthutchinson/acts_as_textcaptcha/]
@@ -25,6 +25,7 @@ Gem::Specification.new do |s|
25
25
 
26
26
  s.add_development_dependency('rails')
27
27
  s.add_development_dependency('bundler')
28
+ s.add_development_dependency('minitest')
28
29
  s.add_development_dependency('simplecov')
29
30
  s.add_development_dependency('rdoc')
30
31
  s.add_development_dependency('sqlite3')
@@ -4,6 +4,7 @@ require 'digest/md5'
4
4
 
5
5
  # compatiblity when XmlMini is not available
6
6
  require 'xml' unless defined?(ActiveSupport::XmlMini)
7
+ require 'rexml/document'
7
8
 
8
9
  # if using as a plugin in /vendor/plugins
9
10
  begin
@@ -1,3 +1,3 @@
1
1
  module ActsAsTextcaptcha
2
- VERSION = "3.0.1"
2
+ VERSION = "3.0.2"
3
3
  end
@@ -68,8 +68,8 @@ describe 'Textcaptcha' do
68
68
  end
69
69
 
70
70
  it 'should protect skip_textcaptcha attribute from mass assignment' do
71
- @contact = Contact.new(:skip_textcaptcha => true)
72
- @contact.skip_textcaptcha.must_equal nil
71
+ @note = Note.new(:skip_textcaptcha => true)
72
+ @note.skip_textcaptcha.must_equal nil
73
73
  end
74
74
  end
75
75
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_as_textcaptcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bcrypt-ruby
17
- requirement: &2164674040 !ruby/object:Gem::Requirement
17
+ requirement: &2156455060 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 2.1.4
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2164674040
25
+ version_requirements: *2156455060
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rails
28
- requirement: &2164673620 !ruby/object:Gem::Requirement
28
+ requirement: &2156970560 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *2164673620
36
+ version_requirements: *2156970560
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: bundler
39
- requirement: &2164673160 !ruby/object:Gem::Requirement
39
+ requirement: &2156986880 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,21 @@ dependencies:
44
44
  version: '0'
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *2164673160
47
+ version_requirements: *2156986880
48
+ - !ruby/object:Gem::Dependency
49
+ name: minitest
50
+ requirement: &2156999420 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
56
+ type: :development
57
+ prerelease: false
58
+ version_requirements: *2156999420
48
59
  - !ruby/object:Gem::Dependency
49
60
  name: simplecov
50
- requirement: &2164672740 !ruby/object:Gem::Requirement
61
+ requirement: &2164503700 !ruby/object:Gem::Requirement
51
62
  none: false
52
63
  requirements:
53
64
  - - ! '>='
@@ -55,10 +66,10 @@ dependencies:
55
66
  version: '0'
56
67
  type: :development
57
68
  prerelease: false
58
- version_requirements: *2164672740
69
+ version_requirements: *2164503700
59
70
  - !ruby/object:Gem::Dependency
60
71
  name: rdoc
61
- requirement: &2164672320 !ruby/object:Gem::Requirement
72
+ requirement: &2168564780 !ruby/object:Gem::Requirement
62
73
  none: false
63
74
  requirements:
64
75
  - - ! '>='
@@ -66,10 +77,10 @@ dependencies:
66
77
  version: '0'
67
78
  type: :development
68
79
  prerelease: false
69
- version_requirements: *2164672320
80
+ version_requirements: *2168564780
70
81
  - !ruby/object:Gem::Dependency
71
82
  name: sqlite3
72
- requirement: &2164671900 !ruby/object:Gem::Requirement
83
+ requirement: &2168576740 !ruby/object:Gem::Requirement
73
84
  none: false
74
85
  requirements:
75
86
  - - ! '>='
@@ -77,10 +88,10 @@ dependencies:
77
88
  version: '0'
78
89
  type: :development
79
90
  prerelease: false
80
- version_requirements: *2164671900
91
+ version_requirements: *2168576740
81
92
  - !ruby/object:Gem::Dependency
82
93
  name: fakeweb
83
- requirement: &2164671480 !ruby/object:Gem::Requirement
94
+ requirement: &2168576220 !ruby/object:Gem::Requirement
84
95
  none: false
85
96
  requirements:
86
97
  - - ! '>='
@@ -88,7 +99,7 @@ dependencies:
88
99
  version: '0'
89
100
  type: :development
90
101
  prerelease: false
91
- version_requirements: *2164671480
102
+ version_requirements: *2168576220
92
103
  description: ! "Simple question/answer based spam protection for your Rails models.\n
93
104
  \ You can define your own logic questions and/or fetch questions from the textcaptcha.com
94
105
  API.\n The questions involve human logic and are tough for spam bots to crack.\n
@@ -102,6 +113,7 @@ extra_rdoc_files:
102
113
  - LICENSE
103
114
  files:
104
115
  - .gitignore
116
+ - .travis.yml
105
117
  - Gemfile
106
118
  - LICENSE
107
119
  - README.rdoc