friendly_id 3.0.3 → 3.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Changelog.md CHANGED
@@ -6,6 +6,10 @@ suggestions, ideas and improvements to FriendlyId.
6
6
  * Table of Contents
7
7
  {:toc}
8
8
 
9
+ ## 3.0.4 (2010-04-27)
10
+
11
+ * Fixed backwards-compatiblity with ActiveSupport 2.3.4 (Thanks Juergen Fesslmeier).
12
+
9
13
  ## 3.0.3 (2010-04-26)
10
14
 
11
15
  * Fixed scope update when models use polymorphic relations.
data/lib/friendly_id.rb CHANGED
@@ -1,6 +1,11 @@
1
1
  require "forwardable"
2
2
  require "active_support/core_ext/class/attribute_accessors"
3
- require "active_support/core_ext/object/blank"
3
+ begin
4
+ require "active_support/core_ext/object/blank"
5
+ rescue MissingSourceFile
6
+ # support for ActiveSupport < 2.3.5
7
+ require "active_support/core_ext/blank"
8
+ end
4
9
 
5
10
  require File.join(File.dirname(__FILE__), "friendly_id", "slug_string")
6
11
  require File.join(File.dirname(__FILE__), "friendly_id", "configuration")
@@ -65,4 +70,4 @@ class String
65
70
  end
66
71
  end
67
72
 
68
- require File.join(File.dirname(__FILE__), "friendly_id", "railtie") if defined?(Rails) && Rails.version >= "3"
73
+ require File.join(File.dirname(__FILE__), "friendly_id", "railtie") if defined?(Rails) && Rails.version >= "3"
@@ -2,7 +2,7 @@ module FriendlyId
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
- TINY = 3
5
+ TINY = 4
6
6
  BUILD = nil
7
7
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
8
8
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 3
7
7
  - 0
8
- - 3
9
- version: 3.0.3
8
+ - 4
9
+ version: 3.0.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Norman Clarke
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-04-26 00:00:00 -03:00
19
+ date: 2010-04-27 00:00:00 -03:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency