mm-learnup-sluggable 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -2
- data/lib/mm-learnup-sluggable.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01df364ca126f4f1d6b014c2b57adb15fc9ac757
|
4
|
+
data.tar.gz: 3453bdcb0d6f29dd81aec79d8b6ba91c11da2192
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa242814d799b803354ad88e9ba10572dd9714ec843d2ea13cc8e463630a8147878805cb6e093852fa86a1c25c566bc4d140893e75c5ccbb633eacf3bd74a4e4
|
7
|
+
data.tar.gz: bd5e8de8b5953d2ea662b39ff23f73023aee5f9e4a1dda0d4443d8ec71b6bf1022bb095e3bada234cee368738c8b19cd06b5c30b8140abd31863b68beaa3c99b
|
data/Rakefile
CHANGED
@@ -19,7 +19,7 @@ spec = Gem::Specification.new do |s|
|
|
19
19
|
|
20
20
|
# Change these as appropriate
|
21
21
|
s.name = "mm-learnup-sluggable"
|
22
|
-
s.version = "0.3.
|
22
|
+
s.version = "0.3.8"
|
23
23
|
s.summary = "MongoMapper plugin to cache a slugged version of a field. Originally forked from mm-learnup-sluggable."
|
24
24
|
s.author = "Scott Taylor"
|
25
25
|
s.email = "scott@railsnewbie.com"
|
@@ -77,4 +77,4 @@ end
|
|
77
77
|
desc 'Clear out RDoc and generated packages'
|
78
78
|
task :clean => [:clobber_rdoc, :clobber_package] do
|
79
79
|
rm "#{spec.name}.gemspec"
|
80
|
-
end
|
80
|
+
end
|
data/lib/mm-learnup-sluggable.rb
CHANGED
@@ -125,7 +125,7 @@ module MongoMapper
|
|
125
125
|
|
126
126
|
options = klass.slug_options
|
127
127
|
|
128
|
-
to_slug = self
|
128
|
+
to_slug = self.send(options[:to_slug])
|
129
129
|
return if to_slug.blank?
|
130
130
|
|
131
131
|
the_slug = raw_slug = to_slug.send(options[:method]).to_s[0...options[:max_length]]
|
@@ -156,4 +156,4 @@ module MongoMapper
|
|
156
156
|
end
|
157
157
|
|
158
158
|
end
|
159
|
-
end
|
159
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mm-learnup-sluggable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scott Taylor
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongo_mapper
|