friendly_id 3.2.0 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
File without changes
@@ -6,6 +6,11 @@ suggestions, ideas and improvements to FriendlyId.
6
6
  * Table of Contents
7
7
  {:toc}
8
8
 
9
+ ## 3.2.1 (2011-02-03)
10
+
11
+ * Fixed minor issue with ActiveRecord 3.0.4.rc1 (Bruno Michel)
12
+ * Added support for Rubygems-test
13
+
9
14
  ## 3.2.0 (2011-01-17)
10
15
 
11
16
  * Fixed deprecation on Rails edge. Thanks [slbug](http://github.com/slbug)
data/Guide.md CHANGED
@@ -80,13 +80,13 @@ with Rails 2.3.x. and 3.0.
80
80
 
81
81
  After installing the gem, add an entry in environment.rb:
82
82
 
83
- config.gem "friendly_id", :version => "~> 3.2"
83
+ config.gem "friendly_id", :version => "~> 3.2.1"
84
84
 
85
85
  ### Rails 3.0
86
86
 
87
87
  After installing the gem, add an entry in the Gemfile:
88
88
 
89
- gem "friendly_id", "~> 3.2"
89
+ gem "friendly_id", "~> 3.2.1"
90
90
 
91
91
  ### As a Plugin
92
92
 
data/README.md CHANGED
@@ -41,7 +41,7 @@ continue to support 2.3.x until Rails 3.1 is released.
41
41
  cd my_app
42
42
 
43
43
  # add to Gemfile
44
- gem "friendly_id", "~> 3.2"
44
+ gem "friendly_id", "~> 3.2.1"
45
45
 
46
46
  rails generate friendly_id
47
47
  rails generate scaffold user name:string cached_slug:string
data/Rakefile CHANGED
@@ -8,7 +8,11 @@ require "rake/clean"
8
8
  task :default => :test
9
9
 
10
10
  CLEAN << "pkg" << "doc" << "coverage" << ".yardoc"
11
- Rake::GemPackageTask.new(eval(File.read("friendly_id.gemspec"))) { |pkg| }
11
+
12
+ gemspec = File.expand_path("../friendly_id.gemspec", __FILE__)
13
+ if File.exists? gemspec
14
+ Rake::GemPackageTask.new(eval(File.read("friendly_id.gemspec"))) { |pkg| }
15
+ end
12
16
 
13
17
  begin
14
18
  require "yard"
@@ -43,7 +47,7 @@ namespace :test do
43
47
 
44
48
  desc "Test against lots of versions"
45
49
  task :pre_release do
46
- ["ree-1.8.7-2010.02", "ruby-1.9.2-p0"].each do |ruby|
50
+ ["ree-1.8.7-2010.02", "ruby-1.9.2-p136"].each do |ruby|
47
51
  ["sqlite3", "mysql", "postgres"].each do |driver|
48
52
  [2, 3].each do |ar_version|
49
53
  command = "rake-#{ruby} test AR=#{ar_version} DB=#{driver}"
@@ -101,7 +101,7 @@ module FriendlyId
101
101
  fragment = "(slugs.sluggable_type = %s AND slugs.name = %s AND slugs.sequence = %d)"
102
102
  conditions = ids.inject(nil) do |clause, id|
103
103
  name, seq = id.parse_friendly_id
104
- string = fragment % [connection.quote(klass.base_class), connection.quote(name), seq]
104
+ string = fragment % [connection.quote(klass.base_class.name), connection.quote(name), seq]
105
105
  clause ? clause + " OR #{string}" : string
106
106
  end
107
107
  sql = "SELECT sluggable_id FROM slugs WHERE (%s)" % conditions
@@ -2,7 +2,7 @@ module FriendlyId
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 2
5
- TINY = 0
5
+ TINY = 1
6
6
  BUILD = nil
7
7
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: friendly_id
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 3
7
- - 2
8
- - 0
9
- version: 3.2.0
4
+ prerelease:
5
+ version: 3.2.1
10
6
  platform: ruby
11
7
  authors:
12
8
  - Norman Clarke
@@ -16,7 +12,7 @@ autorequire:
16
12
  bindir: bin
17
13
  cert_chain: []
18
14
 
19
- date: 2011-01-17 00:00:00 +01:00
15
+ date: 2011-02-03 00:00:00 -03:00
20
16
  default_executable:
21
17
  dependencies:
22
18
  - !ruby/object:Gem::Dependency
@@ -26,10 +22,6 @@ dependencies:
26
22
  requirements:
27
23
  - - ~>
28
24
  - !ruby/object:Gem::Version
29
- segments:
30
- - 0
31
- - 2
32
- - 1
33
25
  version: 0.2.1
34
26
  type: :runtime
35
27
  prerelease: false
@@ -41,10 +33,6 @@ dependencies:
41
33
  requirements:
42
34
  - - ~>
43
35
  - !ruby/object:Gem::Version
44
- segments:
45
- - 3
46
- - 0
47
- - 0
48
36
  version: 3.0.0
49
37
  type: :development
50
38
  prerelease: false
@@ -56,9 +44,6 @@ dependencies:
56
44
  requirements:
57
45
  - - ~>
58
46
  - !ruby/object:Gem::Version
59
- segments:
60
- - 0
61
- - 9
62
47
  version: "0.9"
63
48
  type: :development
64
49
  prerelease: false
@@ -70,8 +55,6 @@ dependencies:
70
55
  requirements:
71
56
  - - ~>
72
57
  - !ruby/object:Gem::Version
73
- segments:
74
- - 1
75
58
  version: "1"
76
59
  type: :development
77
60
  prerelease: false
@@ -145,6 +128,7 @@ files:
145
128
  - extras/README.txt
146
129
  - extras/template-gem.rb
147
130
  - extras/template-plugin.rb
131
+ - .gemtest
148
132
  has_rdoc: true
149
133
  homepage: http://norman.github.com/friendly_id
150
134
  licenses: []
@@ -159,7 +143,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
159
143
  requirements:
160
144
  - - ">="
161
145
  - !ruby/object:Gem::Version
162
- hash: -3183738274277774801
146
+ hash: -1851693387328844526
163
147
  segments:
164
148
  - 0
165
149
  version: "0"
@@ -168,13 +152,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
152
  requirements:
169
153
  - - ">="
170
154
  - !ruby/object:Gem::Version
171
- segments:
172
- - 0
173
155
  version: "0"
174
156
  requirements: []
175
157
 
176
158
  rubyforge_project: friendly-id
177
- rubygems_version: 1.3.7
159
+ rubygems_version: 1.5.0
178
160
  signing_key:
179
161
  specification_version: 3
180
162
  summary: A comprehensive slugging and pretty-URL plugin.