err_supply 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module ErrSupply
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
data/lib/err_supply.rb CHANGED
@@ -3,6 +3,16 @@ require 'err_supply/view_helpers'
3
3
 
4
4
  module ErrSupply
5
5
  class Engine < ::Rails::Engine
6
- ActionView::Base.module_eval { include ErrSupply::ViewHelpers } if defined? ActionView
6
+
7
+ #-------------------------------------------------------
8
+ # Initialization
9
+ #-------------------------------------------------------
10
+ initializer "err_supply.start" do |app|
11
+
12
+ # add method to views
13
+ ActionView::Base.module_eval { include ErrSupply::ViewHelpers } if defined? ActionView
14
+
15
+ end
16
+
7
17
  end
8
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: err_supply
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ date: 2012-12-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
17
- requirement: &70333073230720 !ruby/object:Gem::Requirement
17
+ requirement: &70304400466460 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 3.0.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70333073230720
25
+ version_requirements: *70304400466460
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rspec
28
- requirement: &70333073229580 !ruby/object:Gem::Requirement
28
+ requirement: &70304400465020 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: 2.0.0
34
34
  type: :development
35
35
  prerelease: false
36
- version_requirements: *70333073229580
36
+ version_requirements: *70304400465020
37
37
  description: Simple, beautiful error messages for Rails. Err_supply unpacks and rekeys
38
38
  the standard Rails error hash to make applying error messages to your views dead
39
39
  simple. Even better, because the library cures Rails' brain-damaged way of recording