acts_as_textcaptcha 4.4.1 → 4.5.0
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.
- checksums.yaml +4 -4
- data/.travis.yml +11 -6
- data/Appraisals +5 -2
- data/CHANGELOG.md +12 -1
- data/CODE_OF_CONDUCT.md +1 -2
- data/PULL_REQUEST_TEMPLATE.md +16 -0
- data/README.md +3 -3
- data/acts_as_textcaptcha.gemspec +11 -19
- data/gemfiles/rails_3.gemfile +2 -1
- data/gemfiles/rails_4.gemfile +3 -2
- data/gemfiles/rails_5.gemfile +3 -2
- data/lib/acts_as_textcaptcha.rb +2 -0
- data/lib/acts_as_textcaptcha/errors.rb +2 -0
- data/lib/acts_as_textcaptcha/framework/rails.rb +3 -1
- data/lib/acts_as_textcaptcha/textcaptcha.rb +2 -0
- data/lib/acts_as_textcaptcha/textcaptcha_api.rb +2 -0
- data/lib/acts_as_textcaptcha/textcaptcha_cache.rb +2 -0
- data/lib/acts_as_textcaptcha/textcaptcha_config.rb +2 -0
- data/lib/acts_as_textcaptcha/textcaptcha_helper.rb +2 -0
- data/lib/acts_as_textcaptcha/version.rb +3 -1
- metadata +11 -11
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8ed6cda938e2eef4bc1e43087b7369aa2e34a2a91c6a6d3074b840bd3bac7b12
|
|
4
|
+
data.tar.gz: d186477cbd3f9462f1ce72701a0e8b21da0e21557828f98889cdbf797746f723
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2374172383579b36dc116e33a47d50407900276e54eaf6f5aa9767b1fc1f99ab2484e37862679d97bb276bea1d9a5be0b423a8aacad6f9c6485eaad22a3a5e38
|
|
7
|
+
data.tar.gz: 532f0ba5e88575e69abbf2eb63eac51b88371b50c9da55201a8af6cd4ad2f5615f6a03988d24b0ec014475bd9fe89896fdede5a9d7c121b27ba9f8b1e376218c
|
data/.travis.yml
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
sudo: false
|
|
2
2
|
language: ruby
|
|
3
|
+
script: 'bundle exec rake test'
|
|
3
4
|
gemfile:
|
|
4
5
|
- gemfiles/rails_3.gemfile
|
|
5
6
|
- gemfiles/rails_4.gemfile
|
|
6
7
|
- gemfiles/rails_5.gemfile
|
|
8
|
+
|
|
7
9
|
rvm:
|
|
8
|
-
- 2.
|
|
9
|
-
- 2.
|
|
10
|
-
- 2.
|
|
11
|
-
- 2.
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
- 2.3.8
|
|
11
|
+
- 2.4.6
|
|
12
|
+
- 2.5.5
|
|
13
|
+
- 2.6.3
|
|
14
|
+
- ruby-head
|
|
15
|
+
|
|
14
16
|
deploy:
|
|
15
17
|
provider: rubygems
|
|
16
18
|
api_key:
|
|
@@ -22,6 +24,9 @@ deploy:
|
|
|
22
24
|
env:
|
|
23
25
|
global:
|
|
24
26
|
- CC_TEST_REPORTER_ID=3ff570478529bcdd11ef42d33229702118aa36b17a3de01c3f6d5a9c58fc7a4c
|
|
27
|
+
before_install:
|
|
28
|
+
- gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
|
|
29
|
+
- gem install bundler -v '< 2'
|
|
25
30
|
before_script:
|
|
26
31
|
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
|
27
32
|
- chmod +x ./cc-test-reporter
|
data/Appraisals
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
appraise "rails-3" do
|
|
2
2
|
gem "rails", "3.2.22.5"
|
|
3
|
+
gem "sqlite3", "~> 1.3.6"
|
|
3
4
|
end
|
|
4
5
|
|
|
5
6
|
appraise "rails-4" do
|
|
6
|
-
gem "rails", "4.2.
|
|
7
|
+
gem "rails", "4.2.11.1"
|
|
8
|
+
gem "sqlite3", "~> 1.3.6"
|
|
7
9
|
end
|
|
8
10
|
|
|
9
11
|
appraise "rails-5" do
|
|
10
|
-
gem "rails", "5.2.
|
|
12
|
+
gem "rails", "5.2.3"
|
|
13
|
+
gem "sqlite3", "~> 1.3.6"
|
|
11
14
|
end
|
data/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,13 @@ adheres to [Semantic Versioning](Semver).
|
|
|
9
9
|
|
|
10
10
|
- Your contribution here!
|
|
11
11
|
|
|
12
|
+
## [4.5.0] - 2019-04-22
|
|
13
|
+
### Added
|
|
14
|
+
- `# frozen_string_literal: true` to all Ruby files
|
|
15
|
+
|
|
16
|
+
### Removed
|
|
17
|
+
- Support for Ruby < 2.3 (earlier versions no longer supported)
|
|
18
|
+
|
|
12
19
|
## [4.4.1] - 2018-05-20
|
|
13
20
|
### Changed
|
|
14
21
|
- Fetch from JSON endpoint, rather than XML
|
|
@@ -21,6 +28,9 @@ adheres to [Semantic Versioning](Semver).
|
|
|
21
28
|
- Allow API/network errors to be raised with `raise_errors` option
|
|
22
29
|
- Allow endpoint to be configured with `api_endpoint` option
|
|
23
30
|
|
|
31
|
+
### Removed
|
|
32
|
+
- Coveralls (now Code Climate & SimpleCov)
|
|
33
|
+
|
|
24
34
|
## [4.3.0] - 2018-02-18
|
|
25
35
|
### Changed
|
|
26
36
|
- Update README, fixed Code Climate
|
|
@@ -72,7 +82,8 @@ adheres to [Semantic Versioning](Semver).
|
|
|
72
82
|
- README updated.
|
|
73
83
|
- Test coverage improved.
|
|
74
84
|
|
|
75
|
-
[Unreleased]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.
|
|
85
|
+
[Unreleased]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.5.0...HEAD
|
|
86
|
+
[4.5.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.4.1...v4.5.0
|
|
76
87
|
[4.4.1]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.3.0...v4.4.1
|
|
77
88
|
[4.3.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.2.0...v4.3.0
|
|
78
89
|
[4.2.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.1.3...v4.2.0
|
data/CODE_OF_CONDUCT.md
CHANGED
|
@@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
|
|
|
55
55
|
## Enforcement
|
|
56
56
|
|
|
57
57
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
58
|
-
reported by contacting the project team at
|
|
58
|
+
reported by contacting the project team at matt@hiddenloop.com. All
|
|
59
59
|
complaints will be reviewed and investigated and will result in a response that
|
|
60
60
|
is deemed necessary and appropriate to the circumstances. The project team is
|
|
61
61
|
obligated to maintain confidentiality with regard to the reporter of an incident.
|
|
@@ -71,4 +71,3 @@ This Code of Conduct is adapted from the [Contributor Covenant][homepage], versi
|
|
|
71
71
|
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
|
72
72
|
|
|
73
73
|
[homepage]: https://www.contributor-covenant.org
|
|
74
|
-
[maintainer]: https://github.com/matthutchinson
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
Explain what you're changing and why here.
|
|
3
|
+
|
|
4
|
+
---
|
|
5
|
+
#### :memo: Checklist
|
|
6
|
+
|
|
7
|
+
Please check this list and leave it intact for the reviewer. Thanks! :heart:
|
|
8
|
+
|
|
9
|
+
- [ ] Commit messages provide context (why not just what, some tips [here](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)).
|
|
10
|
+
- [ ] If relevant, mention GitHub issue number above and include in a commit message.
|
|
11
|
+
- [ ] Latest code from master merged.
|
|
12
|
+
- [ ] New behaviour has test coverage.
|
|
13
|
+
- [ ] Avoid duplicating code.
|
|
14
|
+
- [ ] No commented out code.
|
|
15
|
+
- [ ] Avoid comments for your code, write code that explains itself.
|
|
16
|
+
- [ ] Changes are simple, useful, clear and brief.
|
data/README.md
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
[](https://codeclimate.com/github/matthutchinson/acts_as_textcaptcha/maintainability)
|
|
7
7
|
[](https://codeclimate.com/github/matthutchinson/acts_as_textcaptcha/test_coverage)
|
|
8
8
|
|
|
9
|
-
ActsAsTextcaptcha provides spam protection for Rails models with
|
|
10
|
-
logic question
|
|
9
|
+
ActsAsTextcaptcha provides spam protection for Rails models with text-based
|
|
10
|
+
logic question captchas. Questions are fetched from [Rob
|
|
11
11
|
Tuley's](https://twitter.com/robtuley)
|
|
12
12
|
[textcaptcha.com](http://textcaptcha.com/). They can be solved easily by humans
|
|
13
13
|
but are tough for robots to crack.
|
|
@@ -18,7 +18,7 @@ are a good idea visit [textcaptcha.com](http://textcaptcha.com).
|
|
|
18
18
|
|
|
19
19
|
## Requirements
|
|
20
20
|
|
|
21
|
-
* [Ruby](http://ruby-lang.org/) >= 2.
|
|
21
|
+
* [Ruby](http://ruby-lang.org/) >= 2.3
|
|
22
22
|
* [Rails](http://github.com/rails/rails) >= 3
|
|
23
23
|
* [Rails.cache](http://guides.rubyonrails.org/caching_with_rails.html#cache-stores)
|
|
24
24
|
|
data/acts_as_textcaptcha.gemspec
CHANGED
|
@@ -13,39 +13,31 @@ Gem::Specification.new do |spec|
|
|
|
13
13
|
spec.summary = "A text-based logic question captcha for Rails"
|
|
14
14
|
|
|
15
15
|
spec.description = <<-EOF
|
|
16
|
-
ActsAsTextcaptcha provides spam protection for Rails models with
|
|
17
|
-
logic question
|
|
18
|
-
They can be solved easily by humans but are tough for robots
|
|
19
|
-
|
|
16
|
+
ActsAsTextcaptcha provides spam protection for Rails models with text-based
|
|
17
|
+
logic question captchas. Questions are fetched from Rob Tuley's
|
|
18
|
+
textcaptcha.com They can be solved easily by humans but are tough for robots
|
|
19
|
+
to crack.
|
|
20
20
|
EOF
|
|
21
21
|
|
|
22
22
|
spec.metadata = {
|
|
23
|
-
"homepage_uri"
|
|
24
|
-
"changelog_uri"
|
|
25
|
-
"source_code_uri"
|
|
26
|
-
"bug_tracker_uri"
|
|
23
|
+
"homepage_uri" => "https://github.com/matthutchinson/acts_as_textcaptcha",
|
|
24
|
+
"changelog_uri" => "https://github.com/matthutchinson/acts_as_textcaptcha/blob/master/CHANGELOG.md",
|
|
25
|
+
"source_code_uri" => "https://github.com/matthutchinson/acts_as_textcaptcha",
|
|
26
|
+
"bug_tracker_uri" => "https://github.com/matthutchinson/acts_as_textcaptcha/issues",
|
|
27
|
+
"allowed_push_host" => "https://rubygems.org"
|
|
27
28
|
}
|
|
28
29
|
|
|
29
|
-
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the "allowed_push_host"
|
|
30
|
-
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
|
31
|
-
if spec.respond_to?(:metadata)
|
|
32
|
-
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
|
33
|
-
else
|
|
34
|
-
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
|
35
|
-
end
|
|
36
|
-
|
|
37
30
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
38
31
|
spec.test_files = `git ls-files -- {test}/*`.split("\n")
|
|
39
32
|
spec.bindir = "bin"
|
|
40
33
|
spec.require_paths = ["lib"]
|
|
41
34
|
|
|
42
35
|
# documentation
|
|
43
|
-
spec.has_rdoc = true
|
|
44
36
|
spec.extra_rdoc_files = ["README.md", "LICENSE"]
|
|
45
37
|
spec.rdoc_options << "--title" << "ActAsTextcaptcha" << "--main" << "README.md" << "-ri"
|
|
46
38
|
|
|
47
39
|
# non-gem dependecies
|
|
48
|
-
spec.required_ruby_version = ">= 2.
|
|
40
|
+
spec.required_ruby_version = ">= 2.3"
|
|
49
41
|
|
|
50
42
|
# dev gems
|
|
51
43
|
spec.add_development_dependency('bundler')
|
|
@@ -57,7 +49,7 @@ Gem::Specification.new do |spec|
|
|
|
57
49
|
|
|
58
50
|
# testing
|
|
59
51
|
spec.add_development_dependency('minitest')
|
|
60
|
-
spec.add_development_dependency('rails', '~> 5.2.
|
|
52
|
+
spec.add_development_dependency('rails', '~> 5.2.3')
|
|
61
53
|
spec.add_development_dependency('sqlite3')
|
|
62
54
|
spec.add_development_dependency('webmock')
|
|
63
55
|
spec.add_development_dependency('simplecov')
|
data/gemfiles/rails_3.gemfile
CHANGED
data/gemfiles/rails_4.gemfile
CHANGED
data/gemfiles/rails_5.gemfile
CHANGED
data/lib/acts_as_textcaptcha.rb
CHANGED
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.5.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:
|
|
11
|
+
date: 2019-04-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -86,14 +86,14 @@ dependencies:
|
|
|
86
86
|
requirements:
|
|
87
87
|
- - "~>"
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: 5.2.
|
|
89
|
+
version: 5.2.3
|
|
90
90
|
type: :development
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
94
|
- - "~>"
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: 5.2.
|
|
96
|
+
version: 5.2.3
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
98
98
|
name: sqlite3
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -151,10 +151,10 @@ dependencies:
|
|
|
151
151
|
- !ruby/object:Gem::Version
|
|
152
152
|
version: '0'
|
|
153
153
|
description: |2
|
|
154
|
-
ActsAsTextcaptcha provides spam protection for Rails models with
|
|
155
|
-
logic question
|
|
156
|
-
They can be solved easily by humans but are tough for robots
|
|
157
|
-
|
|
154
|
+
ActsAsTextcaptcha provides spam protection for Rails models with text-based
|
|
155
|
+
logic question captchas. Questions are fetched from Rob Tuley's
|
|
156
|
+
textcaptcha.com They can be solved easily by humans but are tough for robots
|
|
157
|
+
to crack.
|
|
158
158
|
email:
|
|
159
159
|
- matt@hiddenloop.com
|
|
160
160
|
executables: []
|
|
@@ -172,6 +172,7 @@ files:
|
|
|
172
172
|
- CONTRIBUTING.md
|
|
173
173
|
- Gemfile
|
|
174
174
|
- LICENSE
|
|
175
|
+
- PULL_REQUEST_TEMPLATE.md
|
|
175
176
|
- README.md
|
|
176
177
|
- Rakefile
|
|
177
178
|
- acts_as_textcaptcha.gemspec
|
|
@@ -212,15 +213,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
212
213
|
requirements:
|
|
213
214
|
- - ">="
|
|
214
215
|
- !ruby/object:Gem::Version
|
|
215
|
-
version: '2.
|
|
216
|
+
version: '2.3'
|
|
216
217
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
217
218
|
requirements:
|
|
218
219
|
- - ">="
|
|
219
220
|
- !ruby/object:Gem::Version
|
|
220
221
|
version: '0'
|
|
221
222
|
requirements: []
|
|
222
|
-
|
|
223
|
-
rubygems_version: 2.7.6
|
|
223
|
+
rubygems_version: 3.0.3
|
|
224
224
|
signing_key:
|
|
225
225
|
specification_version: 4
|
|
226
226
|
summary: A text-based logic question captcha for Rails
|