railhead_permalink 0.1.15 → 0.1.16

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.
data/README.rdoc CHANGED
@@ -6,7 +6,7 @@ RailheadPermalink is a Ruby on Rails plugin that automatically finds ActiveRecor
6
6
 
7
7
  Installation is available as gem (recommended):
8
8
 
9
- config.gem 'nagybence-railhead_permalink', :lib => 'railhead_permalink', :source => 'http://gems.github.com'
9
+ config.gem 'railhead_permalink'
10
10
 
11
11
  Or as Rails plugin:
12
12
 
@@ -21,6 +21,7 @@ module RailheadPermalink
21
21
 
22
22
  before_save :create_permalink
23
23
  validates_presence_of field
24
+ validates_uniqueness_of field, :case_sensitive => false, :if => "#{field}_changed?".to_sym
24
25
  end
25
26
 
26
27
  def find_with_permalink(*args)
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "railhead_permalink"
3
- s.version = "0.1.15"
4
- s.date = "2010-06-21"
3
+ s.version = "0.1.16"
4
+ s.date = "2011-09-29"
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,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railhead_permalink
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
5
- prerelease: false
4
+ hash: 59
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 15
10
- version: 0.1.15
9
+ - 16
10
+ version: 0.1.16
11
11
  platform: ruby
12
12
  authors:
13
13
  - Bence Nagy
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-21 00:00:00 +02:00
18
+ date: 2011-09-29 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  requirements: []
65
65
 
66
66
  rubyforge_project:
67
- rubygems_version: 1.3.7
67
+ rubygems_version: 1.5.2
68
68
  signing_key:
69
69
  specification_version: 3
70
70
  summary: RailheadPermalink is a Ruby on Rails plugin that automatically finds ActiveRecord objects with permalink.