railhead_permalink 0.1.14 → 0.1.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,7 +35,7 @@ module RailheadPermalink
35
35
 
36
36
  module InstanceMethods
37
37
  def create_permalink
38
- if self.permalink.nil? or (self.changed.include?(permalink_options[:field]) and not permalink_options[:keep_existing])
38
+ if self.permalink.nil? or (self.changed.include?(permalink_options[:field].to_s) and not permalink_options[:keep_existing])
39
39
  key = self[permalink_options[:field]].parameterize.to_s
40
40
  unless self.permalink == key
41
41
  permalink, counter = key, '-1'
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "railhead_permalink"
3
- s.version = "0.1.14"
4
- s.date = "2010-06-07"
3
+ s.version = "0.1.15"
4
+ s.date = "2010-06-21"
5
5
  s.summary = "RailheadPermalink is a Ruby on Rails plugin that automatically finds ActiveRecord objects with permalink."
6
6
  s.email = "nagybence@tipogral.hu"
7
7
  s.homepage = "http://github.com/nagybence/railhead_permalink"
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railhead_permalink
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ hash: 5
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 15
10
+ version: 0.1.15
5
11
  platform: ruby
6
12
  authors:
7
13
  - Bence Nagy
@@ -9,7 +15,7 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2010-06-07 00:00:00 +02:00
18
+ date: 2010-06-21 00:00:00 +02:00
13
19
  default_executable:
14
20
  dependencies: []
15
21
 
@@ -38,21 +44,27 @@ rdoc_options:
38
44
  require_paths:
39
45
  - lib
40
46
  required_ruby_version: !ruby/object:Gem::Requirement
47
+ none: false
41
48
  requirements:
42
49
  - - ">="
43
50
  - !ruby/object:Gem::Version
51
+ hash: 3
52
+ segments:
53
+ - 0
44
54
  version: "0"
45
- version:
46
55
  required_rubygems_version: !ruby/object:Gem::Requirement
56
+ none: false
47
57
  requirements:
48
58
  - - ">="
49
59
  - !ruby/object:Gem::Version
60
+ hash: 3
61
+ segments:
62
+ - 0
50
63
  version: "0"
51
- version:
52
64
  requirements: []
53
65
 
54
66
  rubyforge_project:
55
- rubygems_version: 1.3.5
67
+ rubygems_version: 1.3.7
56
68
  signing_key:
57
69
  specification_version: 3
58
70
  summary: RailheadPermalink is a Ruby on Rails plugin that automatically finds ActiveRecord objects with permalink.