activerecord_authorails 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (270) hide show
  1. data/CHANGELOG +3043 -0
  2. data/README +360 -0
  3. data/RUNNING_UNIT_TESTS +64 -0
  4. data/Rakefile +226 -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 +85 -0
  9. data/install.rb +30 -0
  10. data/lib/active_record.rb +85 -0
  11. data/lib/active_record/acts/list.rb +244 -0
  12. data/lib/active_record/acts/nested_set.rb +211 -0
  13. data/lib/active_record/acts/tree.rb +89 -0
  14. data/lib/active_record/aggregations.rb +191 -0
  15. data/lib/active_record/associations.rb +1637 -0
  16. data/lib/active_record/associations/association_collection.rb +190 -0
  17. data/lib/active_record/associations/association_proxy.rb +158 -0
  18. data/lib/active_record/associations/belongs_to_association.rb +56 -0
  19. data/lib/active_record/associations/belongs_to_polymorphic_association.rb +50 -0
  20. data/lib/active_record/associations/has_and_belongs_to_many_association.rb +169 -0
  21. data/lib/active_record/associations/has_many_association.rb +210 -0
  22. data/lib/active_record/associations/has_many_through_association.rb +247 -0
  23. data/lib/active_record/associations/has_one_association.rb +80 -0
  24. data/lib/active_record/attribute_methods.rb +75 -0
  25. data/lib/active_record/base.rb +2164 -0
  26. data/lib/active_record/calculations.rb +270 -0
  27. data/lib/active_record/callbacks.rb +367 -0
  28. data/lib/active_record/connection_adapters/abstract/connection_specification.rb +279 -0
  29. data/lib/active_record/connection_adapters/abstract/database_statements.rb +130 -0
  30. data/lib/active_record/connection_adapters/abstract/quoting.rb +58 -0
  31. data/lib/active_record/connection_adapters/abstract/schema_definitions.rb +343 -0
  32. data/lib/active_record/connection_adapters/abstract/schema_statements.rb +310 -0
  33. data/lib/active_record/connection_adapters/abstract_adapter.rb +161 -0
  34. data/lib/active_record/connection_adapters/db2_adapter.rb +228 -0
  35. data/lib/active_record/connection_adapters/firebird_adapter.rb +728 -0
  36. data/lib/active_record/connection_adapters/frontbase_adapter.rb +861 -0
  37. data/lib/active_record/connection_adapters/mysql_adapter.rb +414 -0
  38. data/lib/active_record/connection_adapters/openbase_adapter.rb +350 -0
  39. data/lib/active_record/connection_adapters/oracle_adapter.rb +689 -0
  40. data/lib/active_record/connection_adapters/postgresql_adapter.rb +584 -0
  41. data/lib/active_record/connection_adapters/sqlite_adapter.rb +407 -0
  42. data/lib/active_record/connection_adapters/sqlserver_adapter.rb +591 -0
  43. data/lib/active_record/connection_adapters/sybase_adapter.rb +662 -0
  44. data/lib/active_record/deprecated_associations.rb +104 -0
  45. data/lib/active_record/deprecated_finders.rb +44 -0
  46. data/lib/active_record/fixtures.rb +628 -0
  47. data/lib/active_record/locking/optimistic.rb +106 -0
  48. data/lib/active_record/locking/pessimistic.rb +77 -0
  49. data/lib/active_record/migration.rb +394 -0
  50. data/lib/active_record/observer.rb +178 -0
  51. data/lib/active_record/query_cache.rb +64 -0
  52. data/lib/active_record/reflection.rb +222 -0
  53. data/lib/active_record/schema.rb +58 -0
  54. data/lib/active_record/schema_dumper.rb +149 -0
  55. data/lib/active_record/timestamp.rb +51 -0
  56. data/lib/active_record/transactions.rb +136 -0
  57. data/lib/active_record/validations.rb +843 -0
  58. data/lib/active_record/vendor/db2.rb +362 -0
  59. data/lib/active_record/vendor/mysql.rb +1214 -0
  60. data/lib/active_record/vendor/simple.rb +693 -0
  61. data/lib/active_record/version.rb +9 -0
  62. data/lib/active_record/wrappers/yaml_wrapper.rb +15 -0
  63. data/lib/active_record/wrappings.rb +58 -0
  64. data/lib/active_record/xml_serialization.rb +308 -0
  65. data/test/aaa_create_tables_test.rb +59 -0
  66. data/test/abstract_unit.rb +77 -0
  67. data/test/active_schema_test_mysql.rb +31 -0
  68. data/test/adapter_test.rb +87 -0
  69. data/test/adapter_test_sqlserver.rb +81 -0
  70. data/test/aggregations_test.rb +95 -0
  71. data/test/all.sh +8 -0
  72. data/test/ar_schema_test.rb +33 -0
  73. data/test/association_inheritance_reload.rb +14 -0
  74. data/test/associations/callbacks_test.rb +126 -0
  75. data/test/associations/cascaded_eager_loading_test.rb +138 -0
  76. data/test/associations/eager_test.rb +393 -0
  77. data/test/associations/extension_test.rb +42 -0
  78. data/test/associations/join_model_test.rb +497 -0
  79. data/test/associations_test.rb +1809 -0
  80. data/test/attribute_methods_test.rb +49 -0
  81. data/test/base_test.rb +1586 -0
  82. data/test/binary_test.rb +37 -0
  83. data/test/calculations_test.rb +219 -0
  84. data/test/callbacks_test.rb +377 -0
  85. data/test/class_inheritable_attributes_test.rb +32 -0
  86. data/test/column_alias_test.rb +17 -0
  87. data/test/connection_test_firebird.rb +8 -0
  88. data/test/connections/native_db2/connection.rb +25 -0
  89. data/test/connections/native_firebird/connection.rb +26 -0
  90. data/test/connections/native_frontbase/connection.rb +27 -0
  91. data/test/connections/native_mysql/connection.rb +24 -0
  92. data/test/connections/native_openbase/connection.rb +21 -0
  93. data/test/connections/native_oracle/connection.rb +27 -0
  94. data/test/connections/native_postgresql/connection.rb +23 -0
  95. data/test/connections/native_sqlite/connection.rb +34 -0
  96. data/test/connections/native_sqlite3/connection.rb +34 -0
  97. data/test/connections/native_sqlite3/in_memory_connection.rb +18 -0
  98. data/test/connections/native_sqlserver/connection.rb +23 -0
  99. data/test/connections/native_sqlserver_odbc/connection.rb +25 -0
  100. data/test/connections/native_sybase/connection.rb +23 -0
  101. data/test/copy_table_sqlite.rb +64 -0
  102. data/test/datatype_test_postgresql.rb +52 -0
  103. data/test/default_test_firebird.rb +16 -0
  104. data/test/defaults_test.rb +60 -0
  105. data/test/deprecated_associations_test.rb +396 -0
  106. data/test/deprecated_finder_test.rb +151 -0
  107. data/test/empty_date_time_test.rb +25 -0
  108. data/test/finder_test.rb +504 -0
  109. data/test/fixtures/accounts.yml +28 -0
  110. data/test/fixtures/author.rb +99 -0
  111. data/test/fixtures/author_favorites.yml +4 -0
  112. data/test/fixtures/authors.yml +7 -0
  113. data/test/fixtures/auto_id.rb +4 -0
  114. data/test/fixtures/bad_fixtures/attr_with_numeric_first_char +1 -0
  115. data/test/fixtures/bad_fixtures/attr_with_spaces +1 -0
  116. data/test/fixtures/bad_fixtures/blank_line +3 -0
  117. data/test/fixtures/bad_fixtures/duplicate_attributes +3 -0
  118. data/test/fixtures/bad_fixtures/missing_value +1 -0
  119. data/test/fixtures/binary.rb +2 -0
  120. data/test/fixtures/categories.yml +14 -0
  121. data/test/fixtures/categories/special_categories.yml +9 -0
  122. data/test/fixtures/categories/subsubdir/arbitrary_filename.yml +4 -0
  123. data/test/fixtures/categories_ordered.yml +7 -0
  124. data/test/fixtures/categories_posts.yml +23 -0
  125. data/test/fixtures/categorization.rb +5 -0
  126. data/test/fixtures/categorizations.yml +17 -0
  127. data/test/fixtures/category.rb +20 -0
  128. data/test/fixtures/column_name.rb +3 -0
  129. data/test/fixtures/comment.rb +23 -0
  130. data/test/fixtures/comments.yml +59 -0
  131. data/test/fixtures/companies.yml +55 -0
  132. data/test/fixtures/company.rb +107 -0
  133. data/test/fixtures/company_in_module.rb +59 -0
  134. data/test/fixtures/computer.rb +3 -0
  135. data/test/fixtures/computers.yml +4 -0
  136. data/test/fixtures/course.rb +3 -0
  137. data/test/fixtures/courses.yml +7 -0
  138. data/test/fixtures/customer.rb +55 -0
  139. data/test/fixtures/customers.yml +17 -0
  140. data/test/fixtures/db_definitions/db2.drop.sql +32 -0
  141. data/test/fixtures/db_definitions/db2.sql +231 -0
  142. data/test/fixtures/db_definitions/db22.drop.sql +2 -0
  143. data/test/fixtures/db_definitions/db22.sql +5 -0
  144. data/test/fixtures/db_definitions/firebird.drop.sql +63 -0
  145. data/test/fixtures/db_definitions/firebird.sql +304 -0
  146. data/test/fixtures/db_definitions/firebird2.drop.sql +2 -0
  147. data/test/fixtures/db_definitions/firebird2.sql +6 -0
  148. data/test/fixtures/db_definitions/frontbase.drop.sql +32 -0
  149. data/test/fixtures/db_definitions/frontbase.sql +268 -0
  150. data/test/fixtures/db_definitions/frontbase2.drop.sql +1 -0
  151. data/test/fixtures/db_definitions/frontbase2.sql +4 -0
  152. data/test/fixtures/db_definitions/mysql.drop.sql +32 -0
  153. data/test/fixtures/db_definitions/mysql.sql +234 -0
  154. data/test/fixtures/db_definitions/mysql2.drop.sql +2 -0
  155. data/test/fixtures/db_definitions/mysql2.sql +5 -0
  156. data/test/fixtures/db_definitions/openbase.drop.sql +2 -0
  157. data/test/fixtures/db_definitions/openbase.sql +302 -0
  158. data/test/fixtures/db_definitions/openbase2.drop.sql +2 -0
  159. data/test/fixtures/db_definitions/openbase2.sql +7 -0
  160. data/test/fixtures/db_definitions/oracle.drop.sql +65 -0
  161. data/test/fixtures/db_definitions/oracle.sql +325 -0
  162. data/test/fixtures/db_definitions/oracle2.drop.sql +2 -0
  163. data/test/fixtures/db_definitions/oracle2.sql +6 -0
  164. data/test/fixtures/db_definitions/postgresql.drop.sql +37 -0
  165. data/test/fixtures/db_definitions/postgresql.sql +263 -0
  166. data/test/fixtures/db_definitions/postgresql2.drop.sql +2 -0
  167. data/test/fixtures/db_definitions/postgresql2.sql +5 -0
  168. data/test/fixtures/db_definitions/schema.rb +60 -0
  169. data/test/fixtures/db_definitions/sqlite.drop.sql +32 -0
  170. data/test/fixtures/db_definitions/sqlite.sql +215 -0
  171. data/test/fixtures/db_definitions/sqlite2.drop.sql +2 -0
  172. data/test/fixtures/db_definitions/sqlite2.sql +5 -0
  173. data/test/fixtures/db_definitions/sqlserver.drop.sql +34 -0
  174. data/test/fixtures/db_definitions/sqlserver.sql +243 -0
  175. data/test/fixtures/db_definitions/sqlserver2.drop.sql +2 -0
  176. data/test/fixtures/db_definitions/sqlserver2.sql +5 -0
  177. data/test/fixtures/db_definitions/sybase.drop.sql +34 -0
  178. data/test/fixtures/db_definitions/sybase.sql +218 -0
  179. data/test/fixtures/db_definitions/sybase2.drop.sql +4 -0
  180. data/test/fixtures/db_definitions/sybase2.sql +5 -0
  181. data/test/fixtures/default.rb +2 -0
  182. data/test/fixtures/developer.rb +52 -0
  183. data/test/fixtures/developers.yml +21 -0
  184. data/test/fixtures/developers_projects.yml +17 -0
  185. data/test/fixtures/developers_projects/david_action_controller +3 -0
  186. data/test/fixtures/developers_projects/david_active_record +3 -0
  187. data/test/fixtures/developers_projects/jamis_active_record +2 -0
  188. data/test/fixtures/edge.rb +5 -0
  189. data/test/fixtures/edges.yml +6 -0
  190. data/test/fixtures/entrant.rb +3 -0
  191. data/test/fixtures/entrants.yml +14 -0
  192. data/test/fixtures/fk_test_has_fk.yml +3 -0
  193. data/test/fixtures/fk_test_has_pk.yml +2 -0
  194. data/test/fixtures/flowers.jpg +0 -0
  195. data/test/fixtures/funny_jokes.yml +10 -0
  196. data/test/fixtures/joke.rb +6 -0
  197. data/test/fixtures/keyboard.rb +3 -0
  198. data/test/fixtures/legacy_thing.rb +3 -0
  199. data/test/fixtures/legacy_things.yml +3 -0
  200. data/test/fixtures/migrations/1_people_have_last_names.rb +9 -0
  201. data/test/fixtures/migrations/2_we_need_reminders.rb +12 -0
  202. data/test/fixtures/migrations/3_innocent_jointable.rb +12 -0
  203. data/test/fixtures/migrations_with_decimal/1_give_me_big_numbers.rb +15 -0
  204. data/test/fixtures/migrations_with_duplicate/1_people_have_last_names.rb +9 -0
  205. data/test/fixtures/migrations_with_duplicate/2_we_need_reminders.rb +12 -0
  206. data/test/fixtures/migrations_with_duplicate/3_foo.rb +7 -0
  207. data/test/fixtures/migrations_with_duplicate/3_innocent_jointable.rb +12 -0
  208. data/test/fixtures/migrations_with_missing_versions/1000_people_have_middle_names.rb +9 -0
  209. data/test/fixtures/migrations_with_missing_versions/1_people_have_last_names.rb +9 -0
  210. data/test/fixtures/migrations_with_missing_versions/3_we_need_reminders.rb +12 -0
  211. data/test/fixtures/migrations_with_missing_versions/4_innocent_jointable.rb +12 -0
  212. data/test/fixtures/mixed_case_monkey.rb +3 -0
  213. data/test/fixtures/mixed_case_monkeys.yml +6 -0
  214. data/test/fixtures/mixin.rb +63 -0
  215. data/test/fixtures/mixins.yml +127 -0
  216. data/test/fixtures/movie.rb +5 -0
  217. data/test/fixtures/movies.yml +7 -0
  218. data/test/fixtures/naked/csv/accounts.csv +1 -0
  219. data/test/fixtures/naked/yml/accounts.yml +1 -0
  220. data/test/fixtures/naked/yml/companies.yml +1 -0
  221. data/test/fixtures/naked/yml/courses.yml +1 -0
  222. data/test/fixtures/order.rb +4 -0
  223. data/test/fixtures/people.yml +3 -0
  224. data/test/fixtures/person.rb +4 -0
  225. data/test/fixtures/post.rb +58 -0
  226. data/test/fixtures/posts.yml +48 -0
  227. data/test/fixtures/project.rb +27 -0
  228. data/test/fixtures/projects.yml +7 -0
  229. data/test/fixtures/reader.rb +4 -0
  230. data/test/fixtures/readers.yml +4 -0
  231. data/test/fixtures/reply.rb +37 -0
  232. data/test/fixtures/subject.rb +4 -0
  233. data/test/fixtures/subscriber.rb +6 -0
  234. data/test/fixtures/subscribers/first +2 -0
  235. data/test/fixtures/subscribers/second +2 -0
  236. data/test/fixtures/tag.rb +7 -0
  237. data/test/fixtures/tagging.rb +6 -0
  238. data/test/fixtures/taggings.yml +18 -0
  239. data/test/fixtures/tags.yml +7 -0
  240. data/test/fixtures/task.rb +3 -0
  241. data/test/fixtures/tasks.yml +7 -0
  242. data/test/fixtures/topic.rb +25 -0
  243. data/test/fixtures/topics.yml +22 -0
  244. data/test/fixtures/vertex.rb +9 -0
  245. data/test/fixtures/vertices.yml +4 -0
  246. data/test/fixtures_test.rb +401 -0
  247. data/test/inheritance_test.rb +205 -0
  248. data/test/lifecycle_test.rb +137 -0
  249. data/test/locking_test.rb +190 -0
  250. data/test/method_scoping_test.rb +416 -0
  251. data/test/migration_test.rb +768 -0
  252. data/test/migration_test_firebird.rb +124 -0
  253. data/test/mixin_nested_set_test.rb +196 -0
  254. data/test/mixin_test.rb +550 -0
  255. data/test/modules_test.rb +34 -0
  256. data/test/multiple_db_test.rb +60 -0
  257. data/test/pk_test.rb +104 -0
  258. data/test/readonly_test.rb +107 -0
  259. data/test/reflection_test.rb +159 -0
  260. data/test/schema_authorization_test_postgresql.rb +75 -0
  261. data/test/schema_dumper_test.rb +96 -0
  262. data/test/schema_test_postgresql.rb +64 -0
  263. data/test/synonym_test_oracle.rb +17 -0
  264. data/test/table_name_test_sqlserver.rb +23 -0
  265. data/test/threaded_connections_test.rb +48 -0
  266. data/test/transactions_test.rb +230 -0
  267. data/test/unconnected_test.rb +32 -0
  268. data/test/validations_test.rb +1097 -0
  269. data/test/xml_serialization_test.rb +125 -0
  270. metadata +365 -0
@@ -0,0 +1,125 @@
1
+ require 'abstract_unit'
2
+ require 'fixtures/post'
3
+ require 'fixtures/author'
4
+
5
+ class Contact < ActiveRecord::Base
6
+ # mock out self.columns so no pesky db is needed for these tests
7
+ def self.columns() @columns ||= []; end
8
+ def self.column(name, sql_type = nil, default = nil, null = true)
9
+ columns << ActiveRecord::ConnectionAdapters::Column.new(name.to_s, default, sql_type.to_s, null)
10
+ end
11
+
12
+ column :name, :string
13
+ column :age, :integer
14
+ column :avatar, :binary
15
+ column :created_at, :datetime
16
+ column :awesome, :boolean
17
+ end
18
+
19
+ class XmlSerializationTest < Test::Unit::TestCase
20
+ def test_should_serialize_default_root
21
+ @xml = Contact.new.to_xml
22
+ assert_match %r{^<contact>}, @xml
23
+ assert_match %r{</contact>$}, @xml
24
+ end
25
+
26
+ def test_should_serialize_default_root_with_namespace
27
+ @xml = Contact.new.to_xml :namespace=>"http://xml.rubyonrails.org/contact"
28
+ assert_match %r{^<contact xmlns="http://xml.rubyonrails.org/contact">}, @xml
29
+ assert_match %r{</contact>$}, @xml
30
+ end
31
+
32
+ def test_should_serialize_custom_root
33
+ @xml = Contact.new.to_xml :root => 'xml_contact'
34
+ assert_match %r{^<xml-contact>}, @xml
35
+ assert_match %r{</xml-contact>$}, @xml
36
+ end
37
+
38
+ def test_should_allow_undasherized_tags
39
+ @xml = Contact.new.to_xml :root => 'xml_contact', :dasherize => false
40
+ assert_match %r{^<xml_contact>}, @xml
41
+ assert_match %r{</xml_contact>$}, @xml
42
+ assert_match %r{<created_at}, @xml
43
+ end
44
+
45
+ def test_should_allow_attribute_filtering
46
+ @xml = Contact.new.to_xml :only => [:age, :name]
47
+ assert_match %r{<name}, @xml
48
+ assert_match %r{<age}, @xml
49
+ assert_no_match %r{<created-at}, @xml
50
+
51
+ @xml = Contact.new.to_xml :except => [:age, :name]
52
+ assert_no_match %r{<name}, @xml
53
+ assert_no_match %r{<age}, @xml
54
+ assert_match %r{<created-at}, @xml
55
+ end
56
+ end
57
+
58
+ class DefaultXmlSerializationTest < Test::Unit::TestCase
59
+ def setup
60
+ @xml = Contact.new(:name => 'aaron stack', :age => 25, :avatar => 'binarydata', :created_at => Time.utc(2006, 8, 1), :awesome => false).to_xml
61
+ end
62
+
63
+ def test_should_serialize_string
64
+ assert_match %r{<name>aaron stack</name>}, @xml
65
+ end
66
+
67
+ def test_should_serialize_integer
68
+ assert_match %r{<age type="integer">25</age>}, @xml
69
+ end
70
+
71
+ def test_should_serialize_binary
72
+ assert_match %r{YmluYXJ5ZGF0YQ==\n</avatar>}, @xml
73
+ assert_match %r{<avatar(.*)(type="binary")}, @xml
74
+ assert_match %r{<avatar(.*)(encoding="base64")}, @xml
75
+ end
76
+
77
+ def test_should_serialize_datetime
78
+ assert_match %r{<created-at type=\"datetime\">2006-08-01T00:00:00Z</created-at>}, @xml
79
+ end
80
+
81
+ def test_should_serialize_boolean
82
+ assert_match %r{<awesome type=\"boolean\">false</awesome>}, @xml
83
+ end
84
+ end
85
+
86
+ class NilXmlSerializationTest < Test::Unit::TestCase
87
+ def setup
88
+ @xml = Contact.new.to_xml(:root => 'xml_contact')
89
+ end
90
+
91
+ def test_should_serialize_string
92
+ assert_match %r{<name></name>}, @xml
93
+ end
94
+
95
+ def test_should_serialize_integer
96
+ assert_match %r{<age type="integer"></age>}, @xml
97
+ end
98
+
99
+ def test_should_serialize_binary
100
+ assert_match %r{></avatar>}, @xml
101
+ assert_match %r{<avatar(.*)(type="binary")}, @xml
102
+ assert_match %r{<avatar(.*)(encoding="base64")}, @xml
103
+ end
104
+
105
+ def test_should_serialize_datetime
106
+ assert_match %r{<created-at type=\"datetime\"></created-at>}, @xml
107
+ end
108
+
109
+ def test_should_serialize_boolean
110
+ assert_match %r{<awesome type=\"boolean\"></awesome>}, @xml
111
+ end
112
+ end
113
+
114
+ class DatabaseConnectedXmlSerializationTest < Test::Unit::TestCase
115
+ fixtures :authors, :posts
116
+ # to_xml used to mess with the hash the user provided which
117
+ # caused the builder to be reused
118
+ def test_passing_hash_shouldnt_reuse_builder
119
+ options = {:include=>:posts}
120
+ david = authors(:david)
121
+ first_xml_size = david.to_xml(options).size
122
+ second_xml_size = david.to_xml(options).size
123
+ assert_equal first_xml_size, second_xml_size
124
+ end
125
+ end
metadata ADDED
@@ -0,0 +1,365 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: activerecord_authorails
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Alessandro Montebello
8
+ autorequire: active_record
9
+ bindir: bin
10
+ cert_chain:
11
+ date: 2008-06-06 00:00:00 +02:00
12
+ default_executable:
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: activesupport
16
+ version_requirement:
17
+ version_requirements: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ - - "="
20
+ - !ruby/object:Gem::Version
21
+ version: 1.4.2
22
+ version:
23
+ description: Implements the ActiveRecord pattern (Fowler, PoEAA) for AuthoRails 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.
24
+ email: alexpescara@yahoo.it
25
+ executables: []
26
+
27
+ extensions: []
28
+
29
+ extra_rdoc_files:
30
+ - README
31
+ files:
32
+ - Rakefile
33
+ - install.rb
34
+ - README
35
+ - RUNNING_UNIT_TESTS
36
+ - CHANGELOG
37
+ - lib/active_record
38
+ - lib/active_record.rb
39
+ - lib/active_record/acts
40
+ - lib/active_record/aggregations.rb
41
+ - lib/active_record/associations
42
+ - lib/active_record/associations.rb
43
+ - lib/active_record/attribute_methods.rb
44
+ - lib/active_record/base.rb
45
+ - lib/active_record/calculations.rb
46
+ - lib/active_record/callbacks.rb
47
+ - lib/active_record/connection_adapters
48
+ - lib/active_record/deprecated_associations.rb
49
+ - lib/active_record/deprecated_finders.rb
50
+ - lib/active_record/fixtures.rb
51
+ - lib/active_record/locking
52
+ - lib/active_record/migration.rb
53
+ - lib/active_record/observer.rb
54
+ - lib/active_record/query_cache.rb
55
+ - lib/active_record/reflection.rb
56
+ - lib/active_record/schema.rb
57
+ - lib/active_record/schema_dumper.rb
58
+ - lib/active_record/timestamp.rb
59
+ - lib/active_record/transactions.rb
60
+ - lib/active_record/validations.rb
61
+ - lib/active_record/vendor
62
+ - lib/active_record/version.rb
63
+ - lib/active_record/wrappers
64
+ - lib/active_record/wrappings.rb
65
+ - lib/active_record/xml_serialization.rb
66
+ - lib/active_record/acts/list.rb
67
+ - lib/active_record/acts/nested_set.rb
68
+ - lib/active_record/acts/tree.rb
69
+ - lib/active_record/associations/association_collection.rb
70
+ - lib/active_record/associations/association_proxy.rb
71
+ - lib/active_record/associations/belongs_to_association.rb
72
+ - lib/active_record/associations/belongs_to_polymorphic_association.rb
73
+ - lib/active_record/associations/has_and_belongs_to_many_association.rb
74
+ - lib/active_record/associations/has_many_association.rb
75
+ - lib/active_record/associations/has_many_through_association.rb
76
+ - lib/active_record/associations/has_one_association.rb
77
+ - lib/active_record/connection_adapters/abstract
78
+ - lib/active_record/connection_adapters/abstract_adapter.rb
79
+ - lib/active_record/connection_adapters/db2_adapter.rb
80
+ - lib/active_record/connection_adapters/firebird_adapter.rb
81
+ - lib/active_record/connection_adapters/frontbase_adapter.rb
82
+ - lib/active_record/connection_adapters/mysql_adapter.rb
83
+ - lib/active_record/connection_adapters/openbase_adapter.rb
84
+ - lib/active_record/connection_adapters/oracle_adapter.rb
85
+ - lib/active_record/connection_adapters/postgresql_adapter.rb
86
+ - lib/active_record/connection_adapters/sqlite_adapter.rb
87
+ - lib/active_record/connection_adapters/sqlserver_adapter.rb
88
+ - lib/active_record/connection_adapters/sybase_adapter.rb
89
+ - lib/active_record/connection_adapters/abstract/connection_specification.rb
90
+ - lib/active_record/connection_adapters/abstract/database_statements.rb
91
+ - lib/active_record/connection_adapters/abstract/quoting.rb
92
+ - lib/active_record/connection_adapters/abstract/schema_definitions.rb
93
+ - lib/active_record/connection_adapters/abstract/schema_statements.rb
94
+ - lib/active_record/locking/optimistic.rb
95
+ - lib/active_record/locking/pessimistic.rb
96
+ - lib/active_record/vendor/db2.rb
97
+ - lib/active_record/vendor/mysql.rb
98
+ - lib/active_record/vendor/simple.rb
99
+ - lib/active_record/wrappers/yaml_wrapper.rb
100
+ - test/aaa_create_tables_test.rb
101
+ - test/abstract_unit.rb
102
+ - test/active_schema_test_mysql.rb
103
+ - test/adapter_test.rb
104
+ - test/adapter_test_sqlserver.rb
105
+ - test/aggregations_test.rb
106
+ - test/all.sh
107
+ - test/ar_schema_test.rb
108
+ - test/association_inheritance_reload.rb
109
+ - test/associations
110
+ - test/associations_test.rb
111
+ - test/attribute_methods_test.rb
112
+ - test/base_test.rb
113
+ - test/binary_test.rb
114
+ - test/calculations_test.rb
115
+ - test/callbacks_test.rb
116
+ - test/class_inheritable_attributes_test.rb
117
+ - test/column_alias_test.rb
118
+ - test/connection_test_firebird.rb
119
+ - test/connections
120
+ - test/copy_table_sqlite.rb
121
+ - test/datatype_test_postgresql.rb
122
+ - test/default_test_firebird.rb
123
+ - test/defaults_test.rb
124
+ - test/deprecated_associations_test.rb
125
+ - test/deprecated_finder_test.rb
126
+ - test/empty_date_time_test.rb
127
+ - test/finder_test.rb
128
+ - test/fixtures
129
+ - test/fixtures_test.rb
130
+ - test/inheritance_test.rb
131
+ - test/lifecycle_test.rb
132
+ - test/locking_test.rb
133
+ - test/method_scoping_test.rb
134
+ - test/migration_test.rb
135
+ - test/migration_test_firebird.rb
136
+ - test/mixin_nested_set_test.rb
137
+ - test/mixin_test.rb
138
+ - test/modules_test.rb
139
+ - test/multiple_db_test.rb
140
+ - test/pk_test.rb
141
+ - test/readonly_test.rb
142
+ - test/reflection_test.rb
143
+ - test/schema_authorization_test_postgresql.rb
144
+ - test/schema_dumper_test.rb
145
+ - test/schema_test_postgresql.rb
146
+ - test/synonym_test_oracle.rb
147
+ - test/table_name_test_sqlserver.rb
148
+ - test/threaded_connections_test.rb
149
+ - test/transactions_test.rb
150
+ - test/unconnected_test.rb
151
+ - test/validations_test.rb
152
+ - test/xml_serialization_test.rb
153
+ - test/associations/callbacks_test.rb
154
+ - test/associations/cascaded_eager_loading_test.rb
155
+ - test/associations/eager_test.rb
156
+ - test/associations/extension_test.rb
157
+ - test/associations/join_model_test.rb
158
+ - test/connections/native_db2
159
+ - test/connections/native_firebird
160
+ - test/connections/native_frontbase
161
+ - test/connections/native_mysql
162
+ - test/connections/native_openbase
163
+ - test/connections/native_oracle
164
+ - test/connections/native_postgresql
165
+ - test/connections/native_sqlite
166
+ - test/connections/native_sqlite3
167
+ - test/connections/native_sqlserver
168
+ - test/connections/native_sqlserver_odbc
169
+ - test/connections/native_sybase
170
+ - test/connections/native_db2/connection.rb
171
+ - test/connections/native_firebird/connection.rb
172
+ - test/connections/native_frontbase/connection.rb
173
+ - test/connections/native_mysql/connection.rb
174
+ - test/connections/native_openbase/connection.rb
175
+ - test/connections/native_oracle/connection.rb
176
+ - test/connections/native_postgresql/connection.rb
177
+ - test/connections/native_sqlite/connection.rb
178
+ - test/connections/native_sqlite3/connection.rb
179
+ - test/connections/native_sqlite3/in_memory_connection.rb
180
+ - test/connections/native_sqlserver/connection.rb
181
+ - test/connections/native_sqlserver_odbc/connection.rb
182
+ - test/connections/native_sybase/connection.rb
183
+ - test/fixtures/accounts.yml
184
+ - test/fixtures/author.rb
185
+ - test/fixtures/author_favorites.yml
186
+ - test/fixtures/authors.yml
187
+ - test/fixtures/auto_id.rb
188
+ - test/fixtures/bad_fixtures
189
+ - test/fixtures/binary.rb
190
+ - test/fixtures/categories
191
+ - test/fixtures/categories.yml
192
+ - test/fixtures/categories_ordered.yml
193
+ - test/fixtures/categories_posts.yml
194
+ - test/fixtures/categorization.rb
195
+ - test/fixtures/categorizations.yml
196
+ - test/fixtures/category.rb
197
+ - test/fixtures/column_name.rb
198
+ - test/fixtures/comment.rb
199
+ - test/fixtures/comments.yml
200
+ - test/fixtures/companies.yml
201
+ - test/fixtures/company.rb
202
+ - test/fixtures/company_in_module.rb
203
+ - test/fixtures/computer.rb
204
+ - test/fixtures/computers.yml
205
+ - test/fixtures/course.rb
206
+ - test/fixtures/courses.yml
207
+ - test/fixtures/customer.rb
208
+ - test/fixtures/customers.yml
209
+ - test/fixtures/db_definitions
210
+ - test/fixtures/default.rb
211
+ - test/fixtures/developer.rb
212
+ - test/fixtures/developers.yml
213
+ - test/fixtures/developers_projects
214
+ - test/fixtures/developers_projects.yml
215
+ - test/fixtures/edge.rb
216
+ - test/fixtures/edges.yml
217
+ - test/fixtures/entrant.rb
218
+ - test/fixtures/entrants.yml
219
+ - test/fixtures/fk_test_has_fk.yml
220
+ - test/fixtures/fk_test_has_pk.yml
221
+ - test/fixtures/flowers.jpg
222
+ - test/fixtures/funny_jokes.yml
223
+ - test/fixtures/joke.rb
224
+ - test/fixtures/keyboard.rb
225
+ - test/fixtures/legacy_thing.rb
226
+ - test/fixtures/legacy_things.yml
227
+ - test/fixtures/migrations
228
+ - test/fixtures/migrations_with_decimal
229
+ - test/fixtures/migrations_with_duplicate
230
+ - test/fixtures/migrations_with_missing_versions
231
+ - test/fixtures/mixed_case_monkey.rb
232
+ - test/fixtures/mixed_case_monkeys.yml
233
+ - test/fixtures/mixin.rb
234
+ - test/fixtures/mixins.yml
235
+ - test/fixtures/movie.rb
236
+ - test/fixtures/movies.yml
237
+ - test/fixtures/naked
238
+ - test/fixtures/order.rb
239
+ - test/fixtures/people.yml
240
+ - test/fixtures/person.rb
241
+ - test/fixtures/post.rb
242
+ - test/fixtures/posts.yml
243
+ - test/fixtures/project.rb
244
+ - test/fixtures/projects.yml
245
+ - test/fixtures/reader.rb
246
+ - test/fixtures/readers.yml
247
+ - test/fixtures/reply.rb
248
+ - test/fixtures/subject.rb
249
+ - test/fixtures/subscriber.rb
250
+ - test/fixtures/subscribers
251
+ - test/fixtures/tag.rb
252
+ - test/fixtures/tagging.rb
253
+ - test/fixtures/taggings.yml
254
+ - test/fixtures/tags.yml
255
+ - test/fixtures/task.rb
256
+ - test/fixtures/tasks.yml
257
+ - test/fixtures/topic.rb
258
+ - test/fixtures/topics.yml
259
+ - test/fixtures/vertex.rb
260
+ - test/fixtures/vertices.yml
261
+ - test/fixtures/bad_fixtures/attr_with_numeric_first_char
262
+ - test/fixtures/bad_fixtures/attr_with_spaces
263
+ - test/fixtures/bad_fixtures/blank_line
264
+ - test/fixtures/bad_fixtures/duplicate_attributes
265
+ - test/fixtures/bad_fixtures/missing_value
266
+ - test/fixtures/categories/special_categories.yml
267
+ - test/fixtures/categories/subsubdir
268
+ - test/fixtures/categories/subsubdir/arbitrary_filename.yml
269
+ - test/fixtures/db_definitions/db2.drop.sql
270
+ - test/fixtures/db_definitions/db2.sql
271
+ - test/fixtures/db_definitions/db22.drop.sql
272
+ - test/fixtures/db_definitions/db22.sql
273
+ - test/fixtures/db_definitions/firebird.drop.sql
274
+ - test/fixtures/db_definitions/firebird.sql
275
+ - test/fixtures/db_definitions/firebird2.drop.sql
276
+ - test/fixtures/db_definitions/firebird2.sql
277
+ - test/fixtures/db_definitions/frontbase.drop.sql
278
+ - test/fixtures/db_definitions/frontbase.sql
279
+ - test/fixtures/db_definitions/frontbase2.drop.sql
280
+ - test/fixtures/db_definitions/frontbase2.sql
281
+ - test/fixtures/db_definitions/mysql.drop.sql
282
+ - test/fixtures/db_definitions/mysql.sql
283
+ - test/fixtures/db_definitions/mysql2.drop.sql
284
+ - test/fixtures/db_definitions/mysql2.sql
285
+ - test/fixtures/db_definitions/openbase.drop.sql
286
+ - test/fixtures/db_definitions/openbase.sql
287
+ - test/fixtures/db_definitions/openbase2.drop.sql
288
+ - test/fixtures/db_definitions/openbase2.sql
289
+ - test/fixtures/db_definitions/oracle.drop.sql
290
+ - test/fixtures/db_definitions/oracle.sql
291
+ - test/fixtures/db_definitions/oracle2.drop.sql
292
+ - test/fixtures/db_definitions/oracle2.sql
293
+ - test/fixtures/db_definitions/postgresql.drop.sql
294
+ - test/fixtures/db_definitions/postgresql.sql
295
+ - test/fixtures/db_definitions/postgresql2.drop.sql
296
+ - test/fixtures/db_definitions/postgresql2.sql
297
+ - test/fixtures/db_definitions/schema.rb
298
+ - test/fixtures/db_definitions/sqlite.drop.sql
299
+ - test/fixtures/db_definitions/sqlite.sql
300
+ - test/fixtures/db_definitions/sqlite2.drop.sql
301
+ - test/fixtures/db_definitions/sqlite2.sql
302
+ - test/fixtures/db_definitions/sqlserver.drop.sql
303
+ - test/fixtures/db_definitions/sqlserver.sql
304
+ - test/fixtures/db_definitions/sqlserver2.drop.sql
305
+ - test/fixtures/db_definitions/sqlserver2.sql
306
+ - test/fixtures/db_definitions/sybase.drop.sql
307
+ - test/fixtures/db_definitions/sybase.sql
308
+ - test/fixtures/db_definitions/sybase2.drop.sql
309
+ - test/fixtures/db_definitions/sybase2.sql
310
+ - test/fixtures/developers_projects/david_action_controller
311
+ - test/fixtures/developers_projects/david_active_record
312
+ - test/fixtures/developers_projects/jamis_active_record
313
+ - test/fixtures/migrations/1_people_have_last_names.rb
314
+ - test/fixtures/migrations/2_we_need_reminders.rb
315
+ - test/fixtures/migrations/3_innocent_jointable.rb
316
+ - test/fixtures/migrations_with_decimal/1_give_me_big_numbers.rb
317
+ - test/fixtures/migrations_with_duplicate/1_people_have_last_names.rb
318
+ - test/fixtures/migrations_with_duplicate/2_we_need_reminders.rb
319
+ - test/fixtures/migrations_with_duplicate/3_foo.rb
320
+ - test/fixtures/migrations_with_duplicate/3_innocent_jointable.rb
321
+ - test/fixtures/migrations_with_missing_versions/1000_people_have_middle_names.rb
322
+ - test/fixtures/migrations_with_missing_versions/1_people_have_last_names.rb
323
+ - test/fixtures/migrations_with_missing_versions/3_we_need_reminders.rb
324
+ - test/fixtures/migrations_with_missing_versions/4_innocent_jointable.rb
325
+ - test/fixtures/naked/csv
326
+ - test/fixtures/naked/yml
327
+ - test/fixtures/naked/csv/accounts.csv
328
+ - test/fixtures/naked/yml/accounts.yml
329
+ - test/fixtures/naked/yml/companies.yml
330
+ - test/fixtures/naked/yml/courses.yml
331
+ - test/fixtures/subscribers/first
332
+ - test/fixtures/subscribers/second
333
+ - examples/associations.png
334
+ - examples/associations.rb
335
+ - examples/shared_setup.rb
336
+ - examples/validation.rb
337
+ has_rdoc: true
338
+ homepage: http://www.alexpescara.altervista.org
339
+ post_install_message:
340
+ rdoc_options:
341
+ - --main
342
+ - README
343
+ require_paths:
344
+ - lib
345
+ required_ruby_version: !ruby/object:Gem::Requirement
346
+ requirements:
347
+ - - ">"
348
+ - !ruby/object:Gem::Version
349
+ version: 0.0.0
350
+ version:
351
+ required_rubygems_version: !ruby/object:Gem::Requirement
352
+ requirements:
353
+ - - ">="
354
+ - !ruby/object:Gem::Version
355
+ version: "0"
356
+ version:
357
+ requirements: []
358
+
359
+ rubyforge_project: activerecord_authorails
360
+ rubygems_version: 1.0.1
361
+ signing_key:
362
+ specification_version: 1
363
+ summary: Implements the ActiveRecord pattern for AuthoRails ORM.
364
+ test_files: []
365
+