acts_as_textcaptcha 4.6.0 → 4.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/.simplecov DELETED
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- SimpleCov.start do
4
- add_filter "/test/"
5
- add_filter "/vendor/"
6
- end
7
-
8
- SimpleCov.at_exit do
9
- SimpleCov.result.format!
10
- `open ./coverage/index.html` if RUBY_PLATFORM =~ /darwin/
11
- end
data/.travis.yml DELETED
@@ -1,57 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- gemfile:
4
- - gemfiles/rails_4.gemfile
5
- - gemfiles/rails_5.gemfile
6
- - gemfiles/rails_6.gemfile
7
- - gemfiles/rails_7.gemfile
8
-
9
- rvm:
10
- - 2.5.8
11
- - 2.6.6
12
- - 2.7.2
13
- - 3.0.0
14
- - 3.1.0
15
- - ruby-head
16
-
17
- matrix:
18
- allow_failures:
19
- - rvm: ruby-head
20
- exclude:
21
- - rvm: 2.7.2
22
- gemfile: gemfiles/rails_4.gemfile
23
- - rvm: 3.0.0
24
- gemfile: gemfiles/rails_4.gemfile
25
- - rvm: 3.1.0
26
- gemfile: gemfiles/rails_4.gemfile
27
- - rvm: 3.0.0
28
- gemfile: gemfiles/rails_5.gemfile
29
- - rvm: 3.1.0
30
- gemfile: gemfiles/rails_5.gemfile
31
- - rvm: ruby-head
32
- gemfile: gemfiles/rails_4.gemfile
33
- - rvm: ruby-head
34
- gemfile: gemfiles/rails_5.gemfile
35
- - rvm: 2.5.8
36
- gemfile: gemfiles/rails_7.gemfile
37
- - rvm: 2.6.6
38
- gemfile: gemfiles/rails_7.gemfile
39
-
40
- deploy:
41
- provider: rubygems
42
- api_key:
43
- secure: AUJy9JSNrNcJcZc6JQErh1LtmHrdQBk1W0DYVT0soyBEx5hbKKoIympmrlh9VcZxNpbLfbuCdxl2C0nWMembwx71tLytvM76BqoU2KKTxQQLju8SUAyzGQabkNHr0mzpUDQiC4L16c5k+voCkWtptGkxiVq6eDZExBSzDM8cVMk=
44
- gem: acts_as_textcaptcha
45
- on:
46
- tags: true
47
- repo: matthutchinson/acts_as_textcaptcha
48
- env:
49
- global:
50
- - CC_TEST_REPORTER_ID=3ff570478529bcdd11ef42d33229702118aa36b17a3de01c3f6d5a9c58fc7a4c
51
- - GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
52
- before_script:
53
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
54
- - chmod +x ./cc-test-reporter
55
- - ./cc-test-reporter before-build - GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
56
- after_script:
57
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT -t simplecov
data/Appraisals DELETED
@@ -1,19 +0,0 @@
1
- appraise "rails-4" do
2
- gem "rails", "4.2.11.3"
3
- gem "sqlite3", "~> 1.3.5"
4
- end
5
-
6
- appraise "rails-5" do
7
- gem "rails", "5.2.4.4"
8
- gem "sqlite3", "~> 1.4.2"
9
- end
10
-
11
- appraise "rails-6" do
12
- gem "rails", "6.0.3.4"
13
- gem "sqlite3", "~> 1.4.2"
14
- end
15
-
16
- appraise "rails-7" do
17
- gem "rails", "7.0.2.2"
18
- gem "sqlite3", "~> 1.4.2"
19
- end
data/CHANGELOG.md DELETED
@@ -1,117 +0,0 @@
1
- # ChangeLog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog][KeepAChangelog] and this project
6
- adheres to [Semantic Versioning][Semver].
7
-
8
- ## [Unreleased]
9
-
10
- - Your contribution here!
11
-
12
- ## [4.6.0] - 2022-02-14
13
- ### Changed
14
- - CI covers Latest Rails version 7 and Ruby 3.1
15
- - Use `YAML.safe_load` and allow aliases
16
-
17
- ## [4.5.2] - 2021-01-28
18
- ### Changed
19
- - CI covers Latest Rails version 6,5,4 and Ruby 3,2.7,2.6,2.5
20
- ### Removed
21
- - Support for Ruby < 2.5 (EOL versions not supported)
22
- - No longer testing against Rails 3 in CI
23
-
24
- ## [4.5.1] - 2020-01-28
25
- ### Fixed
26
- - add Rails Railtie to fix rake task loading
27
- ### Removed
28
- - Support for Ruby < 2.4 (EOL versions not supported)
29
-
30
- ## [4.5.0] - 2019-04-22
31
- ### Added
32
- - `# frozen_string_literal: true` to all Ruby files
33
-
34
- ### Removed
35
- - Support for Ruby < 2.3 (earlier versions no longer supported)
36
-
37
- ## [4.4.1] - 2018-05-20
38
- ### Changed
39
- - Fetch from JSON endpoint, rather than XML
40
- - Regular MiniTest used for tests
41
- - Update README, LICENSE, CHANGELOG, gemspec etc.
42
-
43
- ### Added
44
- - Test against Rails 5.1.5
45
- - API/network errors logged by default
46
- - Allow API/network errors to be raised with `raise_errors` option
47
- - Allow endpoint to be configured with `api_endpoint` option
48
-
49
- ### Removed
50
- - Coveralls (now Code Climate & SimpleCov)
51
-
52
- ## [4.3.0] - 2018-02-18
53
- ### Changed
54
- - Update README, fixed Code Climate
55
-
56
- ### Removed
57
- - Support for Ruby 2.0
58
-
59
- ## [4.2.0] - 2018-01-17
60
- ### Changed
61
- - Updated Rubies for Travis CI.
62
- - Update tests to remove MiniTest warnings.
63
- - Latest Rails (~> 5.1.4) now set in gemspec.
64
-
65
- ## [4.1.3] - 2016-0-28
66
- ### Changed
67
- - Updated gem dependencies.
68
- - Switched from FakeWeb to Webmock.
69
- - Cleaned up Rakefile.
70
- - README now in markdown, badges fixed up.
71
-
72
- ### Added
73
- - bin/console
74
- - MIT license and Code of Conduct.
75
-
76
- ### Removed
77
- - Pry gem (dev dependency)
78
-
79
- ## [4.1.2] - 2014-05-11
80
- ### Changed
81
- - Updated gem dependencies.
82
-
83
- ### Added
84
- - `rake console` for helpful debugging.
85
-
86
- ## [4.1.1] 2014-01-13
87
- ### Removed
88
- - gem [signing & cert](http://tinyurl.com/p98owwz).
89
-
90
- ## [4.1.0] - 2014-01-02
91
- ### Added
92
- - CHANGELOG (this file) added.
93
-
94
- ### Removed
95
- - Support for Rails 2.
96
-
97
- ## [4.0.0] - 2014-01-01
98
- ### Changed
99
- - Using a cache store to persist answers between requests.
100
- - README updated.
101
- - Test coverage improved.
102
-
103
- [Unreleased]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.6.0...HEAD
104
- [4.6.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.5.2...v4.6.0
105
- [4.5.2]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.5.1...v4.5.2
106
- [4.5.1]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.5.0...v4.5.1
107
- [4.5.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.4.1...v4.5.0
108
- [4.4.1]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.3.0...v4.4.1
109
- [4.3.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.2.0...v4.3.0
110
- [4.2.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.1.3...v4.2.0
111
- [4.1.3]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.1.2...v4.1.3
112
- [4.1.2]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.1.1...v4.1.2
113
- [4.1.1]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.1.0...v4.1.1
114
- [4.1.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.0.0...v4.1.0
115
- [4.0.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v3.0.11...v4.0.0
116
- [KeepAChangelog]: http://keepachangelog.com/en/1.0.0/
117
- [Semver]: http://semver.org/spec/v2.0.0.html
data/CODE_OF_CONDUCT.md DELETED
@@ -1,73 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- education, socio-economic status, nationality, personal appearance, race,
10
- religion, or sexual identity and orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at matt@hiddenloop.com. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72
-
73
- [homepage]: https://www.contributor-covenant.org
data/CONTRIBUTING.md DELETED
@@ -1,36 +0,0 @@
1
- ### Contributing
2
-
3
- Pull Requests are welcome! To get started:
4
-
5
- [Fork](https://guides.github.com/activities/forking) then clone the repository:
6
-
7
- git clone git@github.com:your-username/acts_as_textcaptcha.git
8
-
9
- Create your feature branch:
10
-
11
- git checkout -b my-new-feature
12
-
13
- When you are happy with your change, run the full test suite:
14
-
15
- bundle exec rake
16
-
17
- With a passing test suite, commit your changes, push and submit a new [Pull
18
- Request](https://github.com/matthutchinson/acts_as_textcaptcha/compare):
19
-
20
- git commit -am 'Added some feature'
21
- git push origin my-new-feature
22
-
23
- At this point you'll be waiting for one of our maintainers to review it. We will
24
- try to reply to new pull requests within a few days. We might suggest some
25
- changes, improvements or alternatives. To increase the chance that your pull
26
- request gets accepted:
27
-
28
- * Explain what your are doing (and why) in your pull request description.
29
- * If you are fixing an
30
- [issue](https://github.com/matthutchinson/acts_as_textcaptcha/issues), link to
31
- it in your description and [mention
32
- it](https://help.github.com/articles/closing-issues-via-commit-messages) in
33
- the commit message.
34
- * Write a good [commit
35
- message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
36
- * Write tests.
data/Gemfile DELETED
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source "https://rubygems.org"
4
- gemspec
@@ -1,16 +0,0 @@
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/Rakefile DELETED
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rake/testtask"
5
- require "rdoc/task"
6
- require "rubocop/rake_task"
7
-
8
- # generate docs
9
- RDoc::Task.new do |rd|
10
- rd.main = "README.md"
11
- rd.title = "ActsAsTextcaptcha"
12
- rd.rdoc_dir = "doc"
13
- rd.options << "--all"
14
- rd.rdoc_files.include("README.md", "LICENSE", "lib/**/*.rb")
15
- end
16
-
17
- # run tests
18
- Rake::TestTask.new(:test) do |t|
19
- t.libs << "test"
20
- t.libs << "lib"
21
- t.test_files = FileList["test/**/*_test.rb"]
22
- end
23
-
24
- # run lint
25
- RuboCop::RakeTask.new(:rubocop) do |t|
26
- t.options = ["--display-cop-names"]
27
- end
28
-
29
- # run tests with code coverage (default)
30
- namespace :test do
31
- desc "Run all tests and features and generate a code coverage report"
32
- task :coverage do
33
- ENV["COVERAGE"] = "true"
34
- Rake::Task["test"].execute
35
- Rake::Task["rubocop"].execute
36
- end
37
- end
38
-
39
- task default: [:rubocop, "test:coverage"]
@@ -1,62 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- lib = File.expand_path("lib", __dir__)
4
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require "acts_as_textcaptcha/version"
6
-
7
- Gem::Specification.new do |spec|
8
- spec.name = "acts_as_textcaptcha"
9
- spec.version = ActsAsTextcaptcha::VERSION
10
- spec.authors = ["Matthew Hutchinson"]
11
- spec.email = ["matt@hiddenloop.com"]
12
- spec.homepage = "http://github.com/matthutchinson/acts_as_textcaptcha"
13
- spec.license = "MIT"
14
- spec.summary = "A text-based logic question captcha for Rails"
15
-
16
- spec.description = <<-DESCRIPTION
17
- ActsAsTextcaptcha provides spam protection for Rails models with text-based
18
- logic question captchas. Questions are fetched from Rob Tuley's
19
- textcaptcha.com They can be solved easily by humans but are tough for robots
20
- to crack.
21
- DESCRIPTION
22
-
23
- spec.metadata = {
24
- "homepage_uri" => "https://github.com/matthutchinson/acts_as_textcaptcha",
25
- "changelog_uri" => "https://github.com/matthutchinson/acts_as_textcaptcha/blob/master/CHANGELOG.md",
26
- "source_code_uri" => "https://github.com/matthutchinson/acts_as_textcaptcha",
27
- "bug_tracker_uri" => "https://github.com/matthutchinson/acts_as_textcaptcha/issues",
28
- "allowed_push_host" => "https://rubygems.org",
29
- "rubygems_mfa_required" => "true"
30
- }
31
-
32
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
33
- spec.test_files = `git ls-files -- {test}/*`.split("\n")
34
- spec.bindir = "bin"
35
- spec.require_paths = ["lib"]
36
-
37
- # documentation
38
- spec.extra_rdoc_files = ["README.md", "LICENSE"]
39
- spec.rdoc_options << "--title" << "ActAsTextcaptcha" << "--main" << "README.md" << "-ri"
40
-
41
- # non-gem dependecies
42
- spec.required_ruby_version = ">= 2.5"
43
-
44
- # dev gems
45
- spec.add_development_dependency("bundler")
46
- spec.add_development_dependency("pry-byebug")
47
- spec.add_development_dependency "rake"
48
-
49
- # Lint
50
- spec.add_development_dependency("rubocop")
51
-
52
- # docs
53
- spec.add_development_dependency("rdoc")
54
-
55
- # testing
56
- spec.add_development_dependency("appraisal")
57
- spec.add_development_dependency("minitest")
58
- spec.add_development_dependency("rails", "~> 7.0.2.2")
59
- spec.add_development_dependency("simplecov", "~> 0.19.1")
60
- spec.add_development_dependency("sqlite3")
61
- spec.add_development_dependency("webmock")
62
- end
data/bin/console DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "rails/all"
5
- require "acts_as_textcaptcha"
6
- require "irb"
7
-
8
- IRB.start
data/bin/setup DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
- set -vx
5
-
6
- bundle install
7
- bundle exec rake rdoc
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "3.2.22.5"
6
- gem "sqlite3", "~> 1.3.5"
7
-
8
- gemspec path: "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "4.2.11.3"
6
- gem "sqlite3", "~> 1.3.5"
7
-
8
- gemspec path: "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "5.2.4.4"
6
- gem "sqlite3", "~> 1.4.2"
7
-
8
- gemspec path: "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "6.0.3.4"
6
- gem "sqlite3", "~> 1.4.2"
7
-
8
- gemspec path: "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "7.0.2.2"
6
- gem "sqlite3", "~> 1.4.2"
7
-
8
- gemspec path: "../"