acts_as_textcaptcha 4.2.0 → 4.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +0 -1
- data/.travis.yml +4 -8
- data/Appraisals +1 -1
- data/README.md +4 -7
- data/Rakefile +0 -9
- data/acts_as_textcaptcha.gemspec +2 -2
- data/gemfiles/rails_5.gemfile +1 -1
- data/lib/acts_as_textcaptcha/version.rb +1 -1
- data/test/test_helper.rb +0 -16
- metadata +3 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37120b6c8addc12ae7dccd511f46bdd0f81f5ff7deb168b266ed94fff2a8d4a3
|
4
|
+
data.tar.gz: bf3a36d0a6748593f5ff7c2cea551e779d08c7e3014fd52da5ac5417053e3440
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d21d1aaac5524dad7935e9e12ddf323ae63c9a01be2803b46de03aac1e92cd0768412229daa0ebdaf99ac75d8d897b1dcf04228ee652696e6e38fcc359c306ab
|
7
|
+
data.tar.gz: 184ea7c210655525af3107e946ef828d4b0cd49cd9808c5a0996e344bc2bab32d9f2add91993e9ddc9071080132db8eb5d7358536cdb2909a036fdf2a933b0e7
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -5,14 +5,10 @@ gemfile:
|
|
5
5
|
- gemfiles/rails_4.gemfile
|
6
6
|
- gemfiles/rails_5.gemfile
|
7
7
|
rvm:
|
8
|
-
- 2.2.9
|
9
|
-
- 2.3.6
|
10
|
-
- 2.4.3
|
11
|
-
- 2.5.0
|
12
|
-
matrix:
|
13
|
-
exclude:
|
14
|
-
- rvm: 2.1.10
|
15
|
-
gemfile: gemfiles/rails_5.gemfile
|
8
|
+
- 2.2.9
|
9
|
+
- 2.3.6
|
10
|
+
- 2.4.3
|
11
|
+
- 2.5.0
|
16
12
|
before_install:
|
17
13
|
- gem update --system
|
18
14
|
deploy:
|
data/Appraisals
CHANGED
data/README.md
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
## ActAsTextcaptcha
|
2
2
|
|
3
3
|
[![Gem Version](https://img.shields.io/gem/v/acts_as_textcaptcha.svg?style=flat)](http://rubygems.org/gems/acts_as_textcaptcha)
|
4
|
-
[![Travis Build Status](https://
|
5
|
-
[![
|
6
|
-
[![
|
7
|
-
[![Gem Dependencies](https://img.shields.io/gemnasium/matthutchinson/acts_as_textcaptcha.svg?style=flat)](https://gemnasium.com/matthutchinson/acts_as_textcaptcha)
|
4
|
+
[![Travis Build Status](https://travis-ci.org/matthutchinson/acts_as_textcaptcha.svg?branch=master)](https://travis-ci.org/matthutchinson/acts_as_textcaptcha)
|
5
|
+
[![Maintainability](https://img.shields.io/codeclimate/maintainability/matthutchinson/acts_as_textcaptcha.svg)](https://codeclimate.com/github/matthutchinson/acts_as_textcaptcha/maintainability)
|
6
|
+
[![Gem Dependency Status](https://gemnasium.com/badges/github.com/matthutchinson/acts_as_textcaptcha.svg)](https://gemnasium.com/github.com/matthutchinson/acts_as_textcaptcha)
|
8
7
|
|
9
8
|
ActsAsTextcaptcha provides spam protection for your Rails models using logic
|
10
9
|
questions from the excellent [TextCaptcha](http://textcaptcha.com/) web service
|
@@ -177,7 +176,6 @@ model used in the test suite
|
|
177
176
|
In development you can run the tests and rdoc tasks like so;
|
178
177
|
|
179
178
|
* `rake test` (all tests)
|
180
|
-
* `rake test:coverage` (all tests with code coverage reporting)
|
181
179
|
* `appraisal rake test` (all tests with all gemfile variations)
|
182
180
|
* `appraisal rails-3 rake test` (all tests using a specific gemfile)
|
183
181
|
* `rake rdoc` (generate docs)
|
@@ -263,8 +261,7 @@ this release for further instructions.
|
|
263
261
|
|
264
262
|
* [Demo](https://acts-as-textcaptcha-demo.herokuapp.com)
|
265
263
|
* [Travis CI](http://travis-ci.org/#!/matthutchinson/acts_as_textcaptcha)
|
266
|
-
* [
|
267
|
-
* [Code Climate](https://codeclimate.com/github/matthutchinson/acts_as_textcaptcha)
|
264
|
+
* [Maintainability](https://codeclimate.com/github/matthutchinson/acts_as_textcaptcha/maintainability)
|
268
265
|
* [RDoc](http://rdoc.info/projects/matthutchinson/acts_as_textcaptcha)
|
269
266
|
* [Wiki](http://wiki.github.com/matthutchinson/acts_as_textcaptcha/)
|
270
267
|
* [Issues](http://github.com/matthutchinson/acts_as_textcaptcha/issues)
|
data/Rakefile
CHANGED
@@ -12,15 +12,6 @@ end
|
|
12
12
|
|
13
13
|
task :default => [:test]
|
14
14
|
|
15
|
-
# code coverage
|
16
|
-
namespace :test do
|
17
|
-
desc "Run all tests and generate a code coverage report (simplecov)"
|
18
|
-
task :coverage do
|
19
|
-
ENV['COVERAGE'] = 'true'
|
20
|
-
Rake::Task['test'].execute
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
15
|
# rdoc tasks
|
25
16
|
require 'rdoc/task'
|
26
17
|
RDoc::Task.new do |rd|
|
data/acts_as_textcaptcha.gemspec
CHANGED
@@ -30,16 +30,16 @@ Gem::Specification.new do |s|
|
|
30
30
|
s.test_files = `git ls-files -- {test}/*`.split("\n")
|
31
31
|
s.require_paths = ["lib"]
|
32
32
|
|
33
|
+
s.required_ruby_version = ">= 2.1"
|
34
|
+
|
33
35
|
# always test against latest rails version
|
34
36
|
s.add_development_dependency('rails', '~> 5.1.4')
|
35
37
|
|
36
38
|
s.add_development_dependency('mime-types')
|
37
39
|
s.add_development_dependency('bundler')
|
38
40
|
s.add_development_dependency('minitest')
|
39
|
-
s.add_development_dependency('simplecov')
|
40
41
|
s.add_development_dependency('rdoc')
|
41
42
|
s.add_development_dependency('sqlite3')
|
42
43
|
s.add_development_dependency('webmock')
|
43
|
-
s.add_development_dependency('coveralls')
|
44
44
|
s.add_development_dependency('appraisal')
|
45
45
|
end
|
data/gemfiles/rails_5.gemfile
CHANGED
data/test/test_helper.rb
CHANGED
@@ -5,22 +5,6 @@ ENV['RAILS_ENV'] = 'test'
|
|
5
5
|
# ensure tmp dir exists
|
6
6
|
FileUtils.mkdir_p './tmp'
|
7
7
|
|
8
|
-
# confgure test coverage reporting
|
9
|
-
if ENV['COVERAGE']
|
10
|
-
require 'simplecov'
|
11
|
-
SimpleCov.start do
|
12
|
-
add_filter '/test/'
|
13
|
-
add_filter '/vendor/'
|
14
|
-
end
|
15
|
-
SimpleCov.at_exit do
|
16
|
-
SimpleCov.result.format!
|
17
|
-
`open ./coverage/index.html` if RUBY_PLATFORM =~ /darwin/
|
18
|
-
end
|
19
|
-
elsif ENV['TRAVIS']
|
20
|
-
require 'coveralls'
|
21
|
-
Coveralls.wear!
|
22
|
-
end
|
23
|
-
|
24
8
|
require 'minitest/autorun'
|
25
9
|
require 'webmock/minitest'
|
26
10
|
require 'rails/all'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_textcaptcha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Hutchinson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -66,20 +66,6 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: simplecov
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: rdoc
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,20 +108,6 @@ dependencies:
|
|
122
108
|
- - ">="
|
123
109
|
- !ruby/object:Gem::Version
|
124
110
|
version: '0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: coveralls
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
139
111
|
- !ruby/object:Gem::Dependency
|
140
112
|
name: appraisal
|
141
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -206,7 +178,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
206
178
|
requirements:
|
207
179
|
- - ">="
|
208
180
|
- !ruby/object:Gem::Version
|
209
|
-
version: '
|
181
|
+
version: '2.1'
|
210
182
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
211
183
|
requirements:
|
212
184
|
- - ">="
|