acts_as_textcaptcha 4.7.0 → 4.7.1
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/README.md +3 -5
- data/config/textcaptcha.yml +34 -0
- data/lib/acts_as_textcaptcha/version.rb +1 -1
- metadata +10 -39
- data/.github/workflows/build.yml +0 -40
- data/.github/workflows/push_gem.yml +0 -25
- data/.gitignore +0 -12
- data/.simplecov +0 -11
- data/Appraisals +0 -7
- data/CHANGELOG.md +0 -125
- data/CODE_OF_CONDUCT.md +0 -73
- data/CONTRIBUTING.md +0 -36
- data/Gemfile +0 -4
- data/PULL_REQUEST_TEMPLATE.md +0 -16
- data/Rakefile +0 -23
- data/acts_as_textcaptcha.gemspec +0 -55
- data/bin/console +0 -8
- data/bin/setup +0 -7
- data/gemfiles/rails_6.gemfile +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f1a973275365e17fdda4a90bbf9469abcbc818b81ed3f37c30b090cabff938f
|
4
|
+
data.tar.gz: 115dabb78d67d6d0edd548c10ede333ddeb24f859b7cd5726944fe0d8c4bf218
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9846e9e86ae795b99f02891e5576defe6d126b9867439f70bfd6c03e4c271f8febb504516ad858ffe70281427afbdb255bc6377f3b2938d34566ed1363cf0291
|
7
|
+
data.tar.gz: 01c9936aad7214e93fff9f402bbd75437535626d6c39a87d0687a2d90c91a6153718bd179c1fc608ca29d0c49d0c2e4890479d6d6a72851bd60963c4060fae0b
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
## ActAsTextcaptcha
|
2
2
|
|
3
|
-
[](https://github.com/matthutchinson/acts_as_textcaptcha/actions/workflows/ci.yml)
|
4
4
|
[](http://rubygems.org/gems/acts_as_textcaptcha)
|
5
5
|
[](https://depfu.com/github/matthutchinson/acts_as_textcaptcha)
|
6
6
|
|
@@ -239,9 +239,7 @@ remember to check it hasn't already been raised.
|
|
239
239
|
Bug [reports](https://github.com/matthutchinson/acts_as_textcaptcha/issues) and
|
240
240
|
[pull requests](https://github.com/matthutchinson/acts_as_textcaptcha/pulls) are
|
241
241
|
welcome on GitHub. When submitting pull requests, remember to add tests covering
|
242
|
-
any new behaviour, and ensure all tests are passing
|
243
|
-
[Travis](https://travis-ci.com/matthutchinson/acts_as_textcaptcha). Read the
|
244
|
-
[contributing
|
242
|
+
any new behaviour, and ensure all tests are passing. Read the [contributing
|
245
243
|
guidelines](https://github.com/matthutchinson/acts_as_textcaptcha/blob/master/CONTRIBUTING.md)
|
246
244
|
for more details.
|
247
245
|
|
@@ -269,7 +267,7 @@ The code is available as open source under the terms of
|
|
269
267
|
|
270
268
|
## Links
|
271
269
|
|
272
|
-
* [CI](https://github.com/matthutchinson/acts_as_textcaptcha/actions/workflows/
|
270
|
+
* [CI](https://github.com/matthutchinson/acts_as_textcaptcha/actions/workflows/ci.yml)
|
273
271
|
* [Demo](https://acts-as-textcaptcha.hiddenloop.dev)
|
274
272
|
* [RDoc](http://rdoc.info/projects/matthutchinson/acts_as_textcaptcha)
|
275
273
|
* [Wiki](http://wiki.github.com/matthutchinson/acts_as_textcaptcha/)
|
@@ -0,0 +1,34 @@
|
|
1
|
+
development: &common_settings
|
2
|
+
api_key: 'TEXTCAPTCHA_API_IDENT' # see https://textcaptcha.com for details
|
3
|
+
# api_endpoint: nil # Optional API URL to fetch questions and answers from
|
4
|
+
# raise_errors: false # Optional flag, if true errors will be raised if the API endpoint fails
|
5
|
+
# cache_expiry_minutes: 10 # Optional minutes for captcha answers to persist in the cache (default 10 minutes)
|
6
|
+
|
7
|
+
questions:
|
8
|
+
- question: 'Is ice hot or cold?'
|
9
|
+
answers: 'cold'
|
10
|
+
- question: 'what color is an orange?'
|
11
|
+
answers: 'orange'
|
12
|
+
- question: 'what is two plus 3?'
|
13
|
+
answers: '5,five'
|
14
|
+
- question: 'what is 5 times two?'
|
15
|
+
answers: '10,ten'
|
16
|
+
- question: 'How many colors in the list, green, brown, foot and blue?'
|
17
|
+
answers: '3,three'
|
18
|
+
- question: 'what is Georges name?'
|
19
|
+
answers: 'george'
|
20
|
+
- question: '11 minus 1?'
|
21
|
+
answers: '10,ten'
|
22
|
+
- question: 'is boiling water hot or cold?'
|
23
|
+
answers: 'hot'
|
24
|
+
- question: 'what color is my blue shirt today?'
|
25
|
+
answers: 'blue'
|
26
|
+
- question: 'what is 16 plus 4?'
|
27
|
+
answers: '20,twenty'
|
28
|
+
|
29
|
+
test:
|
30
|
+
<<: *common_settings
|
31
|
+
api_key: 'TEST_TEXTCAPTCHA_API_IDENT'
|
32
|
+
|
33
|
+
production:
|
34
|
+
<<: *common_settings
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_textcaptcha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.7.
|
4
|
+
version: 4.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Hutchinson
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: rake
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,14 +44,14 @@ dependencies:
|
|
58
44
|
requirements:
|
59
45
|
- - "~>"
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
47
|
+
version: 8.0.1
|
62
48
|
type: :development
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
52
|
- - "~>"
|
67
53
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
54
|
+
version: 8.0.1
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: minitest
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -121,23 +107,9 @@ extra_rdoc_files:
|
|
121
107
|
- README.md
|
122
108
|
- LICENSE
|
123
109
|
files:
|
124
|
-
- ".github/workflows/build.yml"
|
125
|
-
- ".github/workflows/push_gem.yml"
|
126
|
-
- ".gitignore"
|
127
|
-
- ".simplecov"
|
128
|
-
- Appraisals
|
129
|
-
- CHANGELOG.md
|
130
|
-
- CODE_OF_CONDUCT.md
|
131
|
-
- CONTRIBUTING.md
|
132
|
-
- Gemfile
|
133
110
|
- LICENSE
|
134
|
-
- PULL_REQUEST_TEMPLATE.md
|
135
111
|
- README.md
|
136
|
-
-
|
137
|
-
- acts_as_textcaptcha.gemspec
|
138
|
-
- bin/console
|
139
|
-
- bin/setup
|
140
|
-
- gemfiles/rails_6.gemfile
|
112
|
+
- config/textcaptcha.yml
|
141
113
|
- lib/acts_as_textcaptcha.rb
|
142
114
|
- lib/acts_as_textcaptcha/errors.rb
|
143
115
|
- lib/acts_as_textcaptcha/framework/rails.rb
|
@@ -154,12 +126,11 @@ licenses:
|
|
154
126
|
- MIT
|
155
127
|
metadata:
|
156
128
|
homepage_uri: https://github.com/matthutchinson/acts_as_textcaptcha
|
129
|
+
documentation_uri: https://rubydoc.info/gems/acts_as_textcaptcha
|
157
130
|
changelog_uri: https://github.com/matthutchinson/acts_as_textcaptcha/blob/master/CHANGELOG.md
|
158
|
-
source_code_uri: https://github.com/matthutchinson/acts_as_textcaptcha
|
159
131
|
bug_tracker_uri: https://github.com/matthutchinson/acts_as_textcaptcha/issues
|
160
132
|
allowed_push_host: https://rubygems.org
|
161
|
-
|
162
|
-
post_install_message:
|
133
|
+
post_install_message:
|
163
134
|
rdoc_options:
|
164
135
|
- "--title"
|
165
136
|
- ActAsTextcaptcha
|
@@ -179,8 +150,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
179
150
|
- !ruby/object:Gem::Version
|
180
151
|
version: '0'
|
181
152
|
requirements: []
|
182
|
-
rubygems_version: 3.5.
|
183
|
-
signing_key:
|
153
|
+
rubygems_version: 3.5.22
|
154
|
+
signing_key:
|
184
155
|
specification_version: 4
|
185
156
|
summary: A text-based logic question captcha for Rails
|
186
157
|
test_files: []
|
data/.github/workflows/build.yml
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
name: Tests
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches: [ "main" ]
|
6
|
-
pull_request:
|
7
|
-
branches: [ "main" ]
|
8
|
-
|
9
|
-
permissions:
|
10
|
-
contents: read
|
11
|
-
|
12
|
-
jobs:
|
13
|
-
test:
|
14
|
-
strategy:
|
15
|
-
matrix:
|
16
|
-
ruby-version:
|
17
|
-
- "3.1"
|
18
|
-
- "3.2"
|
19
|
-
- "3.3"
|
20
|
-
- "3.4"
|
21
|
-
gemfile:
|
22
|
-
- Gemfile
|
23
|
-
- gemfiles/rails_6.gemfile
|
24
|
-
exclude:
|
25
|
-
- ruby-version: "3.4"
|
26
|
-
gemfile: gemfiles/rails_6.gemfile
|
27
|
-
runs-on: ubuntu-latest
|
28
|
-
name: ${{ format('Tests (Ruby {0})', matrix.ruby-version) }}
|
29
|
-
continue-on-error: true
|
30
|
-
env:
|
31
|
-
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
|
32
|
-
steps:
|
33
|
-
- uses: actions/checkout@v4
|
34
|
-
- name: Set up Ruby
|
35
|
-
uses: ruby/setup-ruby@v1
|
36
|
-
with:
|
37
|
-
ruby-version: ${{ matrix.ruby-version }}
|
38
|
-
bundler-cache: true
|
39
|
-
- name: Run tests
|
40
|
-
run: bundle exec rake
|
@@ -1,25 +0,0 @@
|
|
1
|
-
name: Publish gem to RubyGems.org
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
tags:
|
6
|
-
- v*
|
7
|
-
|
8
|
-
jobs:
|
9
|
-
push:
|
10
|
-
name: Push gem to RubyGems.org
|
11
|
-
runs-on: ubuntu-latest
|
12
|
-
|
13
|
-
permissions:
|
14
|
-
id-token: write
|
15
|
-
contents: write
|
16
|
-
|
17
|
-
steps:
|
18
|
-
- uses: actions/checkout@v4
|
19
|
-
- name: Set up Ruby
|
20
|
-
uses: ruby/setup-ruby@v1
|
21
|
-
with:
|
22
|
-
bundler-cache: true
|
23
|
-
ruby-version: ruby
|
24
|
-
|
25
|
-
- uses: rubygems/release-gem@v1
|
data/.gitignore
DELETED
data/.simplecov
DELETED
data/Appraisals
DELETED
data/CHANGELOG.md
DELETED
@@ -1,125 +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.7.0] - 2024-10-03
|
13
|
-
### Changed
|
14
|
-
- CI covers Latest Rails version 7, 6 and Ruby 3.1 -> 3.4
|
15
|
-
- Removed Apprasial
|
16
|
-
- Added GH workflow
|
17
|
-
- Dropped rubocop, simplecov
|
18
|
-
|
19
|
-
## [4.6.0] - 2022-02-14
|
20
|
-
### Changed
|
21
|
-
- CI covers Latest Rails version 7 and Ruby 3.1
|
22
|
-
- Use `YAML.safe_load` and allow aliases
|
23
|
-
|
24
|
-
## [4.5.2] - 2021-01-28
|
25
|
-
### Changed
|
26
|
-
- CI covers Latest Rails version 6,5,4 and Ruby 3,2.7,2.6,2.5
|
27
|
-
### Removed
|
28
|
-
- Support for Ruby < 2.5 (EOL versions not supported)
|
29
|
-
- No longer testing against Rails 3 in CI
|
30
|
-
|
31
|
-
## [4.5.1] - 2020-01-28
|
32
|
-
### Fixed
|
33
|
-
- add Rails Railtie to fix rake task loading
|
34
|
-
### Removed
|
35
|
-
- Support for Ruby < 2.4 (EOL versions not supported)
|
36
|
-
|
37
|
-
## [4.5.0] - 2019-04-22
|
38
|
-
### Added
|
39
|
-
- `# frozen_string_literal: true` to all Ruby files
|
40
|
-
|
41
|
-
### Removed
|
42
|
-
- Support for Ruby < 2.3 (earlier versions no longer supported)
|
43
|
-
|
44
|
-
## [4.4.1] - 2018-05-20
|
45
|
-
### Changed
|
46
|
-
- Fetch from JSON endpoint, rather than XML
|
47
|
-
- Regular MiniTest used for tests
|
48
|
-
- Update README, LICENSE, CHANGELOG, gemspec etc.
|
49
|
-
|
50
|
-
### Added
|
51
|
-
- Test against Rails 5.1.5
|
52
|
-
- API/network errors logged by default
|
53
|
-
- Allow API/network errors to be raised with `raise_errors` option
|
54
|
-
- Allow endpoint to be configured with `api_endpoint` option
|
55
|
-
|
56
|
-
### Removed
|
57
|
-
- Coveralls (now Code Climate & SimpleCov)
|
58
|
-
|
59
|
-
## [4.3.0] - 2018-02-18
|
60
|
-
### Changed
|
61
|
-
- Update README, fixed Code Climate
|
62
|
-
|
63
|
-
### Removed
|
64
|
-
- Support for Ruby 2.0
|
65
|
-
|
66
|
-
## [4.2.0] - 2018-01-17
|
67
|
-
### Changed
|
68
|
-
- Updated Rubies for Travis CI.
|
69
|
-
- Update tests to remove MiniTest warnings.
|
70
|
-
- Latest Rails (~> 5.1.4) now set in gemspec.
|
71
|
-
|
72
|
-
## [4.1.3] - 2016-0-28
|
73
|
-
### Changed
|
74
|
-
- Updated gem dependencies.
|
75
|
-
- Switched from FakeWeb to Webmock.
|
76
|
-
- Cleaned up Rakefile.
|
77
|
-
- README now in markdown, badges fixed up.
|
78
|
-
|
79
|
-
### Added
|
80
|
-
- bin/console
|
81
|
-
- MIT license and Code of Conduct.
|
82
|
-
|
83
|
-
### Removed
|
84
|
-
- Pry gem (dev dependency)
|
85
|
-
|
86
|
-
## [4.1.2] - 2014-05-11
|
87
|
-
### Changed
|
88
|
-
- Updated gem dependencies.
|
89
|
-
|
90
|
-
### Added
|
91
|
-
- `rake console` for helpful debugging.
|
92
|
-
|
93
|
-
## [4.1.1] 2014-01-13
|
94
|
-
### Removed
|
95
|
-
- gem [signing & cert](http://tinyurl.com/p98owwz).
|
96
|
-
|
97
|
-
## [4.1.0] - 2014-01-02
|
98
|
-
### Added
|
99
|
-
- CHANGELOG (this file) added.
|
100
|
-
|
101
|
-
### Removed
|
102
|
-
- Support for Rails 2.
|
103
|
-
|
104
|
-
## [4.0.0] - 2014-01-01
|
105
|
-
### Changed
|
106
|
-
- Using a cache store to persist answers between requests.
|
107
|
-
- README updated.
|
108
|
-
- Test coverage improved.
|
109
|
-
|
110
|
-
[Unreleased]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.7.0...HEAD
|
111
|
-
[4.7.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.6.0...v4.7.0
|
112
|
-
[4.6.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.5.2...v4.6.0
|
113
|
-
[4.5.2]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.5.1...v4.5.2
|
114
|
-
[4.5.1]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.5.0...v4.5.1
|
115
|
-
[4.5.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.4.1...v4.5.0
|
116
|
-
[4.4.1]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.3.0...v4.4.1
|
117
|
-
[4.3.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.2.0...v4.3.0
|
118
|
-
[4.2.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.1.3...v4.2.0
|
119
|
-
[4.1.3]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.1.2...v4.1.3
|
120
|
-
[4.1.2]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.1.1...v4.1.2
|
121
|
-
[4.1.1]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.1.0...v4.1.1
|
122
|
-
[4.1.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.0.0...v4.1.0
|
123
|
-
[4.0.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v3.0.11...v4.0.0
|
124
|
-
[KeepAChangelog]: http://keepachangelog.com/en/1.0.0/
|
125
|
-
[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
data/PULL_REQUEST_TEMPLATE.md
DELETED
@@ -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,23 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "bundler/gem_tasks"
|
4
|
-
require "rake/testtask"
|
5
|
-
require "rdoc/task"
|
6
|
-
|
7
|
-
# generate docs
|
8
|
-
RDoc::Task.new do |rd|
|
9
|
-
rd.main = "README.md"
|
10
|
-
rd.title = "ActsAsTextcaptcha"
|
11
|
-
rd.rdoc_dir = "doc"
|
12
|
-
rd.options << "--all"
|
13
|
-
rd.rdoc_files.include("README.md", "LICENSE", "lib/**/*.rb")
|
14
|
-
end
|
15
|
-
|
16
|
-
# run tests
|
17
|
-
Rake::TestTask.new(:test) do |t|
|
18
|
-
t.libs << "test"
|
19
|
-
t.libs << "lib"
|
20
|
-
t.test_files = FileList["test/**/*_test.rb"]
|
21
|
-
end
|
22
|
-
|
23
|
-
task default: ["test"]
|
data/acts_as_textcaptcha.gemspec
DELETED
@@ -1,55 +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.bindir = "bin"
|
34
|
-
spec.require_paths = ["lib"]
|
35
|
-
|
36
|
-
# documentation
|
37
|
-
spec.extra_rdoc_files = ["README.md", "LICENSE"]
|
38
|
-
spec.rdoc_options << "--title" << "ActAsTextcaptcha" << "--main" << "README.md" << "-ri"
|
39
|
-
|
40
|
-
# non-gem dependecies
|
41
|
-
spec.required_ruby_version = ">= 3.1"
|
42
|
-
|
43
|
-
# dev gems
|
44
|
-
spec.add_development_dependency("bundler")
|
45
|
-
spec.add_development_dependency "rake"
|
46
|
-
|
47
|
-
# docs
|
48
|
-
spec.add_development_dependency("rdoc")
|
49
|
-
|
50
|
-
# testing
|
51
|
-
spec.add_development_dependency("rails", "~> 7.2")
|
52
|
-
spec.add_development_dependency("minitest")
|
53
|
-
spec.add_development_dependency("sqlite3")
|
54
|
-
spec.add_development_dependency("webmock")
|
55
|
-
end
|
data/bin/console
DELETED
data/bin/setup
DELETED