friendly_id 3.1.4 → 3.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog.md CHANGED
@@ -6,10 +6,11 @@ suggestions, ideas and improvements to FriendlyId.
6
6
  * Table of Contents
7
7
  {:toc}
8
8
 
9
- ## 3.1.4 (2010-08-30)
9
+ ## 3.1.4 (2010-09-01)
10
10
 
11
11
  * Significantly improve performance of queries using slugs with no cache on AR3.
12
12
  * Fix callbacks being invoked after setting cached slugs.
13
+ * Add validations to some configuration params.
13
14
 
14
15
  ## 3.1.3 (2010-08-11)
15
16
 
@@ -87,7 +87,7 @@ module FriendlyId
87
87
 
88
88
  def cache_column=(value)
89
89
  @cache_column = value.to_s.strip.to_sym
90
- if [:slug, :slugs, :""].include?(@cache_column)
90
+ if value =~ /\s/ || [:slug, :slugs].include?(@cache_column)
91
91
  raise ArgumentError, "FriendlyId cache column can not be named '#{value}'"
92
92
  end
93
93
  @cache_column
@@ -2,7 +2,7 @@ module FriendlyId
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 1
5
- TINY = 4
5
+ TINY = 5
6
6
  BUILD = nil
7
7
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: friendly_id
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 9
4
5
  prerelease: false
5
6
  segments:
6
7
  - 3
7
8
  - 1
8
- - 4
9
- version: 3.1.4
9
+ - 5
10
+ version: 3.1.5
10
11
  platform: ruby
11
12
  authors:
12
13
  - Norman Clarke
@@ -20,20 +21,21 @@ date: 2010-09-01 00:00:00 -03:00
20
21
  default_executable:
21
22
  dependencies:
22
23
  - !ruby/object:Gem::Dependency
24
+ prerelease: false
25
+ type: :runtime
23
26
  name: babosa
24
- requirement: &id001 !ruby/object:Gem::Requirement
27
+ version_requirements: &id001 !ruby/object:Gem::Requirement
25
28
  none: false
26
29
  requirements:
27
30
  - - ~>
28
31
  - !ruby/object:Gem::Version
32
+ hash: 23
29
33
  segments:
30
34
  - 0
31
35
  - 2
32
36
  - 0
33
37
  version: 0.2.0
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: *id001
38
+ requirement: *id001
37
39
  description: " FriendlyId is the \"Swiss Army bulldozer\" of slugging and permalink plugins\n for Ruby on Rails. It allows you to create pretty URL\xE2\x80\x99s and work with\n human-friendly strings as if they were numeric ids for ActiveRecord models.\n"
38
40
  email:
39
41
  - norman@njclarke.com
@@ -116,7 +118,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
116
118
  requirements:
117
119
  - - ">="
118
120
  - !ruby/object:Gem::Version
119
- hash: 4295902025361844549
121
+ hash: 3
120
122
  segments:
121
123
  - 0
122
124
  version: "0"
@@ -125,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
127
  requirements:
126
128
  - - ">="
127
129
  - !ruby/object:Gem::Version
128
- hash: 4295902025361844549
130
+ hash: 3
129
131
  segments:
130
132
  - 0
131
133
  version: "0"