polymorphic_identity 0.0.4 → 0.0.5
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/CHANGELOG +4 -0
- data/README +5 -1
- data/Rakefile +5 -4
- data/test/test_helper.rb +1 -1
- metadata +13 -12
data/CHANGELOG
CHANGED
data/README
CHANGED
@@ -76,6 +76,10 @@ class name.
|
|
76
76
|
Before you can run any tests, the following gem must be installed:
|
77
77
|
* plugin_test_helper[http://wiki.pluginaweek.org/Plugin_test_helper]
|
78
78
|
|
79
|
+
To run against a specific version of Rails:
|
80
|
+
|
81
|
+
rake test RAILS_FRAMEWORK_ROOT=/path/to/rails
|
82
|
+
|
79
83
|
== Dependencies
|
80
84
|
|
81
|
-
|
85
|
+
* Rails 2.0 or later
|
data/Rakefile
CHANGED
@@ -4,7 +4,7 @@ require 'rake/gempackagetask'
|
|
4
4
|
require 'rake/contrib/sshpublisher'
|
5
5
|
|
6
6
|
PKG_NAME = 'polymorphic_identity'
|
7
|
-
PKG_VERSION = '0.0.
|
7
|
+
PKG_VERSION = '0.0.5'
|
8
8
|
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
|
9
9
|
RUBY_FORGE_PROJECT = 'pluginaweek'
|
10
10
|
|
@@ -22,6 +22,7 @@ desc 'Generate documentation for the polymorphic_identity plugin.'
|
|
22
22
|
Rake::RDocTask.new(:rdoc) do |rdoc|
|
23
23
|
rdoc.rdoc_dir = 'rdoc'
|
24
24
|
rdoc.title = 'PolymorphicIdentity'
|
25
|
+
rdoc.template = '../rdoc_template.rb'
|
25
26
|
rdoc.options << '--line-numbers' << '--inline-source'
|
26
27
|
rdoc.rdoc_files.include('README')
|
27
28
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
@@ -33,7 +34,7 @@ spec = Gem::Specification.new do |s|
|
|
33
34
|
s.platform = Gem::Platform::RUBY
|
34
35
|
s.summary = 'Dynamically generates aliases for polymorphic associations based on their class names'
|
35
36
|
|
36
|
-
s.files = FileList['{lib,
|
37
|
+
s.files = FileList['{lib,test}/**/*'].to_a - FileList['test/app_root/log/*'].to_a + %w(CHANGELOG init.rb MIT-LICENSE Rakefile README)
|
37
38
|
s.require_path = 'lib'
|
38
39
|
s.autorequire = 'polymorphic_identity'
|
39
40
|
s.has_rdoc = true
|
@@ -61,13 +62,13 @@ task :pdoc => [:rdoc] do
|
|
61
62
|
end
|
62
63
|
|
63
64
|
desc 'Publish the API docs and gem'
|
64
|
-
task :publish => [:pdoc, :release]
|
65
|
+
task :publish => [:pgem, :pdoc, :release]
|
65
66
|
|
66
67
|
desc 'Publish the release files to RubyForge.'
|
67
68
|
task :release => [:gem, :package] do
|
68
69
|
require 'rubyforge'
|
69
70
|
|
70
|
-
ruby_forge = RubyForge.new
|
71
|
+
ruby_forge = RubyForge.new.configure
|
71
72
|
ruby_forge.login
|
72
73
|
|
73
74
|
%w( gem tgz zip ).each do |ext|
|
data/test/test_helper.rb
CHANGED
@@ -4,7 +4,7 @@ require 'rubygems'
|
|
4
4
|
require 'plugin_test_helper'
|
5
5
|
|
6
6
|
# Run the migrations
|
7
|
-
ActiveRecord::Migrator.migrate("#{
|
7
|
+
ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate")
|
8
8
|
|
9
9
|
# Mixin the factory helper
|
10
10
|
require File.expand_path("#{File.dirname(__FILE__)}/factory")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polymorphic_identity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Pfeifer
|
@@ -9,7 +9,7 @@ autorequire: polymorphic_identity
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-06-22 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -23,23 +23,24 @@ extra_rdoc_files: []
|
|
23
23
|
|
24
24
|
files:
|
25
25
|
- lib/polymorphic_identity.rb
|
26
|
-
- test/factory.rb
|
27
26
|
- test/app_root
|
27
|
+
- test/app_root/app
|
28
|
+
- test/app_root/app/models
|
29
|
+
- test/app_root/app/models/page.rb
|
30
|
+
- test/app_root/app/models/author.rb
|
31
|
+
- test/app_root/app/models/article.rb
|
32
|
+
- test/app_root/app/models/comment.rb
|
33
|
+
- test/app_root/app/models/user.rb
|
28
34
|
- test/app_root/db
|
29
35
|
- test/app_root/db/migrate
|
36
|
+
- test/app_root/db/migrate/005_create_comments.rb
|
30
37
|
- test/app_root/db/migrate/002_create_articles.rb
|
31
38
|
- test/app_root/db/migrate/003_create_pages.rb
|
32
39
|
- test/app_root/db/migrate/004_create_users.rb
|
33
40
|
- test/app_root/db/migrate/001_create_authors.rb
|
34
|
-
- test/app_root/
|
35
|
-
- test/app_root/app
|
36
|
-
- test/app_root/app/models
|
37
|
-
- test/app_root/app/models/user.rb
|
38
|
-
- test/app_root/app/models/page.rb
|
39
|
-
- test/app_root/app/models/article.rb
|
40
|
-
- test/app_root/app/models/author.rb
|
41
|
-
- test/app_root/app/models/comment.rb
|
41
|
+
- test/app_root/log
|
42
42
|
- test/test_helper.rb
|
43
|
+
- test/factory.rb
|
43
44
|
- test/unit
|
44
45
|
- test/unit/polymorphic_identity_test.rb
|
45
46
|
- CHANGELOG
|
@@ -69,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
70
|
requirements: []
|
70
71
|
|
71
72
|
rubyforge_project:
|
72
|
-
rubygems_version: 1.1.
|
73
|
+
rubygems_version: 1.1.1
|
73
74
|
signing_key:
|
74
75
|
specification_version: 2
|
75
76
|
summary: Dynamically generates aliases for polymorphic associations based on their class names
|