acts_as_textcaptcha 4.5.0 → 4.5.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: 8ed6cda938e2eef4bc1e43087b7369aa2e34a2a91c6a6d3074b840bd3bac7b12
4
- data.tar.gz: d186477cbd3f9462f1ce72701a0e8b21da0e21557828f98889cdbf797746f723
3
+ metadata.gz: 89b5380123d522fb06c431390095fb4951af1a1e13fa69bcf45811d149ffbe76
4
+ data.tar.gz: 9296bc8181a53b53e03ad1bb7d96bc46e5a361121fab81f886837106e41202b2
5
5
  SHA512:
6
- metadata.gz: 2374172383579b36dc116e33a47d50407900276e54eaf6f5aa9767b1fc1f99ab2484e37862679d97bb276bea1d9a5be0b423a8aacad6f9c6485eaad22a3a5e38
7
- data.tar.gz: 532f0ba5e88575e69abbf2eb63eac51b88371b50c9da55201a8af6cd4ad2f5615f6a03988d24b0ec014475bd9fe89896fdede5a9d7c121b27ba9f8b1e376218c
6
+ metadata.gz: ce337bec11d7705873e901ce7237035d7d4311439c466e7ae4ea7df086fedb2561d614269daeca32e693a80cd95fd2d0a9206b1edc844e4a5dfd5ab30e8f0f88
7
+ data.tar.gz: da354e827ca5bde17521e60075d4e431f33b7a8b77dbbb26db8033dae969e00721f3eb9b5258207ccb6a2bbb7a8144b74f6bd7c8cba2b66c44072c047dda4941
@@ -5,14 +5,30 @@ gemfile:
5
5
  - gemfiles/rails_3.gemfile
6
6
  - gemfiles/rails_4.gemfile
7
7
  - gemfiles/rails_5.gemfile
8
+ - gemfiles/rails_6.gemfile
8
9
 
9
10
  rvm:
10
- - 2.3.8
11
- - 2.4.6
12
- - 2.5.5
13
- - 2.6.3
11
+ - 2.4.9
12
+ - 2.5.7
13
+ - 2.6.5
14
+ - 2.7.0
14
15
  - ruby-head
15
16
 
17
+ matrix:
18
+ allow_failures:
19
+ - rvm: ruby-head
20
+ exclude:
21
+ - rvm: 2.4.9
22
+ gemfile: gemfiles/rails_6.gemfile
23
+ - rvm: 2.7.0
24
+ gemfile: gemfiles/rails_3.gemfile
25
+ - rvm: 2.7.0
26
+ gemfile: gemfiles/rails_4.gemfile
27
+ - rvm: ruby-head
28
+ gemfile: gemfiles/rails_3.gemfile
29
+ - rvm: ruby-head
30
+ gemfile: gemfiles/rails_4.gemfile
31
+
16
32
  deploy:
17
33
  provider: rubygems
18
34
  api_key:
data/Appraisals CHANGED
@@ -1,14 +1,19 @@
1
1
  appraise "rails-3" do
2
2
  gem "rails", "3.2.22.5"
3
- gem "sqlite3", "~> 1.3.6"
3
+ gem "sqlite3", "~> 1.3.5"
4
4
  end
5
5
 
6
6
  appraise "rails-4" do
7
7
  gem "rails", "4.2.11.1"
8
- gem "sqlite3", "~> 1.3.6"
8
+ gem "sqlite3", "~> 1.3.5"
9
9
  end
10
10
 
11
11
  appraise "rails-5" do
12
- gem "rails", "5.2.3"
13
- gem "sqlite3", "~> 1.3.6"
12
+ gem "rails", "5.2.4.1"
13
+ gem "sqlite3", "~> 1.4.2"
14
+ end
15
+
16
+ appraise "rails-6" do
17
+ gem "rails", "6.0.2.1"
18
+ gem "sqlite3", "~> 1.4.2"
14
19
  end
@@ -2,13 +2,19 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
- The format is based on [Keep a Changelog](KeepAChangelog) and this project
6
- adheres to [Semantic Versioning](Semver).
5
+ The format is based on [Keep a Changelog][KeepAChangelog] and this project
6
+ adheres to [Semantic Versioning][Semver].
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
10
  - Your contribution here!
11
11
 
12
+ ## [4.5.1] - 2020-01-28
13
+ ### Fixed
14
+ - add Rails Railtie to fix rake task loading
15
+ ### Removed
16
+ - Support for Ruby < 2.4 (EOL versions not supported)
17
+
12
18
  ## [4.5.0] - 2019-04-22
13
19
  ### Added
14
20
  - `# frozen_string_literal: true` to all Ruby files
@@ -82,7 +88,8 @@ adheres to [Semantic Versioning](Semver).
82
88
  - README updated.
83
89
  - Test coverage improved.
84
90
 
85
- [Unreleased]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.5.0...HEAD
91
+ [Unreleased]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.5.1...HEAD
92
+ [4.5.1]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.5.0...v4.5.1
86
93
  [4.5.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.4.1...v4.5.0
87
94
  [4.4.1]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.3.0...v4.4.1
88
95
  [4.3.0]: https://github.com/matthutchinson/acts_as_textcaptcha/compare/v4.2.0...v4.3.0
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  ## ActAsTextcaptcha
2
2
 
3
3
  [![Gem](https://img.shields.io/gem/v/acts_as_textcaptcha.svg?style=flat)](http://rubygems.org/gems/acts_as_textcaptcha)
4
- [![Travis](https://img.shields.io/travis/matthutchinson/acts_as_textcaptcha/master.svg?style=flat)](https://travis-ci.org/matthutchinson/acts_as_textcaptcha)
4
+ [![Travis](https://img.shields.io/travis/com/matthutchinson/acts_as_textcaptcha/master.svg?style=flat)](https://travis-ci.com/matthutchinson/acts_as_textcaptcha)
5
5
  [![Depfu](https://img.shields.io/depfu/matthutchinson/acts_as_textcaptcha.svg?style=flat)](https://depfu.com/github/matthutchinson/acts_as_textcaptcha)
6
6
  [![Maintainability](https://api.codeclimate.com/v1/badges/c67969dd7b921477bdcc/maintainability)](https://codeclimate.com/github/matthutchinson/acts_as_textcaptcha/maintainability)
7
7
  [![Test Coverage](https://api.codeclimate.com/v1/badges/c67969dd7b921477bdcc/test_coverage)](https://codeclimate.com/github/matthutchinson/acts_as_textcaptcha/test_coverage)
@@ -18,15 +18,14 @@ are a good idea visit [textcaptcha.com](http://textcaptcha.com).
18
18
 
19
19
  ## Requirements
20
20
 
21
- * [Ruby](http://ruby-lang.org/) >= 2.3
21
+ * [Ruby](http://ruby-lang.org/) >= 2.4
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
 
25
25
  ## Demo
26
26
 
27
27
  Try a [working demo here](https://acts-as-textcaptcha-demo.herokuapp.com)!
28
- **Or** one-click deploy your own demo app at Heroku. See
29
- [here](https://github.com/matthutchinson/acts_as_textcaptcha_demo) for details.
28
+ Or one-click deploy your own [demo app](https://github.com/matthutchinson/acts_as_textcaptcha_demo) to Heroku.
30
29
 
31
30
  [![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://www.heroku.com/deploy?template=https://github.com/matthutchinson/acts_as_textcaptcha_demo/tree/master)
32
31
 
@@ -218,7 +217,7 @@ Bug [reports](https://github.com/matthutchinson/acts_as_textcaptcha/issues) and
218
217
  [pull requests](https://github.com/matthutchinson/acts_as_textcaptcha/pulls) are
219
218
  welcome on GitHub. When submitting pull requests, remember to add tests covering
220
219
  any new behaviour, and ensure all tests are passing on
221
- [Travis](https://travis-ci.org/matthutchinson/acts_as_textcaptcha). Read the
220
+ [Travis](https://travis-ci.com/matthutchinson/acts_as_textcaptcha). Read the
222
221
  [contributing
223
222
  guidelines](https://github.com/matthutchinson/acts_as_textcaptcha/blob/master/CONTRIBUTING.md)
224
223
  for more details.
@@ -247,7 +246,7 @@ The code is available as open source under the terms of
247
246
  ## Links
248
247
 
249
248
  * [Demo](https://acts-as-textcaptcha-demo.herokuapp.com)
250
- * [Travis CI](http://travis-ci.org/#!/matthutchinson/acts_as_textcaptcha)
249
+ * [Travis CI](http://travis-ci.com/matthutchinson/acts_as_textcaptcha)
251
250
  * [Maintainability](https://codeclimate.com/github/matthutchinson/acts_as_textcaptcha/maintainability)
252
251
  * [Test Coverage](https://codeclimate.com/github/matthutchinson/acts_as_textcaptcha/test_coverage)
253
252
  * [RDoc](http://rdoc.info/projects/matthutchinson/acts_as_textcaptcha)
data/Rakefile CHANGED
@@ -1,7 +1,6 @@
1
1
  require 'bundler/gem_tasks'
2
2
  require 'rake/testtask'
3
3
  require "rdoc/task"
4
- load './lib/tasks/textcaptcha.rake'
5
4
 
6
5
  # generate docs
7
6
  RDoc::Task.new do |rd|
@@ -1,4 +1,3 @@
1
- # coding: utf-8
2
1
  lib = File.expand_path('../lib', __FILE__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require "acts_as_textcaptcha/version"
@@ -37,7 +36,7 @@ Gem::Specification.new do |spec|
37
36
  spec.rdoc_options << "--title" << "ActAsTextcaptcha" << "--main" << "README.md" << "-ri"
38
37
 
39
38
  # non-gem dependecies
40
- spec.required_ruby_version = ">= 2.3"
39
+ spec.required_ruby_version = ">= 2.4"
41
40
 
42
41
  # dev gems
43
42
  spec.add_development_dependency('bundler')
@@ -48,8 +47,8 @@ Gem::Specification.new do |spec|
48
47
  spec.add_development_dependency('rdoc')
49
48
 
50
49
  # testing
50
+ spec.add_development_dependency('rails', '~> 6.0.2.1')
51
51
  spec.add_development_dependency('minitest')
52
- spec.add_development_dependency('rails', '~> 5.2.3')
53
52
  spec.add_development_dependency('sqlite3')
54
53
  spec.add_development_dependency('webmock')
55
54
  spec.add_development_dependency('simplecov')
@@ -3,6 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rails", "3.2.22.5"
6
- gem "sqlite3", "~> 1.3.6"
6
+ gem "sqlite3", "~> 1.3.5"
7
7
 
8
8
  gemspec path: "../"
@@ -3,6 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rails", "4.2.11.1"
6
- gem "sqlite3", "~> 1.3.6"
6
+ gem "sqlite3", "~> 1.3.5"
7
7
 
8
8
  gemspec path: "../"
@@ -2,7 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "5.2.3"
6
- gem "sqlite3", "~> 1.3.6"
5
+ gem "rails", "5.2.4.1"
6
+ gem "sqlite3", "~> 1.4.2"
7
7
 
8
8
  gemspec path: "../"
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "6.0.2.1"
6
+ gem "sqlite3", "~> 1.4.2"
7
+
8
+ gemspec path: "../"
@@ -6,3 +6,4 @@ require 'acts_as_textcaptcha/textcaptcha'
6
6
  require 'acts_as_textcaptcha/textcaptcha_config'
7
7
  require 'acts_as_textcaptcha/textcaptcha_helper'
8
8
  require 'acts_as_textcaptcha/framework/rails'
9
+ require 'acts_as_textcaptcha/railtie' if defined?(Rails::Railtie)
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+ #
3
+ module ActsAsTextcaptcha
4
+ class Railtie < Rails::Railtie
5
+ rake_tasks do
6
+ Dir[File.join(File.dirname(__FILE__), '/tasks/*.rake')].each { |f| load f }
7
+ end
8
+ end
9
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActsAsTextcaptcha
4
- VERSION = '4.5.0'
4
+ VERSION = '4.5.1'
5
5
  end
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.5.0
4
+ version: 4.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Hutchinson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-22 00:00:00.000000000 Z
11
+ date: 2020-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -67,33 +67,33 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: minitest
70
+ name: rails
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: 6.0.2.1
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: 6.0.2.1
83
83
  - !ruby/object:Gem::Dependency
84
- name: rails
84
+ name: minitest
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: 5.2.3
89
+ version: '0'
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.3
96
+ version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: sqlite3
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -181,16 +181,18 @@ files:
181
181
  - gemfiles/rails_3.gemfile
182
182
  - gemfiles/rails_4.gemfile
183
183
  - gemfiles/rails_5.gemfile
184
+ - gemfiles/rails_6.gemfile
184
185
  - lib/acts_as_textcaptcha.rb
185
186
  - lib/acts_as_textcaptcha/errors.rb
186
187
  - lib/acts_as_textcaptcha/framework/rails.rb
188
+ - lib/acts_as_textcaptcha/railtie.rb
189
+ - lib/acts_as_textcaptcha/tasks/textcaptcha.rake
187
190
  - lib/acts_as_textcaptcha/textcaptcha.rb
188
191
  - lib/acts_as_textcaptcha/textcaptcha_api.rb
189
192
  - lib/acts_as_textcaptcha/textcaptcha_cache.rb
190
193
  - lib/acts_as_textcaptcha/textcaptcha_config.rb
191
194
  - lib/acts_as_textcaptcha/textcaptcha_helper.rb
192
195
  - lib/acts_as_textcaptcha/version.rb
193
- - lib/tasks/textcaptcha.rake
194
196
  homepage: http://github.com/matthutchinson/acts_as_textcaptcha
195
197
  licenses:
196
198
  - MIT
@@ -213,14 +215,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
213
215
  requirements:
214
216
  - - ">="
215
217
  - !ruby/object:Gem::Version
216
- version: '2.3'
218
+ version: '2.4'
217
219
  required_rubygems_version: !ruby/object:Gem::Requirement
218
220
  requirements:
219
221
  - - ">="
220
222
  - !ruby/object:Gem::Version
221
223
  version: '0'
222
224
  requirements: []
223
- rubygems_version: 3.0.3
225
+ rubygems_version: 3.1.2
224
226
  signing_key:
225
227
  specification_version: 4
226
228
  summary: A text-based logic question captcha for Rails