gravatarify 2.2.1 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/gravatarify.rb +5 -4
  2. metadata +4 -4
@@ -4,14 +4,15 @@ require 'gravatarify/helper'
4
4
 
5
5
  module Gravatarify
6
6
  # current API version, as defined by http://semver.org/
7
- VERSION = "2.2.1".freeze
7
+ VERSION = "2.2.2".freeze
8
8
  end
9
9
 
10
10
  if defined?(ActiveSupport) && ActiveSupport.respond_to?(:on_load)
11
11
  # Support for rails 3
12
12
  ActiveSupport.on_load(:action_view) { include Gravatarify::Helper }
13
- else
14
- # try to hook into HAML and ActionView
15
- Haml::Helpers.send(:include, Gravatarify::Helper) if defined?(Haml)
13
+ elsif defined?(ActionView)
14
+ # hook into rails 2.x
16
15
  ActionView::Base.send(:include, Gravatarify::Helper) if defined?(ActionView)
17
16
  end
17
+ # try to include it in HAML too, no matter what :)
18
+ Haml::Helpers.send(:include, Gravatarify::Helper) if defined?(Haml)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gravatarify
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 2
9
- - 1
10
- version: 2.2.1
9
+ - 2
10
+ version: 2.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Lukas Westermann
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-30 00:00:00 +02:00
18
+ date: 2010-11-15 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency