friendly_id_globalize3 3.2.0 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gemtest ADDED
File without changes
data/Changelog.md CHANGED
@@ -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_globalize3
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-26 00:00:00 +13:00
15
+ date: 2011-02-04 00:00:00 +13:00
20
16
  default_executable:
21
17
  dependencies:
22
18
  - !ruby/object:Gem::Dependency
@@ -27,10 +23,6 @@ dependencies:
27
23
  requirements:
28
24
  - - ~>
29
25
  - !ruby/object:Gem::Version
30
- segments:
31
- - 0
32
- - 2
33
- - 1
34
26
  version: 0.2.1
35
27
  type: :runtime
36
28
  version_requirements: *id001
@@ -42,10 +34,6 @@ dependencies:
42
34
  requirements:
43
35
  - - ~>
44
36
  - !ruby/object:Gem::Version
45
- segments:
46
- - 3
47
- - 0
48
- - 0
49
37
  version: 3.0.0
50
38
  type: :development
51
39
  version_requirements: *id002
@@ -57,9 +45,6 @@ dependencies:
57
45
  requirements:
58
46
  - - ~>
59
47
  - !ruby/object:Gem::Version
60
- segments:
61
- - 0
62
- - 9
63
48
  version: "0.9"
64
49
  type: :development
65
50
  version_requirements: *id003
@@ -71,8 +56,6 @@ dependencies:
71
56
  requirements:
72
57
  - - ~>
73
58
  - !ruby/object:Gem::Version
74
- segments:
75
- - 1
76
59
  version: "1"
77
60
  type: :development
78
61
  version_requirements: *id004
@@ -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,21 +143,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
159
143
  requirements:
160
144
  - - ">="
161
145
  - !ruby/object:Gem::Version
162
- segments:
163
- - 0
164
146
  version: "0"
165
147
  required_rubygems_version: !ruby/object:Gem::Requirement
166
148
  none: false
167
149
  requirements:
168
150
  - - ">="
169
151
  - !ruby/object:Gem::Version
170
- segments:
171
- - 0
172
152
  version: "0"
173
153
  requirements: []
174
154
 
175
155
  rubyforge_project: friendly-id
176
- rubygems_version: 1.3.7
156
+ rubygems_version: 1.5.0
177
157
  signing_key:
178
158
  specification_version: 3
179
159
  summary: A comprehensive slugging and pretty-URL plugin. Fork for globalize3 support.