dterror-resource_identifier 0.1.0 → 0.1.1

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.md CHANGED
@@ -22,4 +22,11 @@ take a look at some code:
22
22
 
23
23
  ## Install
24
24
 
25
- sudo gem install dterror-resource_identifier
25
+ $ sudo gem install dterror-resource_identifier
26
+
27
+ # on environment.rb
28
+ config.gem 'dterror-resource_identifier', :lib => 'resource_identifier'
29
+
30
+ ## Where we're heading
31
+
32
+ Check the PLANS file for release plans.
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'echoe'
5
5
  desc 'Default: run the spec'
6
6
  task :default => :spec
7
7
 
8
- Echoe.new('resource_identifier', '0.1.0') do |p|
8
+ Echoe.new('resource_identifier', '0.1.1') do |p|
9
9
  p.summary = "Have trully beautiful URLS in your Rails RESTful routes"
10
10
  p.description = "An ActiveRecord plugin that allows you to specify a different table identifier (AR's default is the :id field)."
11
11
  p.url = 'http://github.com/dterror/resource_identifier/'
@@ -49,7 +49,8 @@ module ResourceIdentifier
49
49
 
50
50
  module InstanceMethods
51
51
  def to_param_with_identifier
52
- send self.class.get_resource_id
52
+ ident = self.class.get_resource_id
53
+ ident ? self.send(ident) : ''
53
54
  end
54
55
  end
55
56
 
@@ -2,17 +2,17 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{resource_identifier}
5
- s.version = "0.1.0"
5
+ s.version = "0.1.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Diogo Terror"]
9
- s.date = %q{2009-08-14}
9
+ s.date = %q{2009-08-18}
10
10
  s.description = %q{An ActiveRecord plugin that allows you to specify a different table identifier (AR's default is the :id field).}
11
11
  s.email = %q{ranccis@gmail.com}
12
12
  s.extra_rdoc_files = ["lib/resource_identifier.rb", "LICENSE", "README.md"]
13
13
  s.files = ["init.rb", "lib/resource_identifier.rb", "LICENSE", "Rakefile", "README.md", "spec/resource_id_spec.rb", "spec/spec_helper.rb", "Manifest", "resource_identifier.gemspec"]
14
14
  s.has_rdoc = true
15
- s.homepage = %q{http://www.github.com/dterror/resource_identifier}
15
+ s.homepage = %q{http://github.com/dterror/resource_identifier/}
16
16
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Resource_identifier", "--main", "README.md"]
17
17
  s.require_paths = ["lib"]
18
18
  s.rubyforge_project = %q{resource_identifier}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dterror-resource_identifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diogo Terror
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-14 00:00:00 -07:00
12
+ date: 2009-08-18 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -34,7 +34,7 @@ files:
34
34
  - Manifest
35
35
  - resource_identifier.gemspec
36
36
  has_rdoc: true
37
- homepage: http://www.github.com/dterror/resource_identifier
37
+ homepage: http://github.com/dterror/resource_identifier/
38
38
  licenses:
39
39
  post_install_message:
40
40
  rdoc_options: