activerecord 1.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activerecord might be problematic. Click here for more details.

Files changed (106) hide show
  1. data/CHANGELOG +581 -0
  2. data/README +361 -0
  3. data/RUNNING_UNIT_TESTS +36 -0
  4. data/dev-utils/eval_debugger.rb +9 -0
  5. data/examples/associations.png +0 -0
  6. data/examples/associations.rb +87 -0
  7. data/examples/shared_setup.rb +15 -0
  8. data/examples/validation.rb +88 -0
  9. data/install.rb +60 -0
  10. data/lib/active_record.rb +48 -0
  11. data/lib/active_record/aggregations.rb +165 -0
  12. data/lib/active_record/associations.rb +536 -0
  13. data/lib/active_record/associations/association_collection.rb +70 -0
  14. data/lib/active_record/associations/has_and_belongs_to_many_association.rb +46 -0
  15. data/lib/active_record/associations/has_many_association.rb +104 -0
  16. data/lib/active_record/base.rb +985 -0
  17. data/lib/active_record/callbacks.rb +337 -0
  18. data/lib/active_record/connection_adapters/abstract_adapter.rb +326 -0
  19. data/lib/active_record/connection_adapters/mysql_adapter.rb +131 -0
  20. data/lib/active_record/connection_adapters/postgresql_adapter.rb +177 -0
  21. data/lib/active_record/connection_adapters/sqlite_adapter.rb +107 -0
  22. data/lib/active_record/deprecated_associations.rb +70 -0
  23. data/lib/active_record/fixtures.rb +172 -0
  24. data/lib/active_record/observer.rb +71 -0
  25. data/lib/active_record/reflection.rb +126 -0
  26. data/lib/active_record/support/class_attribute_accessors.rb +43 -0
  27. data/lib/active_record/support/class_inheritable_attributes.rb +37 -0
  28. data/lib/active_record/support/clean_logger.rb +10 -0
  29. data/lib/active_record/support/inflector.rb +70 -0
  30. data/lib/active_record/transactions.rb +102 -0
  31. data/lib/active_record/validations.rb +205 -0
  32. data/lib/active_record/vendor/mysql.rb +1117 -0
  33. data/lib/active_record/vendor/simple.rb +702 -0
  34. data/lib/active_record/wrappers/yaml_wrapper.rb +15 -0
  35. data/lib/active_record/wrappings.rb +59 -0
  36. data/rakefile +122 -0
  37. data/test/abstract_unit.rb +16 -0
  38. data/test/aggregations_test.rb +34 -0
  39. data/test/all.sh +8 -0
  40. data/test/associations_test.rb +477 -0
  41. data/test/base_test.rb +513 -0
  42. data/test/class_inheritable_attributes_test.rb +33 -0
  43. data/test/connections/native_mysql/connection.rb +24 -0
  44. data/test/connections/native_postgresql/connection.rb +24 -0
  45. data/test/connections/native_sqlite/connection.rb +24 -0
  46. data/test/deprecated_associations_test.rb +336 -0
  47. data/test/finder_test.rb +67 -0
  48. data/test/fixtures/accounts/signals37 +3 -0
  49. data/test/fixtures/accounts/unknown +2 -0
  50. data/test/fixtures/auto_id.rb +4 -0
  51. data/test/fixtures/column_name.rb +3 -0
  52. data/test/fixtures/companies/first_client +6 -0
  53. data/test/fixtures/companies/first_firm +4 -0
  54. data/test/fixtures/companies/second_client +6 -0
  55. data/test/fixtures/company.rb +37 -0
  56. data/test/fixtures/company_in_module.rb +33 -0
  57. data/test/fixtures/course.rb +3 -0
  58. data/test/fixtures/courses/java +2 -0
  59. data/test/fixtures/courses/ruby +2 -0
  60. data/test/fixtures/customer.rb +30 -0
  61. data/test/fixtures/customers/david +6 -0
  62. data/test/fixtures/db_definitions/mysql.sql +96 -0
  63. data/test/fixtures/db_definitions/mysql2.sql +4 -0
  64. data/test/fixtures/db_definitions/postgresql.sql +113 -0
  65. data/test/fixtures/db_definitions/postgresql2.sql +4 -0
  66. data/test/fixtures/db_definitions/sqlite.sql +85 -0
  67. data/test/fixtures/db_definitions/sqlite2.sql +4 -0
  68. data/test/fixtures/default.rb +2 -0
  69. data/test/fixtures/developer.rb +8 -0
  70. data/test/fixtures/developers/david +2 -0
  71. data/test/fixtures/developers/jamis +2 -0
  72. data/test/fixtures/developers_projects/david_action_controller +2 -0
  73. data/test/fixtures/developers_projects/david_active_record +2 -0
  74. data/test/fixtures/developers_projects/jamis_active_record +2 -0
  75. data/test/fixtures/entrant.rb +3 -0
  76. data/test/fixtures/entrants/first +3 -0
  77. data/test/fixtures/entrants/second +3 -0
  78. data/test/fixtures/entrants/third +3 -0
  79. data/test/fixtures/fixture_database.sqlite +0 -0
  80. data/test/fixtures/fixture_database_2.sqlite +0 -0
  81. data/test/fixtures/movie.rb +5 -0
  82. data/test/fixtures/movies/first +2 -0
  83. data/test/fixtures/movies/second +2 -0
  84. data/test/fixtures/project.rb +3 -0
  85. data/test/fixtures/projects/action_controller +2 -0
  86. data/test/fixtures/projects/active_record +2 -0
  87. data/test/fixtures/reply.rb +21 -0
  88. data/test/fixtures/subscriber.rb +5 -0
  89. data/test/fixtures/subscribers/first +2 -0
  90. data/test/fixtures/subscribers/second +2 -0
  91. data/test/fixtures/topic.rb +20 -0
  92. data/test/fixtures/topics/first +9 -0
  93. data/test/fixtures/topics/second +8 -0
  94. data/test/fixtures_test.rb +20 -0
  95. data/test/inflector_test.rb +104 -0
  96. data/test/inheritance_test.rb +125 -0
  97. data/test/lifecycle_test.rb +110 -0
  98. data/test/modules_test.rb +21 -0
  99. data/test/multiple_db_test.rb +46 -0
  100. data/test/pk_test.rb +57 -0
  101. data/test/reflection_test.rb +78 -0
  102. data/test/thread_safety_test.rb +33 -0
  103. data/test/transactions_test.rb +83 -0
  104. data/test/unconnected_test.rb +24 -0
  105. data/test/validations_test.rb +126 -0
  106. metadata +166 -0
metadata ADDED
@@ -0,0 +1,166 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.8.1
3
+ specification_version: 1
4
+ name: activerecord
5
+ version: !ruby/object:Gem::Version
6
+ version: 1.0.0
7
+ date: 2004-10-25
8
+ summary: Implements the ActiveRecord pattern for ORM.
9
+ require_paths:
10
+ - lib
11
+ author: David Heinemeier Hansson
12
+ email: david@loudthinking.com
13
+ homepage: http://activerecord.rubyonrails.org
14
+ rubyforge_project: activerecord
15
+ description: "Implements the ActiveRecord pattern (Fowler, PoEAA) for ORM. It ties database tables and classes together for business objects, like Customer or Subscription, that can find, save, and destroy themselves without resorting to manual SQL."
16
+ autorequire: active_record
17
+ default_executable:
18
+ bindir: bin
19
+ has_rdoc: true
20
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
21
+ requirements:
22
+ -
23
+ - ">"
24
+ - !ruby/object:Gem::Version
25
+ version: 0.0.0
26
+ version:
27
+ platform: ruby
28
+ files:
29
+ - rakefile
30
+ - install.rb
31
+ - README
32
+ - RUNNING_UNIT_TESTS
33
+ - CHANGELOG
34
+ - lib/active_record
35
+ - lib/active_record.rb
36
+ - lib/active_record/aggregations.rb
37
+ - lib/active_record/associations
38
+ - lib/active_record/associations.rb
39
+ - lib/active_record/base.rb
40
+ - lib/active_record/callbacks.rb
41
+ - lib/active_record/connection_adapters
42
+ - lib/active_record/deprecated_associations.rb
43
+ - lib/active_record/fixtures.rb
44
+ - lib/active_record/observer.rb
45
+ - lib/active_record/reflection.rb
46
+ - lib/active_record/support
47
+ - lib/active_record/transactions.rb
48
+ - lib/active_record/validations.rb
49
+ - lib/active_record/vendor
50
+ - lib/active_record/wrappers
51
+ - lib/active_record/wrappings.rb
52
+ - lib/active_record/associations/association_collection.rb
53
+ - lib/active_record/associations/has_and_belongs_to_many_association.rb
54
+ - lib/active_record/associations/has_many_association.rb
55
+ - lib/active_record/connection_adapters/abstract_adapter.rb
56
+ - lib/active_record/connection_adapters/mysql_adapter.rb
57
+ - lib/active_record/connection_adapters/postgresql_adapter.rb
58
+ - lib/active_record/connection_adapters/sqlite_adapter.rb
59
+ - lib/active_record/support/class_attribute_accessors.rb
60
+ - lib/active_record/support/class_inheritable_attributes.rb
61
+ - lib/active_record/support/clean_logger.rb
62
+ - lib/active_record/support/inflector.rb
63
+ - lib/active_record/vendor/mysql.rb
64
+ - lib/active_record/vendor/simple.rb
65
+ - lib/active_record/wrappers/yaml_wrapper.rb
66
+ - test/abstract_unit.rb
67
+ - test/aggregations_test.rb
68
+ - test/all.sh
69
+ - test/associations_test.rb
70
+ - test/base_test.rb
71
+ - test/class_inheritable_attributes_test.rb
72
+ - test/connections
73
+ - test/deprecated_associations_test.rb
74
+ - test/finder_test.rb
75
+ - test/fixtures
76
+ - test/fixtures_test.rb
77
+ - test/inflector_test.rb
78
+ - test/inheritance_test.rb
79
+ - test/lifecycle_test.rb
80
+ - test/modules_test.rb
81
+ - test/multiple_db_test.rb
82
+ - test/pk_test.rb
83
+ - test/reflection_test.rb
84
+ - test/thread_safety_test.rb
85
+ - test/transactions_test.rb
86
+ - test/unconnected_test.rb
87
+ - test/validations_test.rb
88
+ - test/connections/native_mysql
89
+ - test/connections/native_postgresql
90
+ - test/connections/native_sqlite
91
+ - test/connections/native_mysql/connection.rb
92
+ - test/connections/native_postgresql/connection.rb
93
+ - test/connections/native_sqlite/connection.rb
94
+ - test/fixtures/accounts
95
+ - test/fixtures/auto_id.rb
96
+ - test/fixtures/column_name.rb
97
+ - test/fixtures/companies
98
+ - test/fixtures/company.rb
99
+ - test/fixtures/company_in_module.rb
100
+ - test/fixtures/course.rb
101
+ - test/fixtures/courses
102
+ - test/fixtures/customer.rb
103
+ - test/fixtures/customers
104
+ - test/fixtures/db_definitions
105
+ - test/fixtures/default.rb
106
+ - test/fixtures/developer.rb
107
+ - test/fixtures/developers
108
+ - test/fixtures/developers_projects
109
+ - test/fixtures/entrant.rb
110
+ - test/fixtures/entrants
111
+ - test/fixtures/fixture_database.sqlite
112
+ - test/fixtures/fixture_database_2.sqlite
113
+ - test/fixtures/movie.rb
114
+ - test/fixtures/movies
115
+ - test/fixtures/project.rb
116
+ - test/fixtures/projects
117
+ - test/fixtures/reply.rb
118
+ - test/fixtures/subscriber.rb
119
+ - test/fixtures/subscribers
120
+ - test/fixtures/topic.rb
121
+ - test/fixtures/topics
122
+ - test/fixtures/accounts/signals37
123
+ - test/fixtures/accounts/unknown
124
+ - test/fixtures/companies/first_client
125
+ - test/fixtures/companies/first_firm
126
+ - test/fixtures/companies/second_client
127
+ - test/fixtures/courses/java
128
+ - test/fixtures/courses/ruby
129
+ - test/fixtures/customers/david
130
+ - test/fixtures/db_definitions/mysql.sql
131
+ - test/fixtures/db_definitions/mysql2.sql
132
+ - test/fixtures/db_definitions/postgresql.sql
133
+ - test/fixtures/db_definitions/postgresql2.sql
134
+ - test/fixtures/db_definitions/sqlite.sql
135
+ - test/fixtures/db_definitions/sqlite2.sql
136
+ - test/fixtures/developers/david
137
+ - test/fixtures/developers/jamis
138
+ - test/fixtures/developers_projects/david_action_controller
139
+ - test/fixtures/developers_projects/david_active_record
140
+ - test/fixtures/developers_projects/jamis_active_record
141
+ - test/fixtures/entrants/first
142
+ - test/fixtures/entrants/second
143
+ - test/fixtures/entrants/third
144
+ - test/fixtures/movies/first
145
+ - test/fixtures/movies/second
146
+ - test/fixtures/projects/action_controller
147
+ - test/fixtures/projects/active_record
148
+ - test/fixtures/subscribers/first
149
+ - test/fixtures/subscribers/second
150
+ - test/fixtures/topics/first
151
+ - test/fixtures/topics/second
152
+ - examples/associations.png
153
+ - examples/associations.rb
154
+ - examples/shared_setup.rb
155
+ - examples/validation.rb
156
+ - dev-utils/eval_debugger.rb
157
+ test_files: []
158
+ rdoc_options:
159
+ - "--main"
160
+ - README
161
+ extra_rdoc_files:
162
+ - README
163
+ executables: []
164
+ extensions: []
165
+ requirements: []
166
+ dependencies: []