slug 0.6.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/VERSION.yml +2 -2
- data/lib/slug/slug.rb +1 -1
- data/slug.gemspec +20 -26
- metadata +11 -15
- data/.gitignore +0 -3
data/Rakefile
CHANGED
data/VERSION.yml
CHANGED
data/lib/slug/slug.rb
CHANGED
@@ -16,7 +16,7 @@ module Slug
|
|
16
16
|
# Note that subsequent changes to the source column will have no effect on the slug.
|
17
17
|
# If you'd like to update the slug later on, call <tt>@model.set_slug</tt>
|
18
18
|
def slug source, opts={}
|
19
|
-
|
19
|
+
class_attribute :slug_source, :slug_column
|
20
20
|
include InstanceMethods
|
21
21
|
|
22
22
|
self.slug_source = source
|
data/slug.gemspec
CHANGED
@@ -1,49 +1,42 @@
|
|
1
1
|
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{slug}
|
8
|
-
s.version = "
|
8
|
+
s.version = "1.5.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ben Koski"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2013-04-22}
|
13
13
|
s.description = %q{Simple, straightforward slugs for your ActiveRecord models.}
|
14
14
|
s.email = %q{ben.koski@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE",
|
17
|
-
|
17
|
+
"README.rdoc"
|
18
18
|
]
|
19
19
|
s.files = [
|
20
|
-
"
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
"test/test_slug.rb"
|
20
|
+
"LICENSE",
|
21
|
+
"README.rdoc",
|
22
|
+
"Rakefile",
|
23
|
+
"VERSION.yml",
|
24
|
+
"lib/slug.rb",
|
25
|
+
"lib/slug/ascii_approximations.rb",
|
26
|
+
"lib/slug/slug.rb",
|
27
|
+
"slug.gemspec",
|
28
|
+
"test/models.rb",
|
29
|
+
"test/schema.rb",
|
30
|
+
"test/test_helper.rb",
|
31
|
+
"test/test_slug.rb"
|
33
32
|
]
|
34
33
|
s.homepage = %q{http://github.com/bkoski/slug}
|
35
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
36
34
|
s.require_paths = ["lib"]
|
37
|
-
s.rubygems_version = %q{1.
|
35
|
+
s.rubygems_version = %q{1.3.7}
|
38
36
|
s.summary = %q{Simple, straightforward slugs for your ActiveRecord models.}
|
39
|
-
s.test_files = [
|
40
|
-
"test/models.rb",
|
41
|
-
"test/schema.rb",
|
42
|
-
"test/test_helper.rb",
|
43
|
-
"test/test_slug.rb"
|
44
|
-
]
|
45
37
|
|
46
38
|
if s.respond_to? :specification_version then
|
39
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
47
40
|
s.specification_version = 3
|
48
41
|
|
49
42
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
@@ -58,3 +51,4 @@ Gem::Specification.new do |s|
|
|
58
51
|
s.add_dependency(%q<activesupport>, ["> 3.0.0"])
|
59
52
|
end
|
60
53
|
end
|
54
|
+
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 63
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 8
|
9
|
+
- 0
|
10
|
+
version: 0.8.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ben Koski
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2013-04-22 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -60,7 +60,6 @@ extra_rdoc_files:
|
|
60
60
|
- LICENSE
|
61
61
|
- README.rdoc
|
62
62
|
files:
|
63
|
-
- .gitignore
|
64
63
|
- LICENSE
|
65
64
|
- README.rdoc
|
66
65
|
- Rakefile
|
@@ -78,8 +77,8 @@ homepage: http://github.com/bkoski/slug
|
|
78
77
|
licenses: []
|
79
78
|
|
80
79
|
post_install_message:
|
81
|
-
rdoc_options:
|
82
|
-
|
80
|
+
rdoc_options: []
|
81
|
+
|
83
82
|
require_paths:
|
84
83
|
- lib
|
85
84
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -103,12 +102,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
102
|
requirements: []
|
104
103
|
|
105
104
|
rubyforge_project:
|
106
|
-
rubygems_version: 1.
|
105
|
+
rubygems_version: 1.3.7
|
107
106
|
signing_key:
|
108
107
|
specification_version: 3
|
109
108
|
summary: Simple, straightforward slugs for your ActiveRecord models.
|
110
|
-
test_files:
|
111
|
-
|
112
|
-
- test/schema.rb
|
113
|
-
- test/test_helper.rb
|
114
|
-
- test/test_slug.rb
|
109
|
+
test_files: []
|
110
|
+
|
data/.gitignore
DELETED