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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5bc8fbc98dfd69b5445b41e9c4f9ef9a354d9388
4
- data.tar.gz: f7a8d405dafbd72c3e8ee510009f034c4719fde3
3
+ metadata.gz: 01df364ca126f4f1d6b014c2b57adb15fc9ac757
4
+ data.tar.gz: 3453bdcb0d6f29dd81aec79d8b6ba91c11da2192
5
5
  SHA512:
6
- metadata.gz: 329bbdda6ece544b76bcb5d62de307bc415e1584e74e9d0ea62e0ae0e35aab5ca06f3bb6bb309e6a29fdd68f2488e720634df0677db37b3760cc48dc0d97984d
7
- data.tar.gz: dd9b02edc57252d2e0714c7892b61b5dbf81320490ba9647642cacb89b7088faf5becf6621401494e0a9b65df3f10a04249358ac0c991428acba85ec072c3582
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.6"
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
@@ -125,7 +125,7 @@ module MongoMapper
125
125
 
126
126
  options = klass.slug_options
127
127
 
128
- to_slug = self[options[:to_slug]]
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.7
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: 2015-06-25 00:00:00.000000000 Z
11
+ date: 2016-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mongo_mapper