friendly_id 3.3.1.1 → 3.3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog.md +4 -0
- data/README.md +1 -2
- data/lib/friendly_id/active_record_adapter/slugged_model.rb +6 -0
- data/lib/friendly_id/version.rb +2 -2
- metadata +16 -13
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.1.2 (2012-01-24)
|
10
|
+
|
11
|
+
* Fix for 3.2 support ([Philip Arndt](https://github.com/parndt))
|
12
|
+
|
9
13
|
## 3.1.1 (2011-12-12)
|
10
14
|
|
11
15
|
* Fix for "can't modify frozen hash" on 3.1 ([Theo Cushion](https://github.com/theozaurus))
|
data/README.md
CHANGED
@@ -21,8 +21,7 @@ please see the [FriendlyId Guide](https://github.com/norman/friendly_id/blob/3.x
|
|
21
21
|
|
22
22
|
## Compatibility
|
23
23
|
|
24
|
-
FriendlyId 3.3.0 is compatible with Active Record 3.0
|
25
|
-
and higher, please use FriendlyId 4.x.
|
24
|
+
FriendlyId 3.3.0 is compatible with Active Record 3.0, 3.1 and 3.2.
|
26
25
|
|
27
26
|
If you are still on Rails 2.3, please use FriendlyId 3.2.x.
|
28
27
|
|
@@ -11,6 +11,12 @@ module FriendlyId
|
|
11
11
|
after_update :update_scope
|
12
12
|
after_update :update_dependent_scopes
|
13
13
|
protect_friendly_id_attributes
|
14
|
+
|
15
|
+
def slug_with_rails_3_2_patch
|
16
|
+
slug_without_rails_3_2_patch || slugs.first
|
17
|
+
end
|
18
|
+
|
19
|
+
alias_method_chain :slug, :rails_3_2_patch
|
14
20
|
end
|
15
21
|
end
|
16
22
|
|
data/lib/friendly_id/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: friendly_id
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,11 +11,11 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-01-
|
14
|
+
date: 2012-01-25 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: babosa
|
18
|
-
requirement: &
|
18
|
+
requirement: &70323991149600 !ruby/object:Gem::Requirement
|
19
19
|
none: false
|
20
20
|
requirements:
|
21
21
|
- - ~>
|
@@ -23,21 +23,24 @@ dependencies:
|
|
23
23
|
version: 0.3.0
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
|
-
version_requirements: *
|
26
|
+
version_requirements: *70323991149600
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activerecord
|
29
|
-
requirement: &
|
29
|
+
requirement: &70323991234980 !ruby/object:Gem::Requirement
|
30
30
|
none: false
|
31
31
|
requirements:
|
32
|
+
- - ! '>='
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '3.0'
|
32
35
|
- - <
|
33
36
|
- !ruby/object:Gem::Version
|
34
|
-
version: '3.
|
37
|
+
version: '3.3'
|
35
38
|
type: :development
|
36
39
|
prerelease: false
|
37
|
-
version_requirements: *
|
40
|
+
version_requirements: *70323991234980
|
38
41
|
- !ruby/object:Gem::Dependency
|
39
42
|
name: mocha
|
40
|
-
requirement: &
|
43
|
+
requirement: &70323991231140 !ruby/object:Gem::Requirement
|
41
44
|
none: false
|
42
45
|
requirements:
|
43
46
|
- - ~>
|
@@ -45,10 +48,10 @@ dependencies:
|
|
45
48
|
version: '0.9'
|
46
49
|
type: :development
|
47
50
|
prerelease: false
|
48
|
-
version_requirements: *
|
51
|
+
version_requirements: *70323991231140
|
49
52
|
- !ruby/object:Gem::Dependency
|
50
53
|
name: sqlite3
|
51
|
-
requirement: &
|
54
|
+
requirement: &70323991229820 !ruby/object:Gem::Requirement
|
52
55
|
none: false
|
53
56
|
requirements:
|
54
57
|
- - ~>
|
@@ -56,10 +59,10 @@ dependencies:
|
|
56
59
|
version: '1.3'
|
57
60
|
type: :development
|
58
61
|
prerelease: false
|
59
|
-
version_requirements: *
|
62
|
+
version_requirements: *70323991229820
|
60
63
|
- !ruby/object:Gem::Dependency
|
61
64
|
name: rake
|
62
|
-
requirement: &
|
65
|
+
requirement: &70323991227820 !ruby/object:Gem::Requirement
|
63
66
|
none: false
|
64
67
|
requirements:
|
65
68
|
- - ~>
|
@@ -67,7 +70,7 @@ dependencies:
|
|
67
70
|
version: 0.9.2
|
68
71
|
type: :development
|
69
72
|
prerelease: false
|
70
|
-
version_requirements: *
|
73
|
+
version_requirements: *70323991227820
|
71
74
|
description: ! " FriendlyId is the \"Swiss Army bulldozer\" of slugging and permalink
|
72
75
|
plugins\n for Ruby on Rails. It allows you to create pretty URL's and work with\n
|
73
76
|
\ human-friendly strings as if they were numeric ids for ActiveRecord models.\n"
|