acts_as_textcaptcha 4.3.0 → 4.4.1

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: 37120b6c8addc12ae7dccd511f46bdd0f81f5ff7deb168b266ed94fff2a8d4a3
4
- data.tar.gz: bf3a36d0a6748593f5ff7c2cea551e779d08c7e3014fd52da5ac5417053e3440
3
+ metadata.gz: f6efa779be0765425802b9071fed4872d802ba73866f0a011348b7be5f6d9bf4
4
+ data.tar.gz: 29d062532e20a60f9dbf0f905273e47960a72fbe0bd121994c90943adad6ddb1
5
5
  SHA512:
6
- metadata.gz: d21d1aaac5524dad7935e9e12ddf323ae63c9a01be2803b46de03aac1e92cd0768412229daa0ebdaf99ac75d8d897b1dcf04228ee652696e6e38fcc359c306ab
7
- data.tar.gz: 184ea7c210655525af3107e946ef828d4b0cd49cd9808c5a0996e344bc2bab32d9f2add91993e9ddc9071080132db8eb5d7358536cdb2909a036fdf2a933b0e7
6
+ metadata.gz: 162837a37ba7b5cdc7d30932a15196a13cc78cc4ff58b61f7a221d6f1826459f86923b238231a3e58da69b359afec9ed347f91467d3af5cbe7fd99977459ab69
7
+ data.tar.gz: 04b93f4b395f897fb73dfe7841cf7050887126936698e06f1709e766e58c958307a589a995239d5433d134166b945f0b3a159172299ca26f594b2cceb0e7b59e
data/.gitignore CHANGED
@@ -7,4 +7,6 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /coverage/
11
+ /config/
10
12
  *.gemfile.lock
data/.simplecov ADDED
@@ -0,0 +1,9 @@
1
+ SimpleCov.start do
2
+ add_filter '/test/'
3
+ add_filter '/vendor/'
4
+ end
5
+
6
+ SimpleCov.at_exit do
7
+ SimpleCov.result.format!
8
+ `open ./coverage/index.html` if RUBY_PLATFORM =~ /darwin/
9
+ end
data/.travis.yml CHANGED
@@ -5,10 +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
8
+ - 2.2.10
9
+ - 2.3.7
10
+ - 2.4.4
11
+ - 2.5.1
12
12
  before_install:
13
13
  - gem update --system
14
14
  deploy:
@@ -19,3 +19,12 @@ deploy:
19
19
  on:
20
20
  tags: true
21
21
  repo: matthutchinson/acts_as_textcaptcha
22
+ env:
23
+ global:
24
+ - CC_TEST_REPORTER_ID=3ff570478529bcdd11ef42d33229702118aa36b17a3de01c3f6d5a9c58fc7a4c
25
+ before_script:
26
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
27
+ - chmod +x ./cc-test-reporter
28
+ - ./cc-test-reporter before-build
29
+ after_script:
30
+ - ./cc-test-reporter after-build
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.5"
10
+ gem "rails", "5.2.0"
11
11
  end
data/CHANGELOG.md CHANGED
@@ -1,51 +1,85 @@
1
- ### ActsAsTextcaptcha Change Log
1
+ # ChangeLog
2
2
 
3
- All notable changes to this project will be documented in this file. This
4
- project adheres to [Semantic Versioning][Semver].
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).
5
7
 
6
8
  ## [Unreleased]
7
9
 
8
- * Your contribution here!
10
+ - Your contribution here!
11
+
12
+ ## [4.4.1] - 2018-05-20
13
+ ### Changed
14
+ - Fetch from JSON endpoint, rather than XML
15
+ - Regular MiniTest used for tests
16
+ - Update README, LICENSE, CHANGELOG, gemspec etc.
17
+
18
+ ### Added
19
+ - Test against Rails 5.1.5
20
+ - API/network errors logged by default
21
+ - Allow API/network errors to be raised with `raise_errors` option
22
+ - Allow endpoint to be configured with `api_endpoint` option
23
+
24
+ ## [4.3.0] - 2018-02-18
25
+ ### Changed
26
+ - Update README, fixed Code Climate
27
+
28
+ ### Removed
29
+ - Support for Ruby 2.0
9
30
 
10
- ## [4.2.0][] (17 Jan 2018)
11
- * Updated Rubies for Travis CI
12
- * Update tests to remove MiniTest warnings
13
- * Latest Rails (~> 5.1.4) now set in gemspec
31
+ ## [4.2.0] - 2018-01-17
32
+ ### Changed
33
+ - Updated Rubies for Travis CI.
34
+ - Update tests to remove MiniTest warnings.
35
+ - Latest Rails (~> 5.1.4) now set in gemspec.
14
36
 
15
- ## [4.1.3][] (28 May 2016)
16
- * Updated gem dependencies
17
- * Switched from FakeWeb to Webmock
18
- * Added bin/console
19
- * Cleaned up Rakefile
20
- * Added MIT license and Code of Conduct
21
- * README now in markdown, badges fixed up
22
- * Removed Pry gem (development dependency)
37
+ ## [4.1.3] - 2016-0-28
38
+ ### Changed
39
+ - Updated gem dependencies.
40
+ - Switched from FakeWeb to Webmock.
41
+ - Cleaned up Rakefile.
42
+ - README now in markdown, badges fixed up.
23
43
 
24
- ## [4.1.2][] (11 May 2014)
25
- * Updated gem dependencies
26
- * Added `rake console` for helpful debugging
44
+ ### Added
45
+ - bin/console
46
+ - MIT license and Code of Conduct.
27
47
 
28
- ## [4.1.1][] (13 January 2014)
29
- * Dropped gem [signing & cert](http://tinyurl.com/p98owwz)
48
+ ### Removed
49
+ - Pry gem (dev dependency)
30
50
 
31
- ## [4.1.0][] (2 January 2014)
32
- * Dropping support for Rails 2
33
- * README updated
34
- * CHANGELOG (this file) added
51
+ ## [4.1.2] - 2014-05-11
52
+ ### Changed
53
+ - Updated gem dependencies.
35
54
 
36
- ## [4.0.0][] (1 January 2014)
37
- * Using a cache store to persist answers between requests
38
- * README updated
39
- * Test coverage improved
55
+ ### Added
56
+ - `rake console` for helpful debugging.
40
57
 
41
- (further change log details for older releases are unavailable)
58
+ ## [4.1.1] 2014-01-13
59
+ ### Removed
60
+ - gem [signing & cert](http://tinyurl.com/p98owwz).
42
61
 
43
- [Unreleased]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.2.0...HEAD
44
- [4.1.3]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.1.3...v4.2.0
62
+ ## [4.1.0] - 2014-01-02
63
+ ### Added
64
+ - CHANGELOG (this file) added.
65
+
66
+ ### Removed
67
+ - Support for Rails 2.
68
+
69
+ ## [4.0.0] - 2014-01-01
70
+ ### Changed
71
+ - Using a cache store to persist answers between requests.
72
+ - README updated.
73
+ - Test coverage improved.
74
+
75
+ [Unreleased]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.4.1...HEAD
76
+ [4.4.1]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.3.0...v4.4.1
77
+ [4.3.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.2.0...v4.3.0
78
+ [4.2.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.1.3...v4.2.0
45
79
  [4.1.3]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.1.2...v4.1.3
46
80
  [4.1.2]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.1.1...v4.1.2
47
81
  [4.1.1]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.1.0...v4.1.1
48
82
  [4.1.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.0.0...v4.1.0
49
83
  [4.0.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v3.0.11...v4.0.0
50
-
51
- [Semver]: http://semver.org
84
+ [KeepAChangelog]: http://keepachangelog.com/en/1.0.0/
85
+ [Semver]: http://semver.org/spec/v2.0.0.html
data/CODE_OF_CONDUCT.md CHANGED
@@ -1,24 +1,41 @@
1
- # Contributor Code of Conduct
1
+ # Contributor Covenant Code of Conduct
2
2
 
3
- As contributors and maintainers of this project, and in the interest of
4
- fostering an open and welcoming community, we pledge to respect all people who
5
- contribute through reporting issues, posting feature requests, updating
6
- documentation, submitting pull requests or patches, and other activities.
3
+ ## Our Pledge
7
4
 
8
- We are committed to making participation in this project a harassment-free
9
- experience for everyone, regardless of level of experience, gender, gender
10
- identity and expression, sexual orientation, disability, personal appearance,
11
- body size, race, ethnicity, age, religion, or nationality.
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
12
22
 
13
23
  Examples of unacceptable behavior by participants include:
14
24
 
15
- * The use of sexualized language or imagery
16
- * Personal attacks
17
- * Trolling or insulting/derogatory comments
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
18
28
  * Public or private harassment
19
- * Publishing other's private information, such as physical or electronic
20
- addresses, without explicit permission
21
- * Other unethical or unprofessional conduct
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.
22
39
 
23
40
  Project maintainers have the right and responsibility to remove, edit, or
24
41
  reject comments, commits, code, wiki edits, issues, and other contributions
@@ -26,25 +43,32 @@ that are not aligned to this Code of Conduct, or to ban temporarily or
26
43
  permanently any contributor for other behaviors that they deem inappropriate,
27
44
  threatening, offensive, or harmful.
28
45
 
29
- By adopting this Code of Conduct, project maintainers commit themselves to
30
- fairly and consistently applying these principles to every aspect of managing
31
- this project. Project maintainers who do not follow or enforce the Code of
32
- Conduct may be permanently removed from the project team.
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.
33
54
 
34
- This code of conduct applies both within project spaces and in public spaces
35
- when an individual is representing the project or its community.
55
+ ## Enforcement
36
56
 
37
57
  Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
- reported by contacting a project maintainer via [GitHub][maintainer]. All
58
+ reported by contacting the project team at via [Github][maintainer]. All
39
59
  complaints will be reviewed and investigated and will result in a response that
40
- is deemed necessary and appropriate to the circumstances. Maintainers are
41
- obligated to maintain confidentiality with regard to the reporter of an
42
- incident.
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
43
69
 
44
- This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
- version 1.3.0, available at
46
- [http://contributor-covenant.org/version/1/3/0/][version]
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
47
72
 
73
+ [homepage]: https://www.contributor-covenant.org
48
74
  [maintainer]: https://github.com/matthutchinson
49
- [homepage]: http://contributor-covenant.org
50
- [version]: http://contributor-covenant.org/version/1/3/0/
data/CONTRIBUTING.md CHANGED
@@ -1,8 +1,8 @@
1
1
  ### Contributing
2
2
 
3
- Pull Requests are welcome! To start helping out on this project:
3
+ Pull Requests are welcome! To get started:
4
4
 
5
- Fork then clone the repository:
5
+ [Fork](https://guides.github.com/activities/forking) then clone the repository:
6
6
 
7
7
  git clone git@github.com:your-username/acts_as_textcaptcha.git
8
8
 
@@ -10,21 +10,26 @@ Create your feature branch:
10
10
 
11
11
  git checkout -b my-new-feature
12
12
 
13
- Commit your changes, push and submit a new [Pull
14
- Request](https://github.com/matthutchinson/acts_as_textcaptcha/compare/):
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):
15
19
 
16
20
  git commit -am 'Added some feature'
17
21
  git push origin my-new-feature
18
22
 
19
- At this point you'll be waiting for me to review it. I try to reply to new Pull
20
- Requests within 5 days. I may suggest some changes, improvements or
21
- alternatives. To increase the chance that your pull request gets accepted:
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:
22
27
 
23
- * Explain what your are doing (and why) in your Pull Request description.
28
+ * Explain what your are doing (and why) in your pull request description.
24
29
  * If you are fixing an
25
30
  [issue](https://github.com/matthutchinson/acts_as_textcaptcha/issues), link to
26
31
  it in your description and [mention
27
- it](https://help.github.com/articles/closing-issues-via-commit-messages/) in
32
+ it](https://help.github.com/articles/closing-issues-via-commit-messages) in
28
33
  the commit message.
29
34
  * Write a good [commit
30
35
  message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
data/Gemfile CHANGED
@@ -1,4 +1,2 @@
1
1
  source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in acts_as_textcaptcha.gemspec
4
2
  gemspec
data/LICENSE ADDED
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.