rucaptcha 2.0.1 → 2.0.3

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
  SHA1:
3
- metadata.gz: 15f0630f65c56c2c3917cc9f7d4f5f66c77a5432
4
- data.tar.gz: 3b09aeb3dc733ccff720442f19b4223d6920235f
3
+ metadata.gz: ff5dc2eab0dce97fc48b2785dd334c40a4e56478
4
+ data.tar.gz: 6260f7dfde2dd1c4ab3ec7724d8e1e3d207f0ac8
5
5
  SHA512:
6
- metadata.gz: f3fd6b818c4338a7096f5b5e8db2ad84fa2d54a3ad8739fe363cb230078a1d18a89383a0ea6a5f8e7f00d33c869e981fb5dbfb434a6be5ade19796a12b462aa5
7
- data.tar.gz: f64425173ea27360a4c6acb2e0b2f6b023bab568cf45474cc5966368d703af1202ec842ef0f3b50abded6f6b2e2b7842a4b7e1ab0dad7242ad8d184abd0822f7
6
+ metadata.gz: 90b1cf57de8baa5a48411565437bc71eec34753a4a5fdf88b9b58f054d00a75b1d3df84aa2cd0544c7287f0ff5d59bf897a9c355fe9ca55e04355d07ac8cd30b
7
+ data.tar.gz: f6ffd1634b07751ebbf19207ef45864c3bf4ff99c2333e1c7a5510fa3db844a3dbbad5808a5ec119322dfffc52781feb08d49fcaabb623a8b335cdf2b3bc14c0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ 2.0.3
2
+ -----
3
+
4
+ - Use `ActiveSupport.on_load` to extend ActionController and ActionView.
5
+
1
6
  2.0.1
2
7
  -----
3
8
 
data/lib/rucaptcha.rb CHANGED
@@ -1,13 +1,13 @@
1
1
  require 'rails'
2
2
  require 'action_controller'
3
3
  require 'active_support/all'
4
- require_relative 'rucaptcha/rucaptcha'
5
- require_relative 'rucaptcha/version'
6
- require_relative 'rucaptcha/configuration'
7
- require_relative 'rucaptcha/controller_helpers'
8
- require_relative 'rucaptcha/view_helpers'
9
- require_relative 'rucaptcha/cache'
10
- require_relative 'rucaptcha/engine'
4
+ require 'rucaptcha/rucaptcha'
5
+ require 'rucaptcha/version'
6
+ require 'rucaptcha/configuration'
7
+ require 'rucaptcha/controller_helpers'
8
+ require 'rucaptcha/view_helpers'
9
+ require 'rucaptcha/cache'
10
+ require 'rucaptcha/engine'
11
11
 
12
12
  module RuCaptcha
13
13
  class << self
@@ -35,5 +35,10 @@ module RuCaptcha
35
35
  end
36
36
  end
37
37
 
38
- ActionController::Base.send(:include, RuCaptcha::ControllerHelpers)
39
- ActionView::Base.send(:include, RuCaptcha::ViewHelpers)
38
+ ActiveSupport.on_load(:action_controller) do
39
+ ActionController::Base.send :include, RuCaptcha::ControllerHelpers
40
+ end
41
+
42
+ ActiveSupport.on_load(:action_view) do
43
+ include RuCaptcha::ViewHelpers
44
+ end
@@ -1,3 +1,3 @@
1
1
  module RuCaptcha
2
- VERSION = '2.0.1'
2
+ VERSION = '2.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rucaptcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-04 00:00:00.000000000 Z
11
+ date: 2017-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties