has_many_polymorphs 2.11 → 2.12

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.
Files changed (126) hide show
  1. data.tar.gz.sig +0 -0
  2. data/CHANGELOG +3 -1
  3. data/Manifest +43 -61
  4. data/README +30 -0
  5. data/TODO +0 -3
  6. data/generators/tagging/tagging_generator.rb +2 -0
  7. data/generators/tagging/templates/tag_test.rb +7 -2
  8. data/generators/tagging/templates/tagging.rb +2 -2
  9. data/generators/tagging/templates/tagging_extensions.rb +49 -2
  10. data/generators/tagging/templates/tagging_test.rb +32 -9
  11. data/generators/tagging/templates/tags.yml +2 -2
  12. data/has_many_polymorphs.gemspec +20 -13
  13. data/lib/has_many_polymorphs.rb +0 -1
  14. data/lib/has_many_polymorphs/autoload.rb +45 -37
  15. data/lib/has_many_polymorphs/class_methods.rb +2 -15
  16. data/lib/has_many_polymorphs/configuration.rb +2 -2
  17. data/lib/has_many_polymorphs/rake_task_redefine_task.rb +9 -1
  18. data/test/generator/tagging_generator_test.rb +42 -0
  19. data/test/integration/app/app/controllers/bones_controller.rb +5 -0
  20. data/test/integration/app/app/helpers/bones_helper.rb +2 -0
  21. data/test/integration/app/app/models/bone.rb +2 -0
  22. data/test/integration/app/app/models/double_sti_parent.rb +2 -0
  23. data/test/integration/app/app/models/double_sti_parent_relationship.rb +2 -0
  24. data/test/integration/app/app/models/organic_substance.rb +2 -0
  25. data/test/integration/app/app/models/single_sti_parent.rb +4 -0
  26. data/test/integration/app/app/models/single_sti_parent_relationship.rb +4 -0
  27. data/test/integration/app/app/models/stick.rb +2 -0
  28. data/test/integration/app/app/models/stone.rb +2 -0
  29. data/test/integration/app/app/views/bones/index.rhtml +5 -0
  30. data/test/integration/app/config/boot.rb +97 -32
  31. data/test/integration/app/config/database.yml +8 -12
  32. data/test/integration/app/config/environment.rb +9 -3
  33. data/test/integration/app/config/environment.rb.canonical +19 -0
  34. data/test/integration/app/config/environments/development.rb +6 -5
  35. data/test/integration/app/db/migrate/001_create_sticks.rb +11 -0
  36. data/test/integration/app/db/migrate/002_create_stones.rb +11 -0
  37. data/test/integration/app/db/migrate/003_create_organic_substances.rb +11 -0
  38. data/test/integration/app/db/migrate/004_create_bones.rb +8 -0
  39. data/test/integration/app/db/migrate/005_create_single_sti_parents.rb +11 -0
  40. data/test/integration/app/db/migrate/006_create_double_sti_parents.rb +11 -0
  41. data/test/integration/app/db/migrate/007_create_single_sti_parent_relationships.rb +13 -0
  42. data/test/integration/app/db/migrate/008_create_double_sti_parent_relationships.rb +14 -0
  43. data/test/integration/app/db/migrate/009_create_library_model.rb +11 -0
  44. data/test/integration/app/db/schema.rb +21 -121
  45. data/test/integration/app/hmp_development +0 -0
  46. data/test/integration/app/lib/library_model.rb +2 -0
  47. data/test/integration/app/test/fixtures/double_sti_parent_relationships.yml +7 -0
  48. data/test/integration/app/test/fixtures/double_sti_parents.yml +7 -0
  49. data/test/integration/app/test/fixtures/organic_substances.yml +5 -0
  50. data/test/integration/app/test/fixtures/single_sti_parent_relationships.yml +7 -0
  51. data/test/integration/app/test/fixtures/single_sti_parents.yml +7 -0
  52. data/test/integration/app/test/fixtures/sticks.yml +7 -0
  53. data/test/integration/app/test/fixtures/stones.yml +7 -0
  54. data/test/integration/app/test/{unit/user_test.rb → functional/bones_controller_test.rb} +1 -3
  55. data/test/integration/app/test/test_helper.rb +1 -21
  56. data/test/integration/app/test/unit/{state_test.rb → bone_test.rb} +1 -3
  57. data/test/integration/app/test/unit/{seller_test.rb → double_sti_parent_relationship_test.rb} +1 -3
  58. data/test/integration/app/test/unit/{address_test.rb → double_sti_parent_test.rb} +1 -3
  59. data/test/integration/app/test/unit/organic_substance_test.rb +8 -0
  60. data/test/integration/app/test/unit/single_sti_parent_relationship_test.rb +8 -0
  61. data/test/integration/app/test/unit/single_sti_parent_test.rb +8 -0
  62. data/test/integration/app/test/unit/stick_test.rb +8 -0
  63. data/test/integration/app/test/unit/stone_test.rb +8 -0
  64. data/test/integration/server_test.rb +43 -0
  65. data/test/patches/symlinked_plugins_1.2.6.diff +46 -0
  66. data/test/setup.rb +6 -2
  67. data/test/test_helper.rb +32 -16
  68. data/test/unit/{polymorph_test.rb → has_many_polymorphs_test.rb} +16 -16
  69. metadata +49 -65
  70. metadata.gz.sig +0 -0
  71. data/generators/commenting/commenting_generator.rb +0 -94
  72. data/generators/commenting/templates/comment.rb +0 -33
  73. data/generators/commenting/templates/comment_test.rb +0 -12
  74. data/generators/commenting/templates/commenting.rb +0 -13
  75. data/generators/commenting/templates/commenting_extensions.rb +0 -30
  76. data/generators/commenting/templates/commenting_test.rb +0 -30
  77. data/generators/commenting/templates/commentings.yml +0 -23
  78. data/generators/commenting/templates/comments.yml +0 -13
  79. data/generators/commenting/templates/migration.rb +0 -28
  80. data/lib/has_many_polymorphs/dependencies.rb +0 -41
  81. data/test/integration/app/app/controllers/addresses_controller.rb +0 -85
  82. data/test/integration/app/app/controllers/sellers_controller.rb +0 -85
  83. data/test/integration/app/app/controllers/states_controller.rb +0 -85
  84. data/test/integration/app/app/controllers/users_controller.rb +0 -85
  85. data/test/integration/app/app/models/address.rb +0 -4
  86. data/test/integration/app/app/models/citation.rb +0 -3
  87. data/test/integration/app/app/models/citations_item.rb +0 -4
  88. data/test/integration/app/app/models/seller.rb +0 -4
  89. data/test/integration/app/app/models/state.rb +0 -3
  90. data/test/integration/app/app/models/user.rb +0 -4
  91. data/test/integration/app/db/migrate/001_create_users.rb +0 -16
  92. data/test/integration/app/db/migrate/002_create_sellers.rb +0 -14
  93. data/test/integration/app/db/migrate/003_create_addresses.rb +0 -19
  94. data/test/integration/app/db/migrate/004_create_states.rb +0 -12
  95. data/test/integration/app/db/migrate/005_add_capitalization_to_seller.rb +0 -9
  96. data/test/integration/app/db/migrate/006_add_deleted_to_user.rb +0 -9
  97. data/test/integration/app/db/migrate/007_add_lat_and_long_to_address.rb +0 -11
  98. data/test/integration/app/db/migrate/008_create_citations.rb +0 -12
  99. data/test/integration/app/db/migrate/009_create_citations_items.rb +0 -14
  100. data/test/integration/app/generated_models/aquatic_fish.rb +0 -109
  101. data/test/integration/app/generated_models/aquatic_pupils_whale.rb +0 -13
  102. data/test/integration/app/generated_models/aquatic_whale.rb +0 -42
  103. data/test/integration/app/generated_models/beautiful_fight_relationship.rb +0 -25
  104. data/test/integration/app/generated_models/citation.rb +0 -40
  105. data/test/integration/app/generated_models/citations_item.rb +0 -12
  106. data/test/integration/app/generated_models/dog.rb +0 -183
  107. data/test/integration/app/generated_models/eaters_foodstuff.rb +0 -13
  108. data/test/integration/app/generated_models/frog.rb +0 -78
  109. data/test/integration/app/generated_models/kitten.rb +0 -161
  110. data/test/integration/app/generated_models/parentship.rb +0 -14
  111. data/test/integration/app/generated_models/person.rb +0 -53
  112. data/test/integration/app/generated_models/petfood.rb +0 -125
  113. data/test/integration/app/generated_models/polymorph_test_some_model.rb +0 -25
  114. data/test/integration/app/generated_models/seller.rb +0 -30
  115. data/test/integration/app/generated_models/tabby.rb +0 -26
  116. data/test/integration/app/generated_models/user.rb +0 -34
  117. data/test/integration/app/generated_models/wild_boar.rb +0 -87
  118. data/test/integration/app/test/fixtures/addresses.yml +0 -13
  119. data/test/integration/app/test/fixtures/citations.yml +0 -9
  120. data/test/integration/app/test/fixtures/citations_items.yml +0 -9
  121. data/test/integration/app/test/fixtures/sellers.yml +0 -10
  122. data/test/integration/app/test/fixtures/states.yml +0 -216
  123. data/test/integration/app/test/fixtures/users.yml +0 -11
  124. data/test/integration/app/test/unit/citation_test.rb +0 -10
  125. data/test/integration/app/test/unit/citations_item_test.rb +0 -10
  126. data/test/test_all.rb +0 -16
@@ -0,0 +1,8 @@
1
+ require File.dirname(__FILE__) + '/../test_helper'
2
+
3
+ class OrganicSubstanceTest < Test::Unit::TestCase
4
+ # Replace this with your real tests.
5
+ def test_truth
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require File.dirname(__FILE__) + '/../test_helper'
2
+
3
+ class SingleStiParentRelationshipTest < Test::Unit::TestCase
4
+ # Replace this with your real tests.
5
+ def test_truth
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require File.dirname(__FILE__) + '/../test_helper'
2
+
3
+ class SingleStiParentTest < Test::Unit::TestCase
4
+ # Replace this with your real tests.
5
+ def test_truth
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require File.dirname(__FILE__) + '/../test_helper'
2
+
3
+ class StickTest < Test::Unit::TestCase
4
+ # Replace this with your real tests.
5
+ def test_truth
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ require File.dirname(__FILE__) + '/../test_helper'
2
+
3
+ class StoneTest < Test::Unit::TestCase
4
+ # Replace this with your real tests.
5
+ def test_truth
6
+ assert true
7
+ end
8
+ end
@@ -0,0 +1,43 @@
1
+
2
+ require "#{File.dirname(__FILE__)}/../test_helper"
3
+ require 'open-uri'
4
+
5
+ # Start the server
6
+
7
+ class ServerTest < Test::Unit::TestCase
8
+
9
+ PORT = 43040
10
+ URL = "http://localhost:#{PORT}/"
11
+
12
+ def setup
13
+ @pid = Process.fork do
14
+ Dir.chdir RAILS_ROOT do
15
+ # print "S"
16
+ exec("script/server -p #{PORT} &> #{LOG}")
17
+ end
18
+ end
19
+ sleep(5)
20
+ end
21
+
22
+ def teardown
23
+ # Process.kill(9, @pid) doesn't work because Mongrel has double-forked itself away
24
+ `ps awx | grep #{PORT} | grep -v grep | awk '{print $1}'`.split("\n").each do |pid|
25
+ system("kill -9 #{pid}")
26
+ # print "K"
27
+ end
28
+ sleep(2)
29
+ @pid = nil
30
+ end
31
+
32
+ def test_association_reloading
33
+ assert_match(/Bones: index/, open(URL + 'bones').read)
34
+ assert_match(/Bones: index/, open(URL + 'bones').read)
35
+ assert_match(/Bones: index/, open(URL + 'bones').read)
36
+ assert_match(/Bones: index/, open(URL + 'bones').read)
37
+ end
38
+
39
+ def test_verify_autoload_gets_invoked_in_console
40
+ # XXX Probably can use script/runner to test this
41
+ end
42
+
43
+ end
@@ -0,0 +1,46 @@
1
+ Index: /trunk/railties/lib/rails_generator/lookup.rb
2
+ ===================================================================
3
+ --- /trunk/railties/lib/rails_generator/lookup.rb (revision 4310)
4
+ +++ /trunk/railties/lib/rails_generator/lookup.rb (revision 6101)
5
+ @@ -101,5 +101,5 @@
6
+ sources << PathSource.new(:lib, "#{::RAILS_ROOT}/lib/generators")
7
+ sources << PathSource.new(:vendor, "#{::RAILS_ROOT}/vendor/generators")
8
+ - sources << PathSource.new(:plugins, "#{::RAILS_ROOT}/vendor/plugins/**/generators")
9
+ + sources << PathSource.new(:plugins, "#{::RAILS_ROOT}/vendor/plugins/*/**/generators")
10
+ end
11
+ sources << PathSource.new(:user, "#{Dir.user_home}/.rails/generators")
12
+ Index: /trunk/railties/lib/tasks/rails.rb
13
+ ===================================================================
14
+ --- /trunk/railties/lib/tasks/rails.rb (revision 5469)
15
+ +++ /trunk/railties/lib/tasks/rails.rb (revision 6101)
16
+ @@ -6,3 +6,3 @@
17
+ # Load any custom rakefile extensions
18
+ Dir["#{RAILS_ROOT}/lib/tasks/**/*.rake"].sort.each { |ext| load ext }
19
+ -Dir["#{RAILS_ROOT}/vendor/plugins/**/tasks/**/*.rake"].sort.each { |ext| load ext }
20
+ +Dir["#{RAILS_ROOT}/vendor/plugins/*/**/tasks/**/*.rake"].sort.each { |ext| load ext }
21
+ Index: /trunk/railties/lib/tasks/testing.rake
22
+ ===================================================================
23
+ --- /trunk/railties/lib/tasks/testing.rake (revision 5263)
24
+ +++ /trunk/railties/lib/tasks/testing.rake (revision 6101)
25
+ @@ -109,9 +109,9 @@
26
+ t.pattern = "vendor/plugins/#{ENV['PLUGIN']}/test/**/*_test.rb"
27
+ else
28
+ - t.pattern = 'vendor/plugins/**/test/**/*_test.rb'
29
+ + t.pattern = 'vendor/plugins/*/**/test/**/*_test.rb'
30
+ end
31
+
32
+ t.verbose = true
33
+ end
34
+ - Rake::Task['test:plugins'].comment = "Run the plugin tests in vendor/plugins/**/test (or specify with PLUGIN=name)"
35
+ + Rake::Task['test:plugins'].comment = "Run the plugin tests in vendor/plugins/*/**/test (or specify with PLUGIN=name)"
36
+ end
37
+ Index: /trunk/railties/CHANGELOG
38
+ ===================================================================
39
+ --- /trunk/railties/CHANGELOG (revision 6069)
40
+ +++ /trunk/railties/CHANGELOG (revision 6101)
41
+ @@ -1,3 +1,5 @@
42
+ *SVN*
43
+ +
44
+ +* Plugins may be symlinked in vendor/plugins. #4245 [brandon, progrium@gmail.com]
45
+
46
+ * Resource generator depends on the model generator rather than duplicating it. #7269 [bscofield]
@@ -5,6 +5,10 @@ Dir.chdir "#{File.dirname(__FILE__)}/integration/app/" do
5
5
  Dir.chdir "vendor/plugins" do
6
6
  system("rm has_many_polymorphs; ln -s ../../../../../ has_many_polymorphs")
7
7
  end
8
- system("rake db:create")
9
- system("rake db:migrate db:fixtures:load")
8
+
9
+ system "rake db:drop --trace RAILS_GEM_VERSION=2.0.2 "
10
+ system "rake db:create --trace RAILS_GEM_VERSION=2.0.2 "
11
+ system "rake db:migrate --trace"
12
+ system "rake db:fixtures:load --trace"
10
13
  end
14
+
@@ -1,22 +1,27 @@
1
1
 
2
- begin
3
- require 'rubygems'
4
- require 'ruby-debug'
5
- Debugger.start
6
- rescue Object
2
+ $VERBOSE = nil
3
+ require 'rubygems'
4
+ require 'echoe'
5
+ require 'test/unit'
6
+ require 'multi_rails_init'
7
+ require 'ruby-debug'
8
+
9
+ if defined? ENV['MULTIRAILS_RAILS_VERSION']
10
+ ENV['RAILS_GEM_VERSION'] = ENV['MULTIRAILS_RAILS_VERSION']
7
11
  end
8
12
 
9
- HERE = File.expand_path(File.dirname(__FILE__))
10
- $LOAD_PATH << HERE
13
+ Echoe.silence do
14
+ HERE = File.expand_path(File.dirname(__FILE__))
15
+ $LOAD_PATH << HERE
16
+ # $LOAD_PATH << "#{HERE}/integration/app"
17
+ end
11
18
 
12
- # require 'integration/app/config/environment'
13
- require 'integration/app/test/test_helper'
19
+ LOG = "#{HERE}/integration/app/log/development.log"
14
20
 
15
- def silently
16
- stderr, $stderr = $stderr, StringIO.new
17
- yield
18
- $stderr = stderr
19
- end
21
+ ### For unit tests
22
+
23
+ require 'integration/app/config/environment'
24
+ require 'test_help'
20
25
 
21
26
  Inflector.inflections {|i| i.irregular 'fish', 'fish' }
22
27
 
@@ -29,7 +34,18 @@ class Test::Unit::TestCase
29
34
  self.use_instantiated_fixtures = false
30
35
  end
31
36
 
32
- # test schema
33
- silently do
37
+ Echoe.silence do
34
38
  load(HERE + "/schema.rb")
35
39
  end
40
+
41
+ ### For integration tests
42
+
43
+ def truncate
44
+ system("> #{LOG}")
45
+ end
46
+
47
+ def log
48
+ File.open(LOG, 'r') do |f|
49
+ f.read
50
+ end
51
+ end
@@ -46,22 +46,22 @@ class PolymorphTest < Test::Unit::TestCase
46
46
  def test_all_relationship_validities
47
47
  # q = []
48
48
  # ObjectSpace.each_object(Class){|c| q << c if c.ancestors.include? ActiveRecord::Base }
49
- # q.each{|c| puts "#{c.name}.reflect_on_all_associations.map &:check_validity! "}
50
- Petfood.reflect_on_all_associations.map &:check_validity!
51
- Tabby.reflect_on_all_associations.map &:check_validity!
52
- Kitten.reflect_on_all_associations.map &:check_validity!
53
- Dog.reflect_on_all_associations.map &:check_validity!
54
- Canine.reflect_on_all_associations.map &:check_validity!
55
- Aquatic::Fish.reflect_on_all_associations.map &:check_validity!
56
- EatersFoodstuff.reflect_on_all_associations.map &:check_validity!
57
- WildBoar.reflect_on_all_associations.map &:check_validity!
58
- Frog.reflect_on_all_associations.map &:check_validity!
59
- Cat.reflect_on_all_associations.map &:check_validity!
60
- BeautifulFightRelationship.reflect_on_all_associations.map &:check_validity!
61
- Person.reflect_on_all_associations.map &:check_validity!
62
- Parentship.reflect_on_all_associations.map &:check_validity!
63
- Aquatic::Whale.reflect_on_all_associations.map &:check_validity!
64
- Aquatic::PupilsWhale.reflect_on_all_associations.map &:check_validity!
49
+ # q.each{|c| puts "#{c.name}.reflect_on_all_associations.map(&:check_validity!)"}
50
+ Petfood.reflect_on_all_associations.map(&:check_validity!)
51
+ Tabby.reflect_on_all_associations.map(&:check_validity!)
52
+ Kitten.reflect_on_all_associations.map(&:check_validity!)
53
+ Dog.reflect_on_all_associations.map(&:check_validity!)
54
+ Canine.reflect_on_all_associations.map(&:check_validity!)
55
+ Aquatic::Fish.reflect_on_all_associations.map(&:check_validity!)
56
+ EatersFoodstuff.reflect_on_all_associations.map(&:check_validity!)
57
+ WildBoar.reflect_on_all_associations.map(&:check_validity!)
58
+ Frog.reflect_on_all_associations.map(&:check_validity!)
59
+ Cat.reflect_on_all_associations.map(&:check_validity!)
60
+ BeautifulFightRelationship.reflect_on_all_associations.map(&:check_validity!)
61
+ Person.reflect_on_all_associations.map(&:check_validity!)
62
+ Parentship.reflect_on_all_associations.map(&:check_validity!)
63
+ Aquatic::Whale.reflect_on_all_associations.map(&:check_validity!)
64
+ Aquatic::PupilsWhale.reflect_on_all_associations.map(&:check_validity!)
65
65
  end
66
66
 
67
67
  def test_assignment
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_many_polymorphs
3
3
  version: !ruby/object:Gem::Version
4
- version: "2.11"
4
+ version: "2.12"
5
5
  platform: ruby
6
6
  authors:
7
7
  - ""
@@ -30,7 +30,7 @@ cert_chain:
30
30
  yZ0=
31
31
  -----END CERTIFICATE-----
32
32
 
33
- date: 2007-12-04 00:00:00 -05:00
33
+ date: 2008-01-16 00:00:00 -05:00
34
34
  default_executable:
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
@@ -53,15 +53,6 @@ extra_rdoc_files: []
53
53
  files:
54
54
  - CHANGELOG
55
55
  - examples/hmph.rb
56
- - generators/commenting/commenting_generator.rb
57
- - generators/commenting/templates/comment.rb
58
- - generators/commenting/templates/comment_test.rb
59
- - generators/commenting/templates/commenting.rb
60
- - generators/commenting/templates/commenting_extensions.rb
61
- - generators/commenting/templates/commenting_test.rb
62
- - generators/commenting/templates/commentings.yml
63
- - generators/commenting/templates/comments.yml
64
- - generators/commenting/templates/migration.rb
65
56
  - generators/tagging/tagging_generator.rb
66
57
  - generators/tagging/templates/migration.rb
67
58
  - generators/tagging/templates/tag.rb
@@ -78,7 +69,6 @@ files:
78
69
  - lib/has_many_polymorphs/class_methods.rb
79
70
  - lib/has_many_polymorphs/configuration.rb
80
71
  - lib/has_many_polymorphs/debugging_tools.rb
81
- - lib/has_many_polymorphs/dependencies.rb
82
72
  - lib/has_many_polymorphs/rake_task_redefine_task.rb
83
73
  - lib/has_many_polymorphs/reflection.rb
84
74
  - lib/has_many_polymorphs/support_methods.rb
@@ -97,26 +87,28 @@ files:
97
87
  - test/fixtures/petfoods.yml
98
88
  - test/fixtures/whales.yml
99
89
  - test/fixtures/wild_boars.yml
100
- - test/integration/app/app/controllers/addresses_controller.rb
90
+ - test/generator/tagging_generator_test.rb
101
91
  - test/integration/app/app/controllers/application.rb
102
- - test/integration/app/app/controllers/sellers_controller.rb
103
- - test/integration/app/app/controllers/states_controller.rb
104
- - test/integration/app/app/controllers/users_controller.rb
92
+ - test/integration/app/app/controllers/bones_controller.rb
105
93
  - test/integration/app/app/helpers/addresses_helper.rb
106
94
  - test/integration/app/app/helpers/application_helper.rb
95
+ - test/integration/app/app/helpers/bones_helper.rb
107
96
  - test/integration/app/app/helpers/sellers_helper.rb
108
97
  - test/integration/app/app/helpers/states_helper.rb
109
98
  - test/integration/app/app/helpers/users_helper.rb
110
- - test/integration/app/app/models/address.rb
111
- - test/integration/app/app/models/citation.rb
112
- - test/integration/app/app/models/citations_item.rb
113
- - test/integration/app/app/models/seller.rb
114
- - test/integration/app/app/models/state.rb
115
- - test/integration/app/app/models/user.rb
99
+ - test/integration/app/app/models/bone.rb
100
+ - test/integration/app/app/models/double_sti_parent.rb
101
+ - test/integration/app/app/models/double_sti_parent_relationship.rb
102
+ - test/integration/app/app/models/organic_substance.rb
103
+ - test/integration/app/app/models/single_sti_parent.rb
104
+ - test/integration/app/app/models/single_sti_parent_relationship.rb
105
+ - test/integration/app/app/models/stick.rb
106
+ - test/integration/app/app/models/stone.rb
116
107
  - test/integration/app/app/views/addresses/edit.html.erb
117
108
  - test/integration/app/app/views/addresses/index.html.erb
118
109
  - test/integration/app/app/views/addresses/new.html.erb
119
110
  - test/integration/app/app/views/addresses/show.html.erb
111
+ - test/integration/app/app/views/bones/index.rhtml
120
112
  - test/integration/app/app/views/layouts/addresses.html.erb
121
113
  - test/integration/app/app/views/layouts/sellers.html.erb
122
114
  - test/integration/app/app/views/layouts/states.html.erb
@@ -136,6 +128,7 @@ files:
136
128
  - test/integration/app/config/boot.rb
137
129
  - test/integration/app/config/database.yml
138
130
  - test/integration/app/config/environment.rb
131
+ - test/integration/app/config/environment.rb.canonical
139
132
  - test/integration/app/config/environments/development.rb
140
133
  - test/integration/app/config/environments/production.rb
141
134
  - test/integration/app/config/environments/test.rb
@@ -143,36 +136,20 @@ files:
143
136
  - test/integration/app/config/routes.rb
144
137
  - test/integration/app/config/ultrasphinx/default.base
145
138
  - test/integration/app/config/ultrasphinx/development.conf.canonical
146
- - test/integration/app/db/migrate/001_create_users.rb
147
- - test/integration/app/db/migrate/002_create_sellers.rb
148
- - test/integration/app/db/migrate/003_create_addresses.rb
149
- - test/integration/app/db/migrate/004_create_states.rb
150
- - test/integration/app/db/migrate/005_add_capitalization_to_seller.rb
151
- - test/integration/app/db/migrate/006_add_deleted_to_user.rb
152
- - test/integration/app/db/migrate/007_add_lat_and_long_to_address.rb
153
- - test/integration/app/db/migrate/008_create_citations.rb
154
- - test/integration/app/db/migrate/009_create_citations_items.rb
139
+ - test/integration/app/db/migrate/001_create_sticks.rb
140
+ - test/integration/app/db/migrate/002_create_stones.rb
141
+ - test/integration/app/db/migrate/003_create_organic_substances.rb
142
+ - test/integration/app/db/migrate/004_create_bones.rb
143
+ - test/integration/app/db/migrate/005_create_single_sti_parents.rb
144
+ - test/integration/app/db/migrate/006_create_double_sti_parents.rb
145
+ - test/integration/app/db/migrate/007_create_single_sti_parent_relationships.rb
146
+ - test/integration/app/db/migrate/008_create_double_sti_parent_relationships.rb
147
+ - test/integration/app/db/migrate/009_create_library_model.rb
155
148
  - test/integration/app/db/schema.rb
156
149
  - test/integration/app/doc/README_FOR_APP
157
- - test/integration/app/generated_models/aquatic_fish.rb
158
- - test/integration/app/generated_models/aquatic_pupils_whale.rb
159
- - test/integration/app/generated_models/aquatic_whale.rb
160
- - test/integration/app/generated_models/beautiful_fight_relationship.rb
161
- - test/integration/app/generated_models/citation.rb
162
- - test/integration/app/generated_models/citations_item.rb
163
- - test/integration/app/generated_models/dog.rb
164
- - test/integration/app/generated_models/eaters_foodstuff.rb
165
- - test/integration/app/generated_models/frog.rb
166
- - test/integration/app/generated_models/kitten.rb
167
- - test/integration/app/generated_models/parentship.rb
168
- - test/integration/app/generated_models/person.rb
169
- - test/integration/app/generated_models/petfood.rb
170
- - test/integration/app/generated_models/polymorph_test_some_model.rb
171
- - test/integration/app/generated_models/seller.rb
172
- - test/integration/app/generated_models/tabby.rb
173
- - test/integration/app/generated_models/user.rb
174
- - test/integration/app/generated_models/wild_boar.rb
175
150
  - test/integration/app/generators/commenting_generator_test.rb
151
+ - test/integration/app/hmp_development
152
+ - test/integration/app/lib/library_model.rb
176
153
  - test/integration/app/public/404.html
177
154
  - test/integration/app/public/500.html
178
155
  - test/integration/app/public/dispatch.cgi
@@ -203,23 +180,28 @@ files:
203
180
  - test/integration/app/script/process/spawner
204
181
  - test/integration/app/script/runner
205
182
  - test/integration/app/script/server
206
- - test/integration/app/test/fixtures/addresses.yml
207
- - test/integration/app/test/fixtures/citations.yml
208
- - test/integration/app/test/fixtures/citations_items.yml
209
- - test/integration/app/test/fixtures/sellers.yml
210
- - test/integration/app/test/fixtures/states.yml
211
- - test/integration/app/test/fixtures/users.yml
183
+ - test/integration/app/test/fixtures/double_sti_parent_relationships.yml
184
+ - test/integration/app/test/fixtures/double_sti_parents.yml
185
+ - test/integration/app/test/fixtures/organic_substances.yml
186
+ - test/integration/app/test/fixtures/single_sti_parent_relationships.yml
187
+ - test/integration/app/test/fixtures/single_sti_parents.yml
188
+ - test/integration/app/test/fixtures/sticks.yml
189
+ - test/integration/app/test/fixtures/stones.yml
212
190
  - test/integration/app/test/functional/addresses_controller_test.rb
191
+ - test/integration/app/test/functional/bones_controller_test.rb
213
192
  - test/integration/app/test/functional/sellers_controller_test.rb
214
193
  - test/integration/app/test/functional/states_controller_test.rb
215
194
  - test/integration/app/test/functional/users_controller_test.rb
216
195
  - test/integration/app/test/test_helper.rb
217
- - test/integration/app/test/unit/address_test.rb
218
- - test/integration/app/test/unit/citation_test.rb
219
- - test/integration/app/test/unit/citations_item_test.rb
220
- - test/integration/app/test/unit/seller_test.rb
221
- - test/integration/app/test/unit/state_test.rb
222
- - test/integration/app/test/unit/user_test.rb
196
+ - test/integration/app/test/unit/bone_test.rb
197
+ - test/integration/app/test/unit/double_sti_parent_relationship_test.rb
198
+ - test/integration/app/test/unit/double_sti_parent_test.rb
199
+ - test/integration/app/test/unit/organic_substance_test.rb
200
+ - test/integration/app/test/unit/single_sti_parent_relationship_test.rb
201
+ - test/integration/app/test/unit/single_sti_parent_test.rb
202
+ - test/integration/app/test/unit/stick_test.rb
203
+ - test/integration/app/test/unit/stone_test.rb
204
+ - test/integration/server_test.rb
223
205
  - test/models/aquatic/fish.rb
224
206
  - test/models/aquatic/pupils_whale.rb
225
207
  - test/models/aquatic/whale.rb
@@ -237,11 +219,11 @@ files:
237
219
  - test/models/wild_boar.rb
238
220
  - test/modules/extension_module.rb
239
221
  - test/modules/other_extension_module.rb
222
+ - test/patches/symlinked_plugins_1.2.6.diff
240
223
  - test/schema.rb
241
224
  - test/setup.rb
242
- - test/test_all.rb
243
225
  - test/test_helper.rb
244
- - test/unit/polymorph_test.rb
226
+ - test/unit/has_many_polymorphs_test.rb
245
227
  - TODO
246
228
  - has_many_polymorphs.gemspec
247
229
  has_rdoc: true
@@ -266,9 +248,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
266
248
  requirements: []
267
249
 
268
250
  rubyforge_project: fauna
269
- rubygems_version: 0.9.5
251
+ rubygems_version: 1.0.1
270
252
  signing_key:
271
253
  specification_version: 2
272
254
  summary: An ActiveRecord plugin for self-referential and double-sided polymorphic associations.
273
255
  test_files:
274
- - test/test_all.rb
256
+ - test/generator/tagging_generator_test.rb
257
+ - test/integration/server_test.rb
258
+ - test/unit/has_many_polymorphs_test.rb