joinfix 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. data/MIT-LICENSE +21 -0
  2. data/README +86 -0
  3. data/TEST_README +44 -0
  4. data/lib/joinfix/fixture.rb +29 -0
  5. data/lib/joinfix/fixtures.rb +271 -0
  6. data/lib/joinfix/fixtures_class.rb +102 -0
  7. data/lib/joinfix.rb +208 -0
  8. data/rails/README +182 -0
  9. data/rails/Rakefile +10 -0
  10. data/rails/app/controllers/application.rb +7 -0
  11. data/rails/app/helpers/application_helper.rb +3 -0
  12. data/rails/app/models/group.rb +4 -0
  13. data/rails/app/models/inner_child.rb +4 -0
  14. data/rails/app/models/nested_child.rb +4 -0
  15. data/rails/app/models/nested_parent.rb +4 -0
  16. data/rails/app/models/user.rb +4 -0
  17. data/rails/app/models/user_group.rb +5 -0
  18. data/rails/config/boot.rb +45 -0
  19. data/rails/config/database.yml +36 -0
  20. data/rails/config/environment.rb +60 -0
  21. data/rails/config/environments/development.rb +21 -0
  22. data/rails/config/environments/production.rb +18 -0
  23. data/rails/config/environments/test.rb +19 -0
  24. data/rails/config/routes.rb +23 -0
  25. data/rails/db/migrate/001_create_nested_parents.rb +12 -0
  26. data/rails/db/migrate/002_create_nested_children.rb +12 -0
  27. data/rails/db/migrate/003_create_inner_children.rb +12 -0
  28. data/rails/db/migrate/004_create_users.rb +11 -0
  29. data/rails/db/migrate/005_create_groups.rb +11 -0
  30. data/rails/db/migrate/006_create_user_groups.rb +12 -0
  31. data/rails/db/schema.rb +35 -0
  32. data/rails/doc/README_FOR_APP +2 -0
  33. data/rails/public/404.html +30 -0
  34. data/rails/public/500.html +30 -0
  35. data/rails/public/dispatch.cgi +10 -0
  36. data/rails/public/dispatch.fcgi +24 -0
  37. data/rails/public/dispatch.rb +10 -0
  38. data/rails/public/favicon.ico +0 -0
  39. data/rails/public/images/rails.png +0 -0
  40. data/rails/public/index.html +277 -0
  41. data/rails/public/javascripts/application.js +2 -0
  42. data/rails/public/javascripts/controls.js +833 -0
  43. data/rails/public/javascripts/dragdrop.js +942 -0
  44. data/rails/public/javascripts/effects.js +1088 -0
  45. data/rails/public/javascripts/prototype.js +2515 -0
  46. data/rails/public/robots.txt +1 -0
  47. data/rails/script/about +3 -0
  48. data/rails/script/breakpointer +3 -0
  49. data/rails/script/console +3 -0
  50. data/rails/script/destroy +3 -0
  51. data/rails/script/generate +3 -0
  52. data/rails/script/performance/benchmarker +3 -0
  53. data/rails/script/performance/profiler +3 -0
  54. data/rails/script/plugin +3 -0
  55. data/rails/script/process/inspector +3 -0
  56. data/rails/script/process/reaper +3 -0
  57. data/rails/script/process/spawner +3 -0
  58. data/rails/script/runner +3 -0
  59. data/rails/script/server +3 -0
  60. data/rails/test/fixtures/groups.yml +3 -0
  61. data/rails/test/fixtures/inner_children.yml +2 -0
  62. data/rails/test/fixtures/nested_children.yml +2 -0
  63. data/rails/test/fixtures/nested_parents.yml +33 -0
  64. data/rails/test/fixtures/user_groups.yml +0 -0
  65. data/rails/test/fixtures/users.yml +20 -0
  66. data/rails/test/test_helper.rb +29 -0
  67. data/rails/test/unit/group_test.rb +10 -0
  68. data/rails/test/unit/inner_child_test.rb +10 -0
  69. data/rails/test/unit/nested_child_test.rb +10 -0
  70. data/rails/test/unit/nested_parent_test.rb +24 -0
  71. data/rails/test/unit/user_group_test.rb +10 -0
  72. data/rails/test/unit/user_test.rb +12 -0
  73. data/test/belongs_to_test.rb +77 -0
  74. data/test/config.yml +5 -0
  75. data/test/fixtures/as_children.yml +0 -0
  76. data/test/fixtures/bt_children.yml +0 -0
  77. data/test/fixtures/bt_parents.yml +30 -0
  78. data/test/fixtures/habtm_children.yml +0 -0
  79. data/test/fixtures/habtm_children_habtm_parents.yml +0 -0
  80. data/test/fixtures/habtm_joins.yml +0 -0
  81. data/test/fixtures/habtm_parents.yml +18 -0
  82. data/test/fixtures/hm_children.yml +0 -0
  83. data/test/fixtures/hm_joins.yml +0 -0
  84. data/test/fixtures/hm_parents.yml +34 -0
  85. data/test/fixtures/ho_children.yml +0 -0
  86. data/test/fixtures/ho_parents.yml +14 -0
  87. data/test/fixtures/inner_children.yml +2 -0
  88. data/test/fixtures/nested_children.yml +0 -0
  89. data/test/fixtures/nested_parents.yml +33 -0
  90. data/test/fixtures/no_join_fixes.yml +4 -0
  91. data/test/fixtures/omap_no_join_fixes.yml +7 -0
  92. data/test/fixtures/polymorphic_children.yml +0 -0
  93. data/test/has_and_belongs_to_many_test.rb +72 -0
  94. data/test/has_many_test.rb +97 -0
  95. data/test/has_one_test.rb +56 -0
  96. data/test/joinfix_test.rb +287 -0
  97. data/test/joinfix_test_helper.rb +54 -0
  98. data/test/joinfix_test_suite.rb +10 -0
  99. data/test/nested_test.rb +70 -0
  100. metadata +189 -0
metadata ADDED
@@ -0,0 +1,189 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.9.2
3
+ specification_version: 1
4
+ name: joinfix
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.1.0
7
+ date: 2007-05-11 00:00:00 -06:00
8
+ summary: A reflection-based solution to the fixture join problem.
9
+ require_paths:
10
+ - lib
11
+ email: simon.chiang@uchsc.edu
12
+ homepage: http://rubyforge.org/projects/joinfix/
13
+ rubyforge_project:
14
+ description:
15
+ autorequire: joinfix
16
+ default_executable:
17
+ bindir: bin
18
+ has_rdoc: true
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
24
+ version:
25
+ platform: ruby
26
+ signing_key:
27
+ cert_chain:
28
+ post_install_message:
29
+ authors:
30
+ - Simon Chiang
31
+ files:
32
+ - test/belongs_to_test.rb
33
+ - test/config.yml
34
+ - test/fixtures
35
+ - test/has_and_belongs_to_many_test.rb
36
+ - test/has_many_test.rb
37
+ - test/has_one_test.rb
38
+ - test/joinfix_test.rb
39
+ - test/joinfix_test_helper.rb
40
+ - test/joinfix_test_suite.rb
41
+ - test/nested_test.rb
42
+ - test/fixtures/as_children.yml
43
+ - test/fixtures/bt_children.yml
44
+ - test/fixtures/bt_parents.yml
45
+ - test/fixtures/habtm_children.yml
46
+ - test/fixtures/habtm_children_habtm_parents.yml
47
+ - test/fixtures/habtm_joins.yml
48
+ - test/fixtures/habtm_parents.yml
49
+ - test/fixtures/hm_children.yml
50
+ - test/fixtures/hm_joins.yml
51
+ - test/fixtures/hm_parents.yml
52
+ - test/fixtures/ho_children.yml
53
+ - test/fixtures/ho_parents.yml
54
+ - test/fixtures/inner_children.yml
55
+ - test/fixtures/nested_children.yml
56
+ - test/fixtures/nested_parents.yml
57
+ - test/fixtures/no_join_fixes.yml
58
+ - test/fixtures/omap_no_join_fixes.yml
59
+ - test/fixtures/polymorphic_children.yml
60
+ - lib/joinfix
61
+ - lib/joinfix.rb
62
+ - lib/joinfix/fixture.rb
63
+ - lib/joinfix/fixtures.rb
64
+ - lib/joinfix/fixtures_class.rb
65
+ - rails/app
66
+ - rails/components
67
+ - rails/config
68
+ - rails/db
69
+ - rails/doc
70
+ - rails/lib
71
+ - rails/log
72
+ - rails/public
73
+ - rails/Rakefile
74
+ - rails/README
75
+ - rails/script
76
+ - rails/test
77
+ - rails/tmp
78
+ - rails/vendor
79
+ - rails/app/controllers
80
+ - rails/app/helpers
81
+ - rails/app/models
82
+ - rails/app/views
83
+ - rails/app/controllers/application.rb
84
+ - rails/app/helpers/application_helper.rb
85
+ - rails/app/models/group.rb
86
+ - rails/app/models/inner_child.rb
87
+ - rails/app/models/nested_child.rb
88
+ - rails/app/models/nested_parent.rb
89
+ - rails/app/models/user.rb
90
+ - rails/app/models/user_group.rb
91
+ - rails/app/views/layouts
92
+ - rails/config/boot.rb
93
+ - rails/config/database.yml
94
+ - rails/config/environment.rb
95
+ - rails/config/environments
96
+ - rails/config/routes.rb
97
+ - rails/config/environments/development.rb
98
+ - rails/config/environments/production.rb
99
+ - rails/config/environments/test.rb
100
+ - rails/db/migrate
101
+ - rails/db/schema.rb
102
+ - rails/db/migrate/001_create_nested_parents.rb
103
+ - rails/db/migrate/002_create_nested_children.rb
104
+ - rails/db/migrate/003_create_inner_children.rb
105
+ - rails/db/migrate/004_create_users.rb
106
+ - rails/db/migrate/005_create_groups.rb
107
+ - rails/db/migrate/006_create_user_groups.rb
108
+ - rails/doc/README_FOR_APP
109
+ - rails/lib/tasks
110
+ - rails/public/404.html
111
+ - rails/public/500.html
112
+ - rails/public/dispatch.cgi
113
+ - rails/public/dispatch.fcgi
114
+ - rails/public/dispatch.rb
115
+ - rails/public/favicon.ico
116
+ - rails/public/images
117
+ - rails/public/index.html
118
+ - rails/public/javascripts
119
+ - rails/public/robots.txt
120
+ - rails/public/stylesheets
121
+ - rails/public/images/rails.png
122
+ - rails/public/javascripts/application.js
123
+ - rails/public/javascripts/controls.js
124
+ - rails/public/javascripts/dragdrop.js
125
+ - rails/public/javascripts/effects.js
126
+ - rails/public/javascripts/prototype.js
127
+ - rails/script/about
128
+ - rails/script/breakpointer
129
+ - rails/script/console
130
+ - rails/script/destroy
131
+ - rails/script/generate
132
+ - rails/script/performance
133
+ - rails/script/plugin
134
+ - rails/script/process
135
+ - rails/script/runner
136
+ - rails/script/server
137
+ - rails/script/performance/benchmarker
138
+ - rails/script/performance/profiler
139
+ - rails/script/process/inspector
140
+ - rails/script/process/reaper
141
+ - rails/script/process/spawner
142
+ - rails/test/fixtures
143
+ - rails/test/functional
144
+ - rails/test/integration
145
+ - rails/test/mocks
146
+ - rails/test/test_helper.rb
147
+ - rails/test/unit
148
+ - rails/test/fixtures/groups.yml
149
+ - rails/test/fixtures/inner_children.yml
150
+ - rails/test/fixtures/nested_children.yml
151
+ - rails/test/fixtures/nested_parents.yml
152
+ - rails/test/fixtures/users.yml
153
+ - rails/test/fixtures/user_groups.yml
154
+ - rails/test/mocks/development
155
+ - rails/test/mocks/test
156
+ - rails/test/unit/group_test.rb
157
+ - rails/test/unit/inner_child_test.rb
158
+ - rails/test/unit/nested_child_test.rb
159
+ - rails/test/unit/nested_parent_test.rb
160
+ - rails/test/unit/user_group_test.rb
161
+ - rails/test/unit/user_test.rb
162
+ - rails/vendor/plugins
163
+ - README
164
+ - MIT-LICENSE
165
+ - TEST_README
166
+ test_files:
167
+ - test/joinfix_test_suite.rb
168
+ rdoc_options: []
169
+
170
+ extra_rdoc_files:
171
+ - README
172
+ - MIT-LICENSE
173
+ - TEST_README
174
+ executables: []
175
+
176
+ extensions: []
177
+
178
+ requirements: []
179
+
180
+ dependencies:
181
+ - !ruby/object:Gem::Dependency
182
+ name: activerecord
183
+ version_requirement:
184
+ version_requirements: !ruby/object:Gem::Version::Requirement
185
+ requirements:
186
+ - - ">="
187
+ - !ruby/object:Gem::Version
188
+ version: 1.15.1
189
+ version: