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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a465a05115f3c4c3730aaa5e17ff43ce4167dee5ba269c54ea23c45613a7fcf
4
- data.tar.gz: 00ab7bf7dadf2c90f623e1a668be1bef30b941bfd67c4abcf54e9a5b5679658e
3
+ metadata.gz: 37120b6c8addc12ae7dccd511f46bdd0f81f5ff7deb168b266ed94fff2a8d4a3
4
+ data.tar.gz: bf3a36d0a6748593f5ff7c2cea551e779d08c7e3014fd52da5ac5417053e3440
5
5
  SHA512:
6
- metadata.gz: 476c04ecc39f85a54b8f4dd2f3420579ada995553eb841ad39cdde9b534557b9f61d0d5579ab9db568ce0d8a6aa4e82838741943e1d6551f3b35f5551dc13aa0
7
- data.tar.gz: 85fa6bdb42b013190232ed5d970a817e7a6fb142b7a40ab1d4c4ed57f2ee03a6592342097db1c7ccfe9826a8ecc95fed332fe737f5ce3b10b8cc33d99c2f6269
6
+ metadata.gz: d21d1aaac5524dad7935e9e12ddf323ae63c9a01be2803b46de03aac1e92cd0768412229daa0ebdaf99ac75d8d897b1dcf04228ee652696e6e38fcc359c306ab
7
+ data.tar.gz: 184ea7c210655525af3107e946ef828d4b0cd49cd9808c5a0996e344bc2bab32d9f2add91993e9ddc9071080132db8eb5d7358536cdb2909a036fdf2a933b0e7
data/.gitignore CHANGED
@@ -3,7 +3,6 @@
3
3
  /.yardoc
4
4
  /Gemfile.lock
5
5
  /_yardoc/
6
- /coverage/
7
6
  /doc/
8
7
  /pkg/
9
8
  /spec/reports/
@@ -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
@@ -7,5 +7,5 @@ appraise "rails-4" do
7
7
  end
8
8
 
9
9
  appraise "rails-5" do
10
- gem "rails", "5.1.4"
10
+ gem "rails", "5.1.5"
11
11
  end
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://img.shields.io/travis/matthutchinson/acts_as_textcaptcha.svg?style=flat)](https://travis-ci.org/matthutchinson/acts_as_textcaptcha)
5
- [![Coverage Status](https://coveralls.io/repos/github/matthutchinson/acts_as_textcaptcha/badge.svg?branch=master)](https://coveralls.io/github/matthutchinson/acts_as_textcaptcha?branch=master)
6
- [![Code Climate](https://codeclimate.com/github/matthutchinson/acts_as_textcaptcha/badges/gpa.svg)](https://codeclimate.com/github/matthutchinson/acts_as_textcaptcha)
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
- * [Test Coverage](https://coveralls.io/r/matthutchinson/acts_as_textcaptcha?branch=master)
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|
@@ -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
@@ -2,6 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "5.1.4"
5
+ gem "rails", "5.1.5"
6
6
 
7
7
  gemspec path: "../"
@@ -1,3 +1,3 @@
1
1
  module ActsAsTextcaptcha
2
- VERSION = "4.2.0"
2
+ VERSION = "4.3.0"
3
3
  end
@@ -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.2.0
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-01-17 00:00:00.000000000 Z
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: '0'
181
+ version: '2.1'
210
182
  required_rubygems_version: !ruby/object:Gem::Requirement
211
183
  requirements:
212
184
  - - ">="