acts_as_textcaptcha 4.2.0 → 4.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -1
  3. data/.rubocop.yml +1165 -0
  4. data/.simplecov +11 -0
  5. data/.travis.yml +30 -8
  6. data/Appraisals +9 -6
  7. data/CHANGELOG.md +94 -34
  8. data/CODE_OF_CONDUCT.md +54 -31
  9. data/CONTRIBUTING.md +14 -9
  10. data/Gemfile +2 -2
  11. data/LICENSE +165 -0
  12. data/PULL_REQUEST_TEMPLATE.md +16 -0
  13. data/README.md +206 -228
  14. data/Rakefile +26 -19
  15. data/acts_as_textcaptcha.gemspec +57 -41
  16. data/bin/console +2 -5
  17. data/bin/setup +7 -0
  18. data/gemfiles/rails_3.gemfile +1 -0
  19. data/gemfiles/rails_4.gemfile +2 -1
  20. data/gemfiles/rails_5.gemfile +2 -1
  21. data/gemfiles/rails_6.gemfile +8 -0
  22. data/lib/acts_as_textcaptcha.rb +9 -4
  23. data/lib/acts_as_textcaptcha/errors.rb +21 -0
  24. data/lib/acts_as_textcaptcha/framework/rails.rb +3 -1
  25. data/lib/acts_as_textcaptcha/railtie.rb +9 -0
  26. data/lib/acts_as_textcaptcha/tasks/textcaptcha.rake +17 -0
  27. data/lib/acts_as_textcaptcha/textcaptcha.rb +75 -72
  28. data/lib/acts_as_textcaptcha/textcaptcha_api.rb +39 -45
  29. data/lib/acts_as_textcaptcha/textcaptcha_cache.rb +12 -16
  30. data/lib/acts_as_textcaptcha/textcaptcha_config.rb +47 -0
  31. data/lib/acts_as_textcaptcha/textcaptcha_helper.rb +13 -14
  32. data/lib/acts_as_textcaptcha/version.rb +3 -1
  33. metadata +68 -46
  34. data/.coveralls.yml +0 -1
  35. data/LICENSE.txt +0 -21
  36. data/config/textcaptcha.yml +0 -34
  37. data/lib/tasks/textcaptcha.rake +0 -21
  38. data/test/schema.rb +0 -34
  39. data/test/test_helper.rb +0 -44
  40. data/test/test_models.rb +0 -69
  41. data/test/textcaptcha_api_test.rb +0 -46
  42. data/test/textcaptcha_cache_test.rb +0 -25
  43. data/test/textcaptcha_helper_test.rb +0 -68
  44. data/test/textcaptcha_test.rb +0 -198
@@ -0,0 +1,11 @@
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
@@ -1,20 +1,32 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  gemfile:
4
- - gemfiles/rails_3.gemfile
5
4
  - gemfiles/rails_4.gemfile
6
5
  - gemfiles/rails_5.gemfile
6
+ - gemfiles/rails_6.gemfile
7
+
7
8
  rvm:
8
- - 2.2.9
9
- - 2.3.6
10
- - 2.4.3
11
- - 2.5.0
9
+ - 2.5.8
10
+ - 2.6.6
11
+ - 2.7.2
12
+ - 3.0.0
13
+ - ruby-head
14
+
12
15
  matrix:
16
+ allow_failures:
17
+ - rvm: ruby-head
13
18
  exclude:
14
- - rvm: 2.1.10
19
+ - rvm: 2.7.2
20
+ gemfile: gemfiles/rails_4.gemfile
21
+ - rvm: 3.0.0
22
+ gemfile: gemfiles/rails_4.gemfile
23
+ - rvm: 3.0.0
15
24
  gemfile: gemfiles/rails_5.gemfile
16
- before_install:
17
- - gem update --system
25
+ - rvm: ruby-head
26
+ gemfile: gemfiles/rails_4.gemfile
27
+ - rvm: ruby-head
28
+ gemfile: gemfiles/rails_5.gemfile
29
+
18
30
  deploy:
19
31
  provider: rubygems
20
32
  api_key:
@@ -23,3 +35,13 @@ deploy:
23
35
  on:
24
36
  tags: true
25
37
  repo: matthutchinson/acts_as_textcaptcha
38
+ env:
39
+ global:
40
+ - CC_TEST_REPORTER_ID=3ff570478529bcdd11ef42d33229702118aa36b17a3de01c3f6d5a9c58fc7a4c
41
+ - 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)
42
+ before_script:
43
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
44
+ - chmod +x ./cc-test-reporter
45
+ - ./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)
46
+ after_script:
47
+ - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT -t simplecov
data/Appraisals CHANGED
@@ -1,11 +1,14 @@
1
- appraise "rails-3" do
2
- gem "rails", "3.2.22.5"
3
- end
4
-
5
1
  appraise "rails-4" do
6
- gem "rails", "4.2.10"
2
+ gem "rails", "4.2.11.3"
3
+ gem "sqlite3", "~> 1.3.5"
7
4
  end
8
5
 
9
6
  appraise "rails-5" do
10
- gem "rails", "5.1.4"
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"
11
14
  end
@@ -1,51 +1,111 @@
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.5.2] - 2021-01-28
13
+ ### Changed
14
+ - CI covers Latest Rails version 6,5,4 and Ruby 3,2.7,2.6,2.5
15
+ ### Removed
16
+ - Support for Ruby < 2.5 (EOL versions not supported)
17
+ - No longer testing against Rails 3 in CI
18
+
19
+ ## [4.5.1] - 2020-01-28
20
+ ### Fixed
21
+ - add Rails Railtie to fix rake task loading
22
+ ### Removed
23
+ - Support for Ruby < 2.4 (EOL versions not supported)
24
+
25
+ ## [4.5.0] - 2019-04-22
26
+ ### Added
27
+ - `# frozen_string_literal: true` to all Ruby files
28
+
29
+ ### Removed
30
+ - Support for Ruby < 2.3 (earlier versions no longer supported)
31
+
32
+ ## [4.4.1] - 2018-05-20
33
+ ### Changed
34
+ - Fetch from JSON endpoint, rather than XML
35
+ - Regular MiniTest used for tests
36
+ - Update README, LICENSE, CHANGELOG, gemspec etc.
37
+
38
+ ### Added
39
+ - Test against Rails 5.1.5
40
+ - API/network errors logged by default
41
+ - Allow API/network errors to be raised with `raise_errors` option
42
+ - Allow endpoint to be configured with `api_endpoint` option
9
43
 
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
44
+ ### Removed
45
+ - Coveralls (now Code Climate & SimpleCov)
14
46
 
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)
47
+ ## [4.3.0] - 2018-02-18
48
+ ### Changed
49
+ - Update README, fixed Code Climate
23
50
 
24
- ## [4.1.2][] (11 May 2014)
25
- * Updated gem dependencies
26
- * Added `rake console` for helpful debugging
51
+ ### Removed
52
+ - Support for Ruby 2.0
27
53
 
28
- ## [4.1.1][] (13 January 2014)
29
- * Dropped gem [signing & cert](http://tinyurl.com/p98owwz)
54
+ ## [4.2.0] - 2018-01-17
55
+ ### Changed
56
+ - Updated Rubies for Travis CI.
57
+ - Update tests to remove MiniTest warnings.
58
+ - Latest Rails (~> 5.1.4) now set in gemspec.
30
59
 
31
- ## [4.1.0][] (2 January 2014)
32
- * Dropping support for Rails 2
33
- * README updated
34
- * CHANGELOG (this file) added
60
+ ## [4.1.3] - 2016-0-28
61
+ ### Changed
62
+ - Updated gem dependencies.
63
+ - Switched from FakeWeb to Webmock.
64
+ - Cleaned up Rakefile.
65
+ - README now in markdown, badges fixed up.
35
66
 
36
- ## [4.0.0][] (1 January 2014)
37
- * Using a cache store to persist answers between requests
38
- * README updated
39
- * Test coverage improved
67
+ ### Added
68
+ - bin/console
69
+ - MIT license and Code of Conduct.
40
70
 
41
- (further change log details for older releases are unavailable)
71
+ ### Removed
72
+ - Pry gem (dev dependency)
42
73
 
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
74
+ ## [4.1.2] - 2014-05-11
75
+ ### Changed
76
+ - Updated gem dependencies.
77
+
78
+ ### Added
79
+ - `rake console` for helpful debugging.
80
+
81
+ ## [4.1.1] 2014-01-13
82
+ ### Removed
83
+ - gem [signing & cert](http://tinyurl.com/p98owwz).
84
+
85
+ ## [4.1.0] - 2014-01-02
86
+ ### Added
87
+ - CHANGELOG (this file) added.
88
+
89
+ ### Removed
90
+ - Support for Rails 2.
91
+
92
+ ## [4.0.0] - 2014-01-01
93
+ ### Changed
94
+ - Using a cache store to persist answers between requests.
95
+ - README updated.
96
+ - Test coverage improved.
97
+
98
+ [Unreleased]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.5.2...HEAD
99
+ [4.5.2]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.5.1...v4.5.2
100
+ [4.5.1]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.5.0...v4.5.1
101
+ [4.5.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.4.1...v4.5.0
102
+ [4.4.1]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.3.0...v4.4.1
103
+ [4.3.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.2.0...v4.3.0
104
+ [4.2.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.1.3...v4.2.0
45
105
  [4.1.3]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.1.2...v4.1.3
46
106
  [4.1.2]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.1.1...v4.1.2
47
107
  [4.1.1]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.1.0...v4.1.1
48
108
  [4.1.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.0.0...v4.1.0
49
109
  [4.0.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v3.0.11...v4.0.0
50
-
51
- [Semver]: http://semver.org
110
+ [KeepAChangelog]: http://keepachangelog.com/en/1.0.0/
111
+ [Semver]: http://semver.org/spec/v2.0.0.html
@@ -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,31 @@ 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 matt@hiddenloop.com. 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
 
48
- [maintainer]: https://github.com/matthutchinson
49
- [homepage]: http://contributor-covenant.org
50
- [version]: http://contributor-covenant.org/version/1/3/0/
73
+ [homepage]: https://www.contributor-covenant.org
@@ -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,4 @@
1
- source 'https://rubygems.org'
1
+ # frozen_string_literal: true
2
2
 
3
- # Specify your gem's dependencies in acts_as_textcaptcha.gemspec
3
+ source "https://rubygems.org"
4
4
  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.