mingusbabcock-composite_primary_keys 2.2.2 → 2.2.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. data/History.txt +156 -0
  2. data/Manifest.txt +122 -0
  3. data/README.txt +41 -0
  4. data/README_DB2.txt +33 -0
  5. data/Rakefile +65 -0
  6. data/init.rb +2 -0
  7. data/install.rb +30 -0
  8. data/lib/adapter_helper/base.rb +63 -0
  9. data/lib/adapter_helper/mysql.rb +13 -0
  10. data/lib/adapter_helper/oracle.rb +12 -0
  11. data/lib/adapter_helper/postgresql.rb +13 -0
  12. data/lib/adapter_helper/sqlite3.rb +13 -0
  13. data/lib/composite_primary_keys.rb +56 -0
  14. data/lib/composite_primary_keys/association_preload.rb +253 -0
  15. data/lib/composite_primary_keys/associations.rb +428 -0
  16. data/lib/composite_primary_keys/attribute_methods.rb +84 -0
  17. data/lib/composite_primary_keys/base.rb +341 -0
  18. data/lib/composite_primary_keys/calculations.rb +69 -0
  19. data/lib/composite_primary_keys/composite_arrays.rb +30 -0
  20. data/lib/composite_primary_keys/connection_adapters/ibm_db_adapter.rb +21 -0
  21. data/lib/composite_primary_keys/connection_adapters/oracle_adapter.rb +15 -0
  22. data/lib/composite_primary_keys/connection_adapters/postgresql_adapter.rb +53 -0
  23. data/lib/composite_primary_keys/connection_adapters/sqlite3_adapter.rb +15 -0
  24. data/lib/composite_primary_keys/fixtures.rb +8 -0
  25. data/lib/composite_primary_keys/migration.rb +20 -0
  26. data/lib/composite_primary_keys/reflection.rb +19 -0
  27. data/lib/composite_primary_keys/version.rb +8 -0
  28. data/loader.rb +24 -0
  29. data/local/database_connections.rb.sample +10 -0
  30. data/local/paths.rb.sample +2 -0
  31. data/local/tasks.rb.sample +2 -0
  32. data/scripts/console.rb +48 -0
  33. data/scripts/txt2html +67 -0
  34. data/scripts/txt2js +59 -0
  35. data/tasks/activerecord_selection.rake +43 -0
  36. data/tasks/databases.rake +12 -0
  37. data/tasks/databases/mysql.rake +30 -0
  38. data/tasks/databases/oracle.rake +25 -0
  39. data/tasks/databases/postgresql.rake +26 -0
  40. data/tasks/databases/sqlite3.rake +28 -0
  41. data/tasks/deployment.rake +22 -0
  42. data/tasks/local_setup.rake +13 -0
  43. data/tasks/website.rake +18 -0
  44. data/test/README_tests.txt +67 -0
  45. data/test/abstract_unit.rb +94 -0
  46. data/test/connections/native_ibm_db/connection.rb +23 -0
  47. data/test/connections/native_mysql/connection.rb +13 -0
  48. data/test/connections/native_oracle/connection.rb +14 -0
  49. data/test/connections/native_postgresql/connection.rb +9 -0
  50. data/test/connections/native_sqlite/connection.rb +9 -0
  51. data/test/fixtures/article.rb +5 -0
  52. data/test/fixtures/articles.yml +6 -0
  53. data/test/fixtures/comment.rb +6 -0
  54. data/test/fixtures/comments.yml +16 -0
  55. data/test/fixtures/db_definitions/db2-create-tables.sql +113 -0
  56. data/test/fixtures/db_definitions/db2-drop-tables.sql +16 -0
  57. data/test/fixtures/db_definitions/mysql.sql +174 -0
  58. data/test/fixtures/db_definitions/oracle.drop.sql +39 -0
  59. data/test/fixtures/db_definitions/oracle.sql +188 -0
  60. data/test/fixtures/db_definitions/postgresql.sql +199 -0
  61. data/test/fixtures/db_definitions/sqlite.sql +160 -0
  62. data/test/fixtures/department.rb +5 -0
  63. data/test/fixtures/departments.yml +3 -0
  64. data/test/fixtures/employee.rb +4 -0
  65. data/test/fixtures/employees.yml +9 -0
  66. data/test/fixtures/group.rb +3 -0
  67. data/test/fixtures/groups.yml +3 -0
  68. data/test/fixtures/hack.rb +6 -0
  69. data/test/fixtures/hacks.yml +2 -0
  70. data/test/fixtures/membership.rb +7 -0
  71. data/test/fixtures/membership_status.rb +3 -0
  72. data/test/fixtures/membership_statuses.yml +10 -0
  73. data/test/fixtures/memberships.yml +6 -0
  74. data/test/fixtures/product.rb +7 -0
  75. data/test/fixtures/product_tariff.rb +5 -0
  76. data/test/fixtures/product_tariffs.yml +12 -0
  77. data/test/fixtures/products.yml +6 -0
  78. data/test/fixtures/reading.rb +4 -0
  79. data/test/fixtures/readings.yml +10 -0
  80. data/test/fixtures/reference_code.rb +7 -0
  81. data/test/fixtures/reference_codes.yml +28 -0
  82. data/test/fixtures/reference_type.rb +7 -0
  83. data/test/fixtures/reference_types.yml +9 -0
  84. data/test/fixtures/street.rb +3 -0
  85. data/test/fixtures/streets.yml +15 -0
  86. data/test/fixtures/suburb.rb +6 -0
  87. data/test/fixtures/suburbs.yml +9 -0
  88. data/test/fixtures/tariff.rb +6 -0
  89. data/test/fixtures/tariffs.yml +13 -0
  90. data/test/fixtures/user.rb +10 -0
  91. data/test/fixtures/users.yml +6 -0
  92. data/test/hash_tricks.rb +34 -0
  93. data/test/plugins/pagination.rb +405 -0
  94. data/test/plugins/pagination_helper.rb +135 -0
  95. data/test/test_associations.rb +160 -0
  96. data/test/test_attribute_methods.rb +22 -0
  97. data/test/test_attributes.rb +84 -0
  98. data/test/test_clone.rb +34 -0
  99. data/test/test_composite_arrays.rb +51 -0
  100. data/test/test_create.rb +68 -0
  101. data/test/test_delete.rb +96 -0
  102. data/test/test_dummy.rb +28 -0
  103. data/test/test_exists.rb +29 -0
  104. data/test/test_find.rb +73 -0
  105. data/test/test_ids.rb +97 -0
  106. data/test/test_miscellaneous.rb +39 -0
  107. data/test/test_pagination.rb +38 -0
  108. data/test/test_polymorphic.rb +31 -0
  109. data/test/test_santiago.rb +27 -0
  110. data/test/test_tutorial_examle.rb +26 -0
  111. data/test/test_update.rb +40 -0
  112. data/website/index.html +199 -0
  113. data/website/index.txt +159 -0
  114. data/website/javascripts/rounded_corners_lite.inc.js +285 -0
  115. data/website/stylesheets/screen.css +126 -0
  116. data/website/template.js +3 -0
  117. data/website/template.rhtml +53 -0
  118. data/website/version-raw.js +3 -0
  119. data/website/version-raw.txt +2 -0
  120. data/website/version.js +4 -0
  121. data/website/version.txt +3 -0
  122. metadata +180 -18
@@ -0,0 +1,3 @@
1
+ // Announcement JS file
2
+ var version = "2.2.2";
3
+ MagicAnnouncement.show('compositekeys', version);
@@ -0,0 +1,2 @@
1
+ h1. Announcement JS file
2
+ MagicAnnouncement.show('compositekeys', version);
@@ -0,0 +1,4 @@
1
+ // Version JS file
2
+ var version = "2.2.2";
3
+
4
+ document.write(" - " + version);
@@ -0,0 +1,3 @@
1
+ h1. Version JS file
2
+
3
+ document.write(" - " + version);
metadata CHANGED
@@ -1,33 +1,179 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mingusbabcock-composite_primary_keys
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.2
4
+ version: 2.2.2.1
5
5
  platform: ruby
6
6
  authors:
7
- - Richard Allaway
7
+ - Dr Nic Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
12
  date: 2009-06-03 00:00:00 -07:00
13
13
  default_executable:
14
- dependencies: []
15
-
16
- description:
17
- email: richard.allaway@gmail.com
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: activerecord
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 2.2.0
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: hoe
27
+ type: :development
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 1.12.2
34
+ version:
35
+ description: Composite key support for ActiveRecords (patched to see if the load 'active_record/associations.rb' fix will fix rails 2.3.2 problem)
36
+ email: drnicwilliams@gmail.com
18
37
  executables: []
19
38
 
20
39
  extensions: []
21
40
 
22
- extra_rdoc_files: []
23
-
24
- files: []
25
-
41
+ extra_rdoc_files:
42
+ - History.txt
43
+ - Manifest.txt
44
+ - README.txt
45
+ - README_DB2.txt
46
+ - website/index.txt
47
+ - website/version-raw.txt
48
+ - website/version.txt
49
+ files:
50
+ - History.txt
51
+ - Manifest.txt
52
+ - README.txt
53
+ - README_DB2.txt
54
+ - Rakefile
55
+ - init.rb
56
+ - install.rb
57
+ - lib/adapter_helper/base.rb
58
+ - lib/adapter_helper/mysql.rb
59
+ - lib/adapter_helper/oracle.rb
60
+ - lib/adapter_helper/postgresql.rb
61
+ - lib/adapter_helper/sqlite3.rb
62
+ - lib/composite_primary_keys.rb
63
+ - lib/composite_primary_keys/association_preload.rb
64
+ - lib/composite_primary_keys/associations.rb
65
+ - lib/composite_primary_keys/attribute_methods.rb
66
+ - lib/composite_primary_keys/base.rb
67
+ - lib/composite_primary_keys/calculations.rb
68
+ - lib/composite_primary_keys/composite_arrays.rb
69
+ - lib/composite_primary_keys/connection_adapters/ibm_db_adapter.rb
70
+ - lib/composite_primary_keys/connection_adapters/oracle_adapter.rb
71
+ - lib/composite_primary_keys/connection_adapters/postgresql_adapter.rb
72
+ - lib/composite_primary_keys/connection_adapters/sqlite3_adapter.rb
73
+ - lib/composite_primary_keys/fixtures.rb
74
+ - lib/composite_primary_keys/migration.rb
75
+ - lib/composite_primary_keys/reflection.rb
76
+ - lib/composite_primary_keys/version.rb
77
+ - loader.rb
78
+ - local/database_connections.rb.sample
79
+ - local/paths.rb.sample
80
+ - local/tasks.rb.sample
81
+ - scripts/console.rb
82
+ - scripts/txt2html
83
+ - scripts/txt2js
84
+ - tasks/activerecord_selection.rake
85
+ - tasks/databases.rake
86
+ - tasks/databases/mysql.rake
87
+ - tasks/databases/oracle.rake
88
+ - tasks/databases/postgresql.rake
89
+ - tasks/databases/sqlite3.rake
90
+ - tasks/deployment.rake
91
+ - tasks/local_setup.rake
92
+ - tasks/website.rake
93
+ - test/README_tests.txt
94
+ - test/abstract_unit.rb
95
+ - test/connections/native_ibm_db/connection.rb
96
+ - test/connections/native_mysql/connection.rb
97
+ - test/connections/native_oracle/connection.rb
98
+ - test/connections/native_postgresql/connection.rb
99
+ - test/connections/native_sqlite/connection.rb
100
+ - test/fixtures/article.rb
101
+ - test/fixtures/articles.yml
102
+ - test/fixtures/comment.rb
103
+ - test/fixtures/comments.yml
104
+ - test/fixtures/db_definitions/db2-create-tables.sql
105
+ - test/fixtures/db_definitions/db2-drop-tables.sql
106
+ - test/fixtures/db_definitions/mysql.sql
107
+ - test/fixtures/db_definitions/oracle.drop.sql
108
+ - test/fixtures/db_definitions/oracle.sql
109
+ - test/fixtures/db_definitions/postgresql.sql
110
+ - test/fixtures/db_definitions/sqlite.sql
111
+ - test/fixtures/department.rb
112
+ - test/fixtures/departments.yml
113
+ - test/fixtures/employee.rb
114
+ - test/fixtures/employees.yml
115
+ - test/fixtures/group.rb
116
+ - test/fixtures/groups.yml
117
+ - test/fixtures/hack.rb
118
+ - test/fixtures/hacks.yml
119
+ - test/fixtures/membership.rb
120
+ - test/fixtures/membership_status.rb
121
+ - test/fixtures/membership_statuses.yml
122
+ - test/fixtures/memberships.yml
123
+ - test/fixtures/product.rb
124
+ - test/fixtures/product_tariff.rb
125
+ - test/fixtures/product_tariffs.yml
126
+ - test/fixtures/products.yml
127
+ - test/fixtures/reading.rb
128
+ - test/fixtures/readings.yml
129
+ - test/fixtures/reference_code.rb
130
+ - test/fixtures/reference_codes.yml
131
+ - test/fixtures/reference_type.rb
132
+ - test/fixtures/reference_types.yml
133
+ - test/fixtures/street.rb
134
+ - test/fixtures/streets.yml
135
+ - test/fixtures/suburb.rb
136
+ - test/fixtures/suburbs.yml
137
+ - test/fixtures/tariff.rb
138
+ - test/fixtures/tariffs.yml
139
+ - test/fixtures/user.rb
140
+ - test/fixtures/users.yml
141
+ - test/hash_tricks.rb
142
+ - test/plugins/pagination.rb
143
+ - test/plugins/pagination_helper.rb
144
+ - test/test_associations.rb
145
+ - test/test_attribute_methods.rb
146
+ - test/test_attributes.rb
147
+ - test/test_clone.rb
148
+ - test/test_composite_arrays.rb
149
+ - test/test_create.rb
150
+ - test/test_delete.rb
151
+ - test/test_dummy.rb
152
+ - test/test_exists.rb
153
+ - test/test_find.rb
154
+ - test/test_ids.rb
155
+ - test/test_miscellaneous.rb
156
+ - test/test_pagination.rb
157
+ - test/test_polymorphic.rb
158
+ - test/test_santiago.rb
159
+ - test/test_tutorial_examle.rb
160
+ - test/test_update.rb
161
+ - website/index.html
162
+ - website/index.txt
163
+ - website/javascripts/rounded_corners_lite.inc.js
164
+ - website/stylesheets/screen.css
165
+ - website/template.js
166
+ - website/template.rhtml
167
+ - website/version-raw.js
168
+ - website/version-raw.txt
169
+ - website/version.js
170
+ - website/version.txt
26
171
  has_rdoc: false
27
- homepage:
172
+ homepage: http://compositekeys.rubyforge.org
28
173
  post_install_message:
29
- rdoc_options: []
30
-
174
+ rdoc_options:
175
+ - --main
176
+ - README.txt
31
177
  require_paths:
32
178
  - lib
33
179
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -44,10 +190,26 @@ required_rubygems_version: !ruby/object:Gem::Requirement
44
190
  version:
45
191
  requirements: []
46
192
 
47
- rubyforge_project:
193
+ rubyforge_project: compositekeys
48
194
  rubygems_version: 1.2.0
49
195
  signing_key:
50
- specification_version: 2
51
- summary: Fork of Dr Nic's gem, from pallan's suggested change on the Google group, for compatibility with Rails 2.3.2'
52
- test_files: []
53
-
196
+ specification_version: 3
197
+ summary: Composite key support for ActiveRecords
198
+ test_files:
199
+ - test/test_associations.rb
200
+ - test/test_attribute_methods.rb
201
+ - test/test_attributes.rb
202
+ - test/test_clone.rb
203
+ - test/test_composite_arrays.rb
204
+ - test/test_create.rb
205
+ - test/test_delete.rb
206
+ - test/test_dummy.rb
207
+ - test/test_exists.rb
208
+ - test/test_find.rb
209
+ - test/test_ids.rb
210
+ - test/test_miscellaneous.rb
211
+ - test/test_pagination.rb
212
+ - test/test_polymorphic.rb
213
+ - test/test_santiago.rb
214
+ - test/test_tutorial_examle.rb
215
+ - test/test_update.rb