ibm_db 3.0.4 → 5.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (351) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGES +8 -1
  3. data/LICENSE +1 -1
  4. data/ParameterizedQueries README +6 -6
  5. data/README +38 -55
  6. data/ext/Makefile +266 -0
  7. data/ext/extconf.rb +34 -3
  8. data/ext/gil_release_version +3 -0
  9. data/ext/ibm_db.c +106 -111
  10. data/ext/ibm_db.o +0 -0
  11. data/ext/ibm_db.so +0 -0
  12. data/ext/mkmf.log +103 -0
  13. data/ext/ruby_ibm_db_cli.o +0 -0
  14. data/ext/unicode_support_version +3 -0
  15. data/lib/active_record/connection_adapters/ibm_db_adapter.rb +911 -527
  16. data/lib/active_record/connection_adapters/ibmdb_adapter.rb +4 -1
  17. data/test/active_record/connection_adapters/fake_adapter.rb +8 -5
  18. data/test/cases/adapter_test.rb +148 -58
  19. data/test/cases/adapters/mysql2/active_schema_test.rb +193 -0
  20. data/test/cases/adapters/mysql2/bind_parameter_test.rb +50 -0
  21. data/test/cases/adapters/mysql2/boolean_test.rb +100 -0
  22. data/test/cases/adapters/mysql2/case_sensitivity_test.rb +63 -0
  23. data/test/cases/adapters/mysql2/charset_collation_test.rb +54 -0
  24. data/test/cases/adapters/mysql2/connection_test.rb +210 -0
  25. data/test/cases/adapters/mysql2/datetime_precision_quoting_test.rb +45 -0
  26. data/test/cases/adapters/mysql2/enum_test.rb +26 -0
  27. data/test/cases/adapters/mysql2/explain_test.rb +21 -0
  28. data/test/cases/adapters/mysql2/json_test.rb +195 -0
  29. data/test/cases/adapters/mysql2/mysql2_adapter_test.rb +83 -0
  30. data/test/cases/adapters/mysql2/reserved_word_test.rb +152 -0
  31. data/test/cases/adapters/mysql2/schema_migrations_test.rb +59 -0
  32. data/test/cases/adapters/mysql2/schema_test.rb +126 -0
  33. data/test/cases/adapters/mysql2/sp_test.rb +36 -0
  34. data/test/cases/adapters/mysql2/sql_types_test.rb +14 -0
  35. data/test/cases/adapters/mysql2/table_options_test.rb +42 -0
  36. data/test/cases/adapters/mysql2/unsigned_type_test.rb +66 -0
  37. data/test/cases/adapters/postgresql/active_schema_test.rb +98 -0
  38. data/test/cases/adapters/postgresql/array_test.rb +339 -0
  39. data/test/cases/adapters/postgresql/bit_string_test.rb +82 -0
  40. data/test/cases/adapters/postgresql/bytea_test.rb +134 -0
  41. data/test/cases/adapters/postgresql/case_insensitive_test.rb +26 -0
  42. data/test/cases/adapters/postgresql/change_schema_test.rb +38 -0
  43. data/test/cases/adapters/postgresql/cidr_test.rb +25 -0
  44. data/test/cases/adapters/postgresql/citext_test.rb +78 -0
  45. data/test/cases/adapters/postgresql/collation_test.rb +53 -0
  46. data/test/cases/adapters/postgresql/composite_test.rb +132 -0
  47. data/test/cases/adapters/postgresql/connection_test.rb +257 -0
  48. data/test/cases/adapters/postgresql/datatype_test.rb +92 -0
  49. data/test/cases/adapters/postgresql/domain_test.rb +47 -0
  50. data/test/cases/adapters/postgresql/enum_test.rb +91 -0
  51. data/test/cases/adapters/postgresql/explain_test.rb +20 -0
  52. data/test/cases/adapters/postgresql/extension_migration_test.rb +63 -0
  53. data/test/cases/adapters/postgresql/full_text_test.rb +44 -0
  54. data/test/cases/adapters/postgresql/geometric_test.rb +378 -0
  55. data/test/cases/adapters/postgresql/hstore_test.rb +382 -0
  56. data/test/cases/adapters/postgresql/infinity_test.rb +69 -0
  57. data/test/cases/adapters/postgresql/integer_test.rb +25 -0
  58. data/test/cases/adapters/postgresql/json_test.rb +237 -0
  59. data/test/cases/adapters/postgresql/ltree_test.rb +53 -0
  60. data/test/cases/adapters/postgresql/money_test.rb +96 -0
  61. data/test/cases/adapters/postgresql/network_test.rb +94 -0
  62. data/test/cases/adapters/postgresql/numbers_test.rb +49 -0
  63. data/test/cases/adapters/postgresql/postgresql_adapter_test.rb +405 -0
  64. data/test/cases/adapters/postgresql/prepared_statements_test.rb +22 -0
  65. data/test/cases/adapters/postgresql/quoting_test.rb +44 -0
  66. data/test/cases/adapters/postgresql/range_test.rb +343 -0
  67. data/test/cases/adapters/postgresql/referential_integrity_test.rb +111 -0
  68. data/test/cases/adapters/postgresql/rename_table_test.rb +34 -0
  69. data/test/cases/adapters/postgresql/schema_authorization_test.rb +119 -0
  70. data/test/cases/adapters/postgresql/schema_test.rb +597 -0
  71. data/test/cases/adapters/postgresql/serial_test.rb +154 -0
  72. data/test/cases/adapters/postgresql/statement_pool_test.rb +41 -0
  73. data/test/cases/adapters/postgresql/timestamp_test.rb +90 -0
  74. data/test/cases/adapters/postgresql/type_lookup_test.rb +33 -0
  75. data/test/cases/adapters/postgresql/utils_test.rb +62 -0
  76. data/test/cases/adapters/postgresql/uuid_test.rb +294 -0
  77. data/test/cases/adapters/postgresql/xml_test.rb +54 -0
  78. data/test/cases/adapters/sqlite3/collation_test.rb +53 -0
  79. data/test/cases/adapters/sqlite3/copy_table_test.rb +98 -0
  80. data/test/cases/adapters/sqlite3/explain_test.rb +21 -0
  81. data/test/cases/adapters/sqlite3/quoting_test.rb +101 -0
  82. data/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb +441 -0
  83. data/test/cases/adapters/sqlite3/sqlite3_create_folder_test.rb +24 -0
  84. data/test/cases/adapters/sqlite3/statement_pool_test.rb +20 -0
  85. data/test/cases/aggregations_test.rb +11 -1
  86. data/test/cases/ar_schema_test.rb +35 -50
  87. data/test/cases/associations/association_scope_test.rb +1 -6
  88. data/test/cases/associations/belongs_to_associations_test.rb +122 -10
  89. data/test/cases/associations/bidirectional_destroy_dependencies_test.rb +41 -0
  90. data/test/cases/associations/callbacks_test.rb +5 -7
  91. data/test/cases/associations/cascaded_eager_loading_test.rb +1 -1
  92. data/test/cases/associations/eager_load_nested_include_test.rb +1 -3
  93. data/test/cases/associations/eager_test.rb +176 -73
  94. data/test/cases/associations/extension_test.rb +7 -2
  95. data/test/cases/associations/has_and_belongs_to_many_associations_test.rb +104 -32
  96. data/test/cases/associations/has_many_associations_test.rb +382 -43
  97. data/test/cases/associations/has_many_through_associations_test.rb +108 -41
  98. data/test/cases/associations/has_one_associations_test.rb +105 -8
  99. data/test/cases/associations/has_one_through_associations_test.rb +6 -3
  100. data/test/cases/associations/inner_join_association_test.rb +3 -3
  101. data/test/cases/associations/inverse_associations_test.rb +51 -11
  102. data/test/cases/associations/join_model_test.rb +59 -36
  103. data/test/cases/associations/left_outer_join_association_test.rb +88 -0
  104. data/test/cases/associations/nested_through_associations_test.rb +2 -2
  105. data/test/cases/associations/required_test.rb +25 -5
  106. data/test/cases/associations_test.rb +39 -34
  107. data/test/cases/attribute_decorators_test.rb +9 -8
  108. data/test/cases/attribute_methods/read_test.rb +5 -5
  109. data/test/cases/attribute_methods_test.rb +97 -40
  110. data/test/cases/attribute_set_test.rb +74 -4
  111. data/test/cases/attribute_test.rb +84 -18
  112. data/test/cases/attributes_test.rb +151 -34
  113. data/test/cases/autosave_association_test.rb +149 -36
  114. data/test/cases/base_test.rb +311 -236
  115. data/test/cases/batches_test.rb +299 -22
  116. data/test/cases/binary_test.rb +2 -10
  117. data/test/cases/bind_parameter_test.rb +76 -66
  118. data/test/cases/cache_key_test.rb +26 -0
  119. data/test/cases/calculations_test.rb +167 -15
  120. data/test/cases/callbacks_test.rb +161 -68
  121. data/test/cases/coders/json_test.rb +15 -0
  122. data/test/cases/collection_cache_key_test.rb +115 -0
  123. data/test/cases/column_definition_test.rb +26 -57
  124. data/test/cases/comment_test.rb +145 -0
  125. data/test/cases/connection_adapters/adapter_leasing_test.rb +5 -3
  126. data/test/cases/connection_adapters/connection_handler_test.rb +128 -21
  127. data/test/cases/connection_adapters/connection_specification_test.rb +1 -1
  128. data/test/cases/connection_adapters/merge_and_resolve_default_url_config_test.rb +0 -38
  129. data/test/cases/connection_adapters/mysql_type_lookup_test.rb +5 -1
  130. data/test/cases/connection_adapters/schema_cache_test.rb +8 -3
  131. data/test/cases/connection_adapters/type_lookup_test.rb +15 -7
  132. data/test/cases/connection_management_test.rb +46 -56
  133. data/test/cases/connection_pool_test.rb +195 -20
  134. data/test/cases/connection_specification/resolver_test.rb +15 -0
  135. data/test/cases/counter_cache_test.rb +10 -5
  136. data/test/cases/custom_locking_test.rb +1 -1
  137. data/test/cases/database_statements_test.rb +18 -3
  138. data/test/cases/{invalid_date_test.rb → date_test.rb} +13 -1
  139. data/test/cases/date_time_precision_test.rb +107 -0
  140. data/test/cases/defaults_test.rb +85 -89
  141. data/test/cases/dirty_test.rb +32 -44
  142. data/test/cases/disconnected_test.rb +4 -2
  143. data/test/cases/enum_test.rb +178 -24
  144. data/test/cases/errors_test.rb +16 -0
  145. data/test/cases/explain_test.rb +32 -21
  146. data/test/cases/finder_test.rb +279 -151
  147. data/test/cases/fixture_set/file_test.rb +18 -0
  148. data/test/cases/fixtures_test.rb +123 -32
  149. data/test/cases/forbidden_attributes_protection_test.rb +69 -3
  150. data/test/cases/helper.rb +10 -16
  151. data/test/cases/hot_compatibility_test.rb +89 -1
  152. data/test/cases/inheritance_test.rb +284 -53
  153. data/test/cases/integration_test.rb +23 -7
  154. data/test/cases/invalid_connection_test.rb +4 -2
  155. data/test/cases/invertible_migration_test.rb +124 -32
  156. data/test/cases/json_serialization_test.rb +11 -2
  157. data/test/cases/locking_test.rb +22 -6
  158. data/test/cases/log_subscriber_test.rb +106 -17
  159. data/test/cases/migration/change_schema_test.rb +118 -132
  160. data/test/cases/migration/change_table_test.rb +34 -2
  161. data/test/cases/migration/column_attributes_test.rb +7 -23
  162. data/test/cases/migration/column_positioning_test.rb +8 -8
  163. data/test/cases/migration/columns_test.rb +17 -11
  164. data/test/cases/migration/command_recorder_test.rb +47 -2
  165. data/test/cases/migration/compatibility_test.rb +118 -0
  166. data/test/cases/migration/create_join_table_test.rb +21 -12
  167. data/test/cases/migration/foreign_key_test.rb +68 -66
  168. data/test/cases/migration/index_test.rb +14 -12
  169. data/test/cases/migration/logger_test.rb +1 -1
  170. data/test/cases/migration/pending_migrations_test.rb +0 -1
  171. data/test/cases/migration/references_foreign_key_test.rb +114 -107
  172. data/test/cases/migration/references_index_test.rb +4 -4
  173. data/test/cases/migration/references_statements_test.rb +26 -6
  174. data/test/cases/migration/rename_table_test.rb +25 -25
  175. data/test/cases/migration_test.rb +279 -81
  176. data/test/cases/migrator_test.rb +91 -8
  177. data/test/cases/mixin_test.rb +0 -2
  178. data/test/cases/modules_test.rb +3 -4
  179. data/test/cases/multiparameter_attributes_test.rb +24 -2
  180. data/test/cases/multiple_db_test.rb +18 -11
  181. data/test/cases/nested_attributes_test.rb +74 -33
  182. data/test/cases/persistence_test.rb +102 -10
  183. data/test/cases/pooled_connections_test.rb +3 -3
  184. data/test/cases/primary_keys_test.rb +170 -31
  185. data/test/cases/query_cache_test.rb +216 -96
  186. data/test/cases/quoting_test.rb +65 -19
  187. data/test/cases/readonly_test.rb +2 -1
  188. data/test/cases/reflection_test.rb +77 -22
  189. data/test/cases/relation/delegation_test.rb +3 -8
  190. data/test/cases/relation/merging_test.rb +10 -14
  191. data/test/cases/relation/mutation_test.rb +42 -24
  192. data/test/cases/relation/or_test.rb +92 -0
  193. data/test/cases/relation/predicate_builder_test.rb +4 -2
  194. data/test/cases/relation/record_fetch_warning_test.rb +40 -0
  195. data/test/cases/relation/where_chain_test.rb +23 -99
  196. data/test/cases/relation/where_clause_test.rb +182 -0
  197. data/test/cases/relation/where_test.rb +45 -23
  198. data/test/cases/relation_test.rb +89 -58
  199. data/test/cases/relations_test.rb +249 -38
  200. data/test/cases/result_test.rb +10 -0
  201. data/test/cases/sanitize_test.rb +108 -15
  202. data/test/cases/schema_dumper_test.rb +119 -125
  203. data/test/cases/schema_loading_test.rb +52 -0
  204. data/test/cases/scoping/default_scoping_test.rb +113 -39
  205. data/test/cases/scoping/named_scoping_test.rb +46 -9
  206. data/test/cases/scoping/relation_scoping_test.rb +47 -4
  207. data/test/cases/secure_token_test.rb +32 -0
  208. data/test/cases/serialization_test.rb +1 -1
  209. data/test/cases/serialized_attribute_test.rb +93 -6
  210. data/test/cases/statement_cache_test.rb +38 -0
  211. data/test/cases/store_test.rb +2 -1
  212. data/test/cases/suppressor_test.rb +63 -0
  213. data/test/cases/tasks/database_tasks_test.rb +74 -8
  214. data/test/cases/tasks/mysql_rake_test.rb +143 -109
  215. data/test/cases/tasks/postgresql_rake_test.rb +71 -12
  216. data/test/cases/tasks/sqlite_rake_test.rb +30 -3
  217. data/test/cases/test_case.rb +28 -20
  218. data/test/cases/test_fixtures_test.rb +36 -0
  219. data/test/cases/time_precision_test.rb +103 -0
  220. data/test/cases/timestamp_test.rb +47 -14
  221. data/test/cases/touch_later_test.rb +121 -0
  222. data/test/cases/transaction_callbacks_test.rb +128 -62
  223. data/test/cases/transaction_isolation_test.rb +2 -2
  224. data/test/cases/transactions_test.rb +61 -43
  225. data/test/cases/type/adapter_specific_registry_test.rb +133 -0
  226. data/test/cases/type/date_time_test.rb +14 -0
  227. data/test/cases/type/integer_test.rb +2 -96
  228. data/test/cases/type/string_test.rb +0 -14
  229. data/test/cases/type_test.rb +39 -0
  230. data/test/cases/types_test.rb +1 -118
  231. data/test/cases/unconnected_test.rb +1 -1
  232. data/test/cases/validations/absence_validation_test.rb +73 -0
  233. data/test/cases/validations/association_validation_test.rb +13 -2
  234. data/test/cases/validations/i18n_validation_test.rb +6 -10
  235. data/test/cases/validations/length_validation_test.rb +62 -30
  236. data/test/cases/validations/presence_validation_test.rb +36 -1
  237. data/test/cases/validations/uniqueness_validation_test.rb +150 -36
  238. data/test/cases/validations_repair_helper.rb +2 -6
  239. data/test/cases/validations_test.rb +36 -7
  240. data/test/cases/view_test.rb +108 -5
  241. data/test/cases/yaml_serialization_test.rb +36 -1
  242. data/test/config.example.yml +97 -0
  243. data/test/fixtures/bad_posts.yml +9 -0
  244. data/test/fixtures/books.yml +20 -0
  245. data/test/fixtures/content.yml +3 -0
  246. data/test/fixtures/content_positions.yml +3 -0
  247. data/test/fixtures/dead_parrots.yml +5 -0
  248. data/test/fixtures/live_parrots.yml +4 -0
  249. data/test/fixtures/naked/yml/parrots.yml +2 -0
  250. data/test/fixtures/naked/yml/trees.yml +3 -0
  251. data/test/fixtures/nodes.yml +29 -0
  252. data/test/fixtures/other_comments.yml +6 -0
  253. data/test/fixtures/other_dogs.yml +2 -0
  254. data/test/fixtures/other_posts.yml +7 -0
  255. data/test/fixtures/price_estimates.yml +10 -1
  256. data/test/fixtures/trees.yml +3 -0
  257. data/test/migrations/10_urban/9_add_expressions.rb +1 -1
  258. data/test/migrations/decimal/1_give_me_big_numbers.rb +1 -1
  259. data/test/migrations/magic/1_currencies_have_symbols.rb +1 -1
  260. data/test/migrations/missing/1000_people_have_middle_names.rb +2 -2
  261. data/test/migrations/missing/1_people_have_last_names.rb +2 -2
  262. data/test/migrations/missing/3_we_need_reminders.rb +2 -2
  263. data/test/migrations/missing/4_innocent_jointable.rb +2 -2
  264. data/test/migrations/rename/1_we_need_things.rb +2 -2
  265. data/test/migrations/rename/2_rename_things.rb +2 -2
  266. data/test/migrations/to_copy/1_people_have_hobbies.rb +1 -1
  267. data/test/migrations/to_copy/2_people_have_descriptions.rb +1 -1
  268. data/test/migrations/to_copy2/1_create_articles.rb +1 -1
  269. data/test/migrations/to_copy2/2_create_comments.rb +1 -1
  270. data/test/migrations/to_copy_with_name_collision/1_people_have_hobbies.rb +1 -1
  271. data/test/migrations/to_copy_with_timestamps/20090101010101_people_have_hobbies.rb +1 -1
  272. data/test/migrations/to_copy_with_timestamps/20090101010202_people_have_descriptions.rb +1 -1
  273. data/test/migrations/to_copy_with_timestamps2/20090101010101_create_articles.rb +1 -1
  274. data/test/migrations/to_copy_with_timestamps2/20090101010202_create_comments.rb +1 -1
  275. data/test/migrations/valid/1_valid_people_have_last_names.rb +1 -1
  276. data/test/migrations/valid/2_we_need_reminders.rb +2 -2
  277. data/test/migrations/valid/3_innocent_jointable.rb +2 -2
  278. data/test/migrations/valid_with_subdirectories/1_valid_people_have_last_names.rb +1 -1
  279. data/test/migrations/valid_with_subdirectories/sub/2_we_need_reminders.rb +2 -2
  280. data/test/migrations/valid_with_subdirectories/sub1/3_innocent_jointable.rb +2 -2
  281. data/test/migrations/valid_with_timestamps/20100101010101_valid_with_timestamps_people_have_last_names.rb +1 -1
  282. data/test/migrations/valid_with_timestamps/20100201010101_valid_with_timestamps_we_need_reminders.rb +1 -1
  283. data/test/migrations/valid_with_timestamps/20100301010101_valid_with_timestamps_innocent_jointable.rb +1 -1
  284. data/test/migrations/version_check/20131219224947_migration_version_check.rb +1 -1
  285. data/test/models/admin/randomly_named_c1.rb +6 -2
  286. data/test/models/aircraft.rb +1 -0
  287. data/test/models/author.rb +4 -7
  288. data/test/models/bird.rb +1 -1
  289. data/test/models/book.rb +5 -0
  290. data/test/models/bulb.rb +2 -1
  291. data/test/models/car.rb +3 -0
  292. data/test/models/cat.rb +10 -0
  293. data/test/models/chef.rb +5 -0
  294. data/test/models/club.rb +2 -0
  295. data/test/models/comment.rb +17 -5
  296. data/test/models/company.rb +7 -2
  297. data/test/models/company_in_module.rb +1 -1
  298. data/test/models/contact.rb +1 -1
  299. data/test/models/content.rb +40 -0
  300. data/test/models/customer.rb +8 -2
  301. data/test/models/developer.rb +22 -0
  302. data/test/models/face.rb +1 -1
  303. data/test/models/guitar.rb +4 -0
  304. data/test/models/hotel.rb +5 -0
  305. data/test/models/member.rb +1 -0
  306. data/test/models/member_detail.rb +4 -3
  307. data/test/models/mentor.rb +3 -0
  308. data/test/models/mocktail_designer.rb +2 -0
  309. data/test/models/node.rb +5 -0
  310. data/test/models/non_primary_key.rb +2 -0
  311. data/test/models/notification.rb +3 -0
  312. data/test/models/other_dog.rb +5 -0
  313. data/test/models/owner.rb +4 -1
  314. data/test/models/parrot.rb +6 -7
  315. data/test/models/person.rb +0 -1
  316. data/test/models/pet.rb +3 -0
  317. data/test/models/pet_treasure.rb +6 -0
  318. data/test/models/pirate.rb +3 -3
  319. data/test/models/post.rb +18 -9
  320. data/test/models/project.rb +11 -0
  321. data/test/models/randomly_named_c1.rb +1 -1
  322. data/test/models/recipe.rb +3 -0
  323. data/test/models/ship.rb +8 -2
  324. data/test/models/tag.rb +6 -0
  325. data/test/models/topic.rb +2 -8
  326. data/test/models/tree.rb +3 -0
  327. data/test/models/tuning_peg.rb +4 -0
  328. data/test/models/user.rb +14 -0
  329. data/test/models/uuid_item.rb +6 -0
  330. data/test/schema/mysql2_specific_schema.rb +33 -23
  331. data/test/schema/oracle_specific_schema.rb +1 -4
  332. data/test/schema/postgresql_specific_schema.rb +36 -124
  333. data/test/schema/schema.rb +183 -64
  334. data/test/schema/schema.rb.original +1057 -0
  335. data/test/schema/sqlite_specific_schema.rb +1 -5
  336. data/test/support/connection.rb +1 -0
  337. data/test/support/schema_dumping_helper.rb +1 -1
  338. data/test/support/yaml_compatibility_fixtures/rails_4_1.yml +22 -0
  339. data/test/support/yaml_compatibility_fixtures/rails_4_2_0.yml +182 -0
  340. metadata +145 -26
  341. data/test/cases/associations/deprecated_counter_cache_on_has_many_through_test.rb +0 -26
  342. data/test/cases/attribute_methods/serialization_test.rb +0 -29
  343. data/test/cases/migration/change_schema_test - Copy.rb +0 -448
  344. data/test/cases/migration/foreign_key_test - Changed.rb +0 -325
  345. data/test/cases/migration/table_and_index_test.rb +0 -24
  346. data/test/cases/relation/where_test2.rb +0 -36
  347. data/test/cases/type/decimal_test.rb +0 -51
  348. data/test/cases/type/unsigned_integer_test.rb +0 -18
  349. data/test/cases/xml_serialization_test.rb +0 -457
  350. data/test/fixtures/naked/csv/accounts.csv +0 -1
  351. data/test/schema/mysql_specific_schema.rb +0 -70
@@ -1,8 +1,4 @@
1
1
  ActiveRecord::Schema.define do
2
- create_table :table_with_autoincrement, :force => true do |t|
3
- t.column :name, :string
4
- end
5
-
6
2
  execute "DROP TABLE fk_test_has_fk" rescue nil
7
3
  execute "DROP TABLE fk_test_has_pk" rescue nil
8
4
  execute <<_SQL
@@ -19,4 +15,4 @@ _SQL
19
15
  FOREIGN KEY ('fk_id') REFERENCES 'fk_test_has_pk'('pk_id')
20
16
  );
21
17
  _SQL
22
- end
18
+ end
@@ -2,6 +2,7 @@ require 'active_support/logger'
2
2
  require 'models/college'
3
3
  require 'models/course'
4
4
  require 'models/professor'
5
+ require "models/other_dog"
5
6
 
6
7
  module ARTest
7
8
  def self.connection_name
@@ -1,7 +1,7 @@
1
1
  module SchemaDumpingHelper
2
2
  def dump_table_schema(table, connection = ActiveRecord::Base.connection)
3
3
  old_ignore_tables = ActiveRecord::SchemaDumper.ignore_tables
4
- ActiveRecord::SchemaDumper.ignore_tables = connection.tables - [table]
4
+ ActiveRecord::SchemaDumper.ignore_tables = connection.data_sources - [table]
5
5
  stream = StringIO.new
6
6
  ActiveRecord::SchemaDumper.dump(ActiveRecord::Base.connection, stream)
7
7
  stream.string
@@ -0,0 +1,22 @@
1
+ --- !ruby/object:Topic
2
+ attributes:
3
+ id:
4
+ title: The First Topic
5
+ author_name: David
6
+ author_email_address: david@loudthinking.com
7
+ written_on: 2003-07-16 14:28:11.223300000 Z
8
+ bonus_time: 2000-01-01 14:28:00.000000000 Z
9
+ last_read: 2004-04-15
10
+ content: |
11
+ ---
12
+ :omg: :lol
13
+ important:
14
+ approved: false
15
+ replies_count: 1
16
+ unique_replies_count: 0
17
+ parent_id:
18
+ parent_title:
19
+ type:
20
+ group:
21
+ created_at: 2015-03-10 17:05:42.000000000 Z
22
+ updated_at: 2015-03-10 17:05:42.000000000 Z
@@ -0,0 +1,182 @@
1
+ --- !ruby/object:Topic
2
+ raw_attributes:
3
+ id: 1
4
+ title: The First Topic
5
+ author_name: David
6
+ author_email_address: david@loudthinking.com
7
+ written_on: '2003-07-16 14:28:11.223300'
8
+ bonus_time: '2005-01-30 14:28:00.000000'
9
+ last_read: '2004-04-15'
10
+ content: |
11
+ --- Have a nice day
12
+ ...
13
+ important:
14
+ approved: f
15
+ replies_count: 1
16
+ unique_replies_count: 0
17
+ parent_id:
18
+ parent_title:
19
+ type:
20
+ group:
21
+ created_at: '2015-03-10 17:44:41'
22
+ updated_at: '2015-03-10 17:44:41'
23
+ attributes: !ruby/object:ActiveRecord::AttributeSet
24
+ attributes: !ruby/object:ActiveRecord::LazyAttributeHash
25
+ types:
26
+ id: &5 !ruby/object:ActiveRecord::Type::Integer
27
+ precision:
28
+ scale:
29
+ limit:
30
+ range: !ruby/range
31
+ begin: -2147483648
32
+ end: 2147483648
33
+ excl: true
34
+ title: &6 !ruby/object:ActiveRecord::Type::String
35
+ precision:
36
+ scale:
37
+ limit: 250
38
+ author_name: &1 !ruby/object:ActiveRecord::Type::String
39
+ precision:
40
+ scale:
41
+ limit:
42
+ author_email_address: *1
43
+ written_on: &4 !ruby/object:ActiveRecord::Type::DateTime
44
+ precision:
45
+ scale:
46
+ limit:
47
+ bonus_time: &7 !ruby/object:ActiveRecord::Type::Time
48
+ precision:
49
+ scale:
50
+ limit:
51
+ last_read: &8 !ruby/object:ActiveRecord::Type::Date
52
+ precision:
53
+ scale:
54
+ limit:
55
+ content: !ruby/object:ActiveRecord::Type::Serialized
56
+ coder: &9 !ruby/object:ActiveRecord::Coders::YAMLColumn
57
+ object_class: !ruby/class 'Object'
58
+ subtype: &2 !ruby/object:ActiveRecord::Type::Text
59
+ precision:
60
+ scale:
61
+ limit:
62
+ important: *2
63
+ approved: &10 !ruby/object:ActiveRecord::Type::Boolean
64
+ precision:
65
+ scale:
66
+ limit:
67
+ replies_count: &3 !ruby/object:ActiveRecord::Type::Integer
68
+ precision:
69
+ scale:
70
+ limit:
71
+ range: !ruby/range
72
+ begin: -2147483648
73
+ end: 2147483648
74
+ excl: true
75
+ unique_replies_count: *3
76
+ parent_id: *3
77
+ parent_title: *1
78
+ type: *1
79
+ group: *1
80
+ created_at: *4
81
+ updated_at: *4
82
+ values:
83
+ id: 1
84
+ title: The First Topic
85
+ author_name: David
86
+ author_email_address: david@loudthinking.com
87
+ written_on: '2003-07-16 14:28:11.223300'
88
+ bonus_time: '2005-01-30 14:28:00.000000'
89
+ last_read: '2004-04-15'
90
+ content: |
91
+ --- Have a nice day
92
+ ...
93
+ important:
94
+ approved: f
95
+ replies_count: 1
96
+ unique_replies_count: 0
97
+ parent_id:
98
+ parent_title:
99
+ type:
100
+ group:
101
+ created_at: '2015-03-10 17:44:41'
102
+ updated_at: '2015-03-10 17:44:41'
103
+ additional_types: {}
104
+ materialized: true
105
+ delegate_hash:
106
+ id: !ruby/object:ActiveRecord::Attribute::FromDatabase
107
+ name: id
108
+ value_before_type_cast: 1
109
+ type: *5
110
+ title: !ruby/object:ActiveRecord::Attribute::FromDatabase
111
+ name: title
112
+ value_before_type_cast: The First Topic
113
+ type: *6
114
+ author_name: !ruby/object:ActiveRecord::Attribute::FromDatabase
115
+ name: author_name
116
+ value_before_type_cast: David
117
+ type: *1
118
+ author_email_address: !ruby/object:ActiveRecord::Attribute::FromDatabase
119
+ name: author_email_address
120
+ value_before_type_cast: david@loudthinking.com
121
+ type: *1
122
+ written_on: !ruby/object:ActiveRecord::Attribute::FromDatabase
123
+ name: written_on
124
+ value_before_type_cast: '2003-07-16 14:28:11.223300'
125
+ type: *4
126
+ bonus_time: !ruby/object:ActiveRecord::Attribute::FromDatabase
127
+ name: bonus_time
128
+ value_before_type_cast: '2005-01-30 14:28:00.000000'
129
+ type: *7
130
+ last_read: !ruby/object:ActiveRecord::Attribute::FromDatabase
131
+ name: last_read
132
+ value_before_type_cast: '2004-04-15'
133
+ type: *8
134
+ content: !ruby/object:ActiveRecord::Attribute::FromDatabase
135
+ name: content
136
+ value_before_type_cast: |
137
+ --- Have a nice day
138
+ ...
139
+ type: !ruby/object:ActiveRecord::Type::Serialized
140
+ coder: *9
141
+ subtype: *2
142
+ important: !ruby/object:ActiveRecord::Attribute::FromDatabase
143
+ name: important
144
+ value_before_type_cast:
145
+ type: *2
146
+ approved: !ruby/object:ActiveRecord::Attribute::FromDatabase
147
+ name: approved
148
+ value_before_type_cast: f
149
+ type: *10
150
+ replies_count: !ruby/object:ActiveRecord::Attribute::FromDatabase
151
+ name: replies_count
152
+ value_before_type_cast: 1
153
+ type: *3
154
+ unique_replies_count: !ruby/object:ActiveRecord::Attribute::FromDatabase
155
+ name: unique_replies_count
156
+ value_before_type_cast: 0
157
+ type: *3
158
+ parent_id: !ruby/object:ActiveRecord::Attribute::FromDatabase
159
+ name: parent_id
160
+ value_before_type_cast:
161
+ type: *3
162
+ parent_title: !ruby/object:ActiveRecord::Attribute::FromDatabase
163
+ name: parent_title
164
+ value_before_type_cast:
165
+ type: *1
166
+ type: !ruby/object:ActiveRecord::Attribute::FromDatabase
167
+ name: type
168
+ value_before_type_cast:
169
+ type: *1
170
+ group: !ruby/object:ActiveRecord::Attribute::FromDatabase
171
+ name: group
172
+ value_before_type_cast:
173
+ type: *1
174
+ created_at: !ruby/object:ActiveRecord::Attribute::FromDatabase
175
+ name: created_at
176
+ value_before_type_cast: '2015-03-10 17:44:41'
177
+ type: *4
178
+ updated_at: !ruby/object:ActiveRecord::Attribute::FromDatabase
179
+ name: updated_at
180
+ value_before_type_cast: '2015-03-10 17:44:41'
181
+ type: *4
182
+ new_record: false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ibm_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.4
4
+ version: 5.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - IBM
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-08 00:00:00.000000000 Z
11
+ date: 2020-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.0
19
+ version: 5.0.7
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 4.2.0
26
+ version: 5.0.7
27
27
  description:
28
28
  email: opendev@us.ibm.com
29
29
  executables: []
@@ -39,13 +39,20 @@ files:
39
39
  - MANIFEST
40
40
  - ParameterizedQueries README
41
41
  - README
42
+ - ext/Makefile
42
43
  - ext/Makefile.nt32
43
44
  - ext/Makefile.nt32.191
44
45
  - ext/extconf.rb
46
+ - ext/gil_release_version
45
47
  - ext/ibm_db.c
48
+ - ext/ibm_db.o
49
+ - ext/ibm_db.so
50
+ - ext/mkmf.log
46
51
  - ext/ruby_ibm_db.h
47
52
  - ext/ruby_ibm_db_cli.c
48
53
  - ext/ruby_ibm_db_cli.h
54
+ - ext/ruby_ibm_db_cli.o
55
+ - ext/unicode_support_version
49
56
  - init.rb
50
57
  - lib/IBM_DB.rb
51
58
  - lib/active_record/connection_adapters/ibm_db_adapter.rb
@@ -57,13 +64,79 @@ files:
57
64
  - test/assets/flowers.jpg
58
65
  - test/assets/test.txt
59
66
  - test/cases/adapter_test.rb
67
+ - test/cases/adapters/mysql2/active_schema_test.rb
68
+ - test/cases/adapters/mysql2/bind_parameter_test.rb
69
+ - test/cases/adapters/mysql2/boolean_test.rb
70
+ - test/cases/adapters/mysql2/case_sensitivity_test.rb
71
+ - test/cases/adapters/mysql2/charset_collation_test.rb
72
+ - test/cases/adapters/mysql2/connection_test.rb
73
+ - test/cases/adapters/mysql2/datetime_precision_quoting_test.rb
74
+ - test/cases/adapters/mysql2/enum_test.rb
75
+ - test/cases/adapters/mysql2/explain_test.rb
76
+ - test/cases/adapters/mysql2/json_test.rb
77
+ - test/cases/adapters/mysql2/mysql2_adapter_test.rb
78
+ - test/cases/adapters/mysql2/reserved_word_test.rb
79
+ - test/cases/adapters/mysql2/schema_migrations_test.rb
80
+ - test/cases/adapters/mysql2/schema_test.rb
81
+ - test/cases/adapters/mysql2/sp_test.rb
82
+ - test/cases/adapters/mysql2/sql_types_test.rb
83
+ - test/cases/adapters/mysql2/table_options_test.rb
84
+ - test/cases/adapters/mysql2/unsigned_type_test.rb
85
+ - test/cases/adapters/postgresql/active_schema_test.rb
86
+ - test/cases/adapters/postgresql/array_test.rb
87
+ - test/cases/adapters/postgresql/bit_string_test.rb
88
+ - test/cases/adapters/postgresql/bytea_test.rb
89
+ - test/cases/adapters/postgresql/case_insensitive_test.rb
90
+ - test/cases/adapters/postgresql/change_schema_test.rb
91
+ - test/cases/adapters/postgresql/cidr_test.rb
92
+ - test/cases/adapters/postgresql/citext_test.rb
93
+ - test/cases/adapters/postgresql/collation_test.rb
94
+ - test/cases/adapters/postgresql/composite_test.rb
95
+ - test/cases/adapters/postgresql/connection_test.rb
96
+ - test/cases/adapters/postgresql/datatype_test.rb
97
+ - test/cases/adapters/postgresql/domain_test.rb
98
+ - test/cases/adapters/postgresql/enum_test.rb
99
+ - test/cases/adapters/postgresql/explain_test.rb
100
+ - test/cases/adapters/postgresql/extension_migration_test.rb
101
+ - test/cases/adapters/postgresql/full_text_test.rb
102
+ - test/cases/adapters/postgresql/geometric_test.rb
103
+ - test/cases/adapters/postgresql/hstore_test.rb
104
+ - test/cases/adapters/postgresql/infinity_test.rb
105
+ - test/cases/adapters/postgresql/integer_test.rb
106
+ - test/cases/adapters/postgresql/json_test.rb
107
+ - test/cases/adapters/postgresql/ltree_test.rb
108
+ - test/cases/adapters/postgresql/money_test.rb
109
+ - test/cases/adapters/postgresql/network_test.rb
110
+ - test/cases/adapters/postgresql/numbers_test.rb
111
+ - test/cases/adapters/postgresql/postgresql_adapter_test.rb
112
+ - test/cases/adapters/postgresql/prepared_statements_test.rb
113
+ - test/cases/adapters/postgresql/quoting_test.rb
114
+ - test/cases/adapters/postgresql/range_test.rb
115
+ - test/cases/adapters/postgresql/referential_integrity_test.rb
116
+ - test/cases/adapters/postgresql/rename_table_test.rb
117
+ - test/cases/adapters/postgresql/schema_authorization_test.rb
118
+ - test/cases/adapters/postgresql/schema_test.rb
119
+ - test/cases/adapters/postgresql/serial_test.rb
120
+ - test/cases/adapters/postgresql/statement_pool_test.rb
121
+ - test/cases/adapters/postgresql/timestamp_test.rb
122
+ - test/cases/adapters/postgresql/type_lookup_test.rb
123
+ - test/cases/adapters/postgresql/utils_test.rb
124
+ - test/cases/adapters/postgresql/uuid_test.rb
125
+ - test/cases/adapters/postgresql/xml_test.rb
126
+ - test/cases/adapters/sqlite3/collation_test.rb
127
+ - test/cases/adapters/sqlite3/copy_table_test.rb
128
+ - test/cases/adapters/sqlite3/explain_test.rb
129
+ - test/cases/adapters/sqlite3/quoting_test.rb
130
+ - test/cases/adapters/sqlite3/sqlite3_adapter_test.rb
131
+ - test/cases/adapters/sqlite3/sqlite3_create_folder_test.rb
132
+ - test/cases/adapters/sqlite3/statement_pool_test.rb
60
133
  - test/cases/aggregations_test.rb
61
134
  - test/cases/ar_schema_test.rb
62
135
  - test/cases/associations/association_scope_test.rb
63
136
  - test/cases/associations/belongs_to_associations_test.rb
137
+ - test/cases/associations/bidirectional_destroy_dependencies_test.rb
64
138
  - test/cases/associations/callbacks_test.rb
65
139
  - test/cases/associations/cascaded_eager_loading_test.rb
66
- - test/cases/associations/deprecated_counter_cache_on_has_many_through_test.rb
67
140
  - test/cases/associations/eager_load_includes_full_sti_class_test.rb
68
141
  - test/cases/associations/eager_load_nested_include_test.rb
69
142
  - test/cases/associations/eager_singularization_test.rb
@@ -77,12 +150,12 @@ files:
77
150
  - test/cases/associations/inner_join_association_test.rb
78
151
  - test/cases/associations/inverse_associations_test.rb
79
152
  - test/cases/associations/join_model_test.rb
153
+ - test/cases/associations/left_outer_join_association_test.rb
80
154
  - test/cases/associations/nested_through_associations_test.rb
81
155
  - test/cases/associations/required_test.rb
82
156
  - test/cases/associations_test.rb
83
157
  - test/cases/attribute_decorators_test.rb
84
158
  - test/cases/attribute_methods/read_test.rb
85
- - test/cases/attribute_methods/serialization_test.rb
86
159
  - test/cases/attribute_methods_test.rb
87
160
  - test/cases/attribute_set_test.rb
88
161
  - test/cases/attribute_test.rb
@@ -92,12 +165,16 @@ files:
92
165
  - test/cases/batches_test.rb
93
166
  - test/cases/binary_test.rb
94
167
  - test/cases/bind_parameter_test.rb
168
+ - test/cases/cache_key_test.rb
95
169
  - test/cases/calculations_test.rb
96
170
  - test/cases/callbacks_test.rb
97
171
  - test/cases/clone_test.rb
172
+ - test/cases/coders/json_test.rb
98
173
  - test/cases/coders/yaml_column_test.rb
174
+ - test/cases/collection_cache_key_test.rb
99
175
  - test/cases/column_alias_test.rb
100
176
  - test/cases/column_definition_test.rb
177
+ - test/cases/comment_test.rb
101
178
  - test/cases/connection_adapters/adapter_leasing_test.rb
102
179
  - test/cases/connection_adapters/connection_handler_test.rb
103
180
  - test/cases/connection_adapters/connection_specification_test.rb
@@ -113,12 +190,15 @@ files:
113
190
  - test/cases/counter_cache_test.rb
114
191
  - test/cases/custom_locking_test.rb
115
192
  - test/cases/database_statements_test.rb
193
+ - test/cases/date_test.rb
194
+ - test/cases/date_time_precision_test.rb
116
195
  - test/cases/date_time_test.rb
117
196
  - test/cases/defaults_test.rb
118
197
  - test/cases/dirty_test.rb
119
198
  - test/cases/disconnected_test.rb
120
199
  - test/cases/dup_test.rb
121
200
  - test/cases/enum_test.rb
201
+ - test/cases/errors_test.rb
122
202
  - test/cases/explain_subscriber_test.rb
123
203
  - test/cases/explain_test.rb
124
204
  - test/cases/finder_respond_to_test.rb
@@ -133,20 +213,18 @@ files:
133
213
  - test/cases/inheritance_test.rb
134
214
  - test/cases/integration_test.rb
135
215
  - test/cases/invalid_connection_test.rb
136
- - test/cases/invalid_date_test.rb
137
216
  - test/cases/invertible_migration_test.rb
138
217
  - test/cases/json_serialization_test.rb
139
218
  - test/cases/locking_test.rb
140
219
  - test/cases/log_subscriber_test.rb
141
- - test/cases/migration/change_schema_test - Copy.rb
142
220
  - test/cases/migration/change_schema_test.rb
143
221
  - test/cases/migration/change_table_test.rb
144
222
  - test/cases/migration/column_attributes_test.rb
145
223
  - test/cases/migration/column_positioning_test.rb
146
224
  - test/cases/migration/columns_test.rb
147
225
  - test/cases/migration/command_recorder_test.rb
226
+ - test/cases/migration/compatibility_test.rb
148
227
  - test/cases/migration/create_join_table_test.rb
149
- - test/cases/migration/foreign_key_test - Changed.rb
150
228
  - test/cases/migration/foreign_key_test.rb
151
229
  - test/cases/migration/helper.rb
152
230
  - test/cases/migration/index_test.rb
@@ -156,7 +234,6 @@ files:
156
234
  - test/cases/migration/references_index_test.rb
157
235
  - test/cases/migration/references_statements_test.rb
158
236
  - test/cases/migration/rename_table_test.rb
159
- - test/cases/migration/table_and_index_test.rb
160
237
  - test/cases/migration_test.rb
161
238
  - test/cases/migrator_test.rb
162
239
  - test/cases/mixin_test.rb
@@ -176,39 +253,49 @@ files:
176
253
  - test/cases/relation/delegation_test.rb
177
254
  - test/cases/relation/merging_test.rb
178
255
  - test/cases/relation/mutation_test.rb
256
+ - test/cases/relation/or_test.rb
179
257
  - test/cases/relation/predicate_builder_test.rb
258
+ - test/cases/relation/record_fetch_warning_test.rb
180
259
  - test/cases/relation/where_chain_test.rb
260
+ - test/cases/relation/where_clause_test.rb
181
261
  - test/cases/relation/where_test.rb
182
- - test/cases/relation/where_test2.rb
183
262
  - test/cases/relation_test.rb
184
263
  - test/cases/relations_test.rb
185
264
  - test/cases/reload_models_test.rb
186
265
  - test/cases/result_test.rb
187
266
  - test/cases/sanitize_test.rb
188
267
  - test/cases/schema_dumper_test.rb
268
+ - test/cases/schema_loading_test.rb
189
269
  - test/cases/scoping/default_scoping_test.rb
190
270
  - test/cases/scoping/named_scoping_test.rb
191
271
  - test/cases/scoping/relation_scoping_test.rb
272
+ - test/cases/secure_token_test.rb
192
273
  - test/cases/serialization_test.rb
193
274
  - test/cases/serialized_attribute_test.rb
194
275
  - test/cases/statement_cache_test.rb
195
276
  - test/cases/store_test.rb
277
+ - test/cases/suppressor_test.rb
196
278
  - test/cases/tasks/database_tasks_test.rb
197
279
  - test/cases/tasks/mysql_rake_test.rb
198
280
  - test/cases/tasks/postgresql_rake_test.rb
199
281
  - test/cases/tasks/sqlite_rake_test.rb
200
282
  - test/cases/test_case.rb
283
+ - test/cases/test_fixtures_test.rb
284
+ - test/cases/time_precision_test.rb
201
285
  - test/cases/timestamp_test.rb
286
+ - test/cases/touch_later_test.rb
202
287
  - test/cases/transaction_callbacks_test.rb
203
288
  - test/cases/transaction_isolation_test.rb
204
289
  - test/cases/transactions_test.rb
205
- - test/cases/type/decimal_test.rb
290
+ - test/cases/type/adapter_specific_registry_test.rb
291
+ - test/cases/type/date_time_test.rb
206
292
  - test/cases/type/integer_test.rb
207
293
  - test/cases/type/string_test.rb
208
294
  - test/cases/type/type_map_test.rb
209
- - test/cases/type/unsigned_integer_test.rb
295
+ - test/cases/type_test.rb
210
296
  - test/cases/types_test.rb
211
297
  - test/cases/unconnected_test.rb
298
+ - test/cases/validations/absence_validation_test.rb
212
299
  - test/cases/validations/association_validation_test.rb
213
300
  - test/cases/validations/i18n_generate_message_validation_test.rb
214
301
  - test/cases/validations/i18n_validation_test.rb
@@ -218,8 +305,8 @@ files:
218
305
  - test/cases/validations_repair_helper.rb
219
306
  - test/cases/validations_test.rb
220
307
  - test/cases/view_test.rb
221
- - test/cases/xml_serialization_test.rb
222
308
  - test/cases/yaml_serialization_test.rb
309
+ - test/config.example.yml
223
310
  - test/config.rb
224
311
  - test/config.yml
225
312
  - test/connections/native_ibm_db/connection.rb
@@ -235,6 +322,7 @@ files:
235
322
  - test/fixtures/author_addresses.yml
236
323
  - test/fixtures/author_favorites.yml
237
324
  - test/fixtures/authors.yml
325
+ - test/fixtures/bad_posts.yml
238
326
  - test/fixtures/binaries.yml
239
327
  - test/fixtures/books.yml
240
328
  - test/fixtures/bulbs.yml
@@ -251,9 +339,12 @@ files:
251
339
  - test/fixtures/comments.yml
252
340
  - test/fixtures/companies.yml
253
341
  - test/fixtures/computers.yml
342
+ - test/fixtures/content.yml
343
+ - test/fixtures/content_positions.yml
254
344
  - test/fixtures/courses.yml
255
345
  - test/fixtures/customers.yml
256
346
  - test/fixtures/dashboards.yml
347
+ - test/fixtures/dead_parrots.yml
257
348
  - test/fixtures/developers.yml
258
349
  - test/fixtures/developers_projects.yml
259
350
  - test/fixtures/dog_lovers.yml
@@ -271,6 +362,7 @@ files:
271
362
  - test/fixtures/items.yml
272
363
  - test/fixtures/jobs.yml
273
364
  - test/fixtures/legacy_things.yml
365
+ - test/fixtures/live_parrots.yml
274
366
  - test/fixtures/mateys.yml
275
367
  - test/fixtures/member_details.yml
276
368
  - test/fixtures/member_types.yml
@@ -282,11 +374,16 @@ files:
282
374
  - test/fixtures/mixed_case_monkeys.yml
283
375
  - test/fixtures/mixins.yml
284
376
  - test/fixtures/movies.yml
285
- - test/fixtures/naked/csv/accounts.csv
286
377
  - test/fixtures/naked/yml/accounts.yml
287
378
  - test/fixtures/naked/yml/companies.yml
288
379
  - test/fixtures/naked/yml/courses.yml
380
+ - test/fixtures/naked/yml/parrots.yml
381
+ - test/fixtures/naked/yml/trees.yml
382
+ - test/fixtures/nodes.yml
289
383
  - test/fixtures/organizations.yml
384
+ - test/fixtures/other_comments.yml
385
+ - test/fixtures/other_dogs.yml
386
+ - test/fixtures/other_posts.yml
290
387
  - test/fixtures/other_topics.yml
291
388
  - test/fixtures/owners.yml
292
389
  - test/fixtures/parrots.yml
@@ -324,6 +421,7 @@ files:
324
421
  - test/fixtures/toys.yml
325
422
  - test/fixtures/traffic_lights.yml
326
423
  - test/fixtures/treasures.yml
424
+ - test/fixtures/trees.yml
327
425
  - test/fixtures/uuid_children.yml
328
426
  - test/fixtures/uuid_parents.yml
329
427
  - test/fixtures/variants.yml
@@ -377,6 +475,7 @@ files:
377
475
  - test/models/cake_designer.rb
378
476
  - test/models/car.rb
379
477
  - test/models/carrier.rb
478
+ - test/models/cat.rb
380
479
  - test/models/categorization.rb
381
480
  - test/models/category.rb
382
481
  - test/models/chef.rb
@@ -390,6 +489,7 @@ files:
390
489
  - test/models/company_in_module.rb
391
490
  - test/models/computer.rb
392
491
  - test/models/contact.rb
492
+ - test/models/content.rb
393
493
  - test/models/contract.rb
394
494
  - test/models/country.rb
395
495
  - test/models/course.rb
@@ -413,6 +513,7 @@ files:
413
513
  - test/models/face.rb
414
514
  - test/models/friendship.rb
415
515
  - test/models/guid.rb
516
+ - test/models/guitar.rb
416
517
  - test/models/hotel.rb
417
518
  - test/models/image.rb
418
519
  - test/models/interest.rb
@@ -431,18 +532,25 @@ files:
431
532
  - test/models/member_detail.rb
432
533
  - test/models/member_type.rb
433
534
  - test/models/membership.rb
535
+ - test/models/mentor.rb
434
536
  - test/models/minimalistic.rb
435
537
  - test/models/minivan.rb
436
538
  - test/models/mixed_case_monkey.rb
539
+ - test/models/mocktail_designer.rb
437
540
  - test/models/molecule.rb
438
541
  - test/models/movie.rb
542
+ - test/models/node.rb
543
+ - test/models/non_primary_key.rb
544
+ - test/models/notification.rb
439
545
  - test/models/order.rb
440
546
  - test/models/organization.rb
547
+ - test/models/other_dog.rb
441
548
  - test/models/owner.rb
442
549
  - test/models/parrot.rb
443
550
  - test/models/person.rb
444
551
  - test/models/personal_legacy_thing.rb
445
552
  - test/models/pet.rb
553
+ - test/models/pet_treasure.rb
446
554
  - test/models/pirate.rb
447
555
  - test/models/possession.rb
448
556
  - test/models/post.rb
@@ -455,6 +563,7 @@ files:
455
563
  - test/models/randomly_named_c1.rb
456
564
  - test/models/rating.rb
457
565
  - test/models/reader.rb
566
+ - test/models/recipe.rb
458
567
  - test/models/record.rb
459
568
  - test/models/reference.rb
460
569
  - test/models/reply.rb
@@ -477,8 +586,12 @@ files:
477
586
  - test/models/traffic_light.rb
478
587
  - test/models/treasure.rb
479
588
  - test/models/treaty.rb
589
+ - test/models/tree.rb
590
+ - test/models/tuning_peg.rb
480
591
  - test/models/tyre.rb
592
+ - test/models/user.rb
481
593
  - test/models/uuid_child.rb
594
+ - test/models/uuid_item.rb
482
595
  - test/models/uuid_parent.rb
483
596
  - test/models/vegetables.rb
484
597
  - test/models/vehicle.rb
@@ -491,10 +604,10 @@ files:
491
604
  - test/schema/ids/ibm_db_specific_schema.rb
492
605
  - test/schema/luw/ibm_db_specific_schema.rb
493
606
  - test/schema/mysql2_specific_schema.rb
494
- - test/schema/mysql_specific_schema.rb
495
607
  - test/schema/oracle_specific_schema.rb
496
608
  - test/schema/postgresql_specific_schema.rb
497
609
  - test/schema/schema.rb
610
+ - test/schema/schema.rb.original
498
611
  - test/schema/sqlite_specific_schema.rb
499
612
  - test/schema/zOS/ibm_db_specific_schema.rb
500
613
  - test/support/config.rb
@@ -502,15 +615,22 @@ files:
502
615
  - test/support/connection_helper.rb
503
616
  - test/support/ddl_helper.rb
504
617
  - test/support/schema_dumping_helper.rb
618
+ - test/support/yaml_compatibility_fixtures/rails_4_1.yml
619
+ - test/support/yaml_compatibility_fixtures/rails_4_2_0.yml
505
620
  homepage: https://github.com/ibmdb/ruby-ibmdb
506
621
  licenses: []
507
622
  metadata: {}
508
- post_install_message: |2+
509
-
510
- *****************************************************************************
511
- Successfully installed ibm_db, the Ruby gem for IBM DB2/Informix. The Ruby gem is licensed under the MIT License. The package also includes IBM ODBC and CLI Driver from IBM, which could have been automatically downloaded as the Ruby gem is installed on your system/device. The license agreement to the IBM driver is available in the folder "$GEM_HOME/ibm_db-*/lib/clidriver/license". Check for additional dependencies, which may come with their own license agreement(s). Your use of the components of the package and dependencies constitutes your acceptance of their respective license agreements. If you do not accept the terms of any license agreement(s), then delete the relevant component(s) from your system/device.
512
- *****************************************************************************
513
-
623
+ post_install_message: "\n*****************************************************************************\nSuccessfully
624
+ installed ibm_db, the Ruby gem for IBM DB2/Informix. The Ruby gem is licensed under
625
+ the MIT License. The package also includes IBM ODBC and CLI Driver from IBM, which
626
+ could have been automatically downloaded as the Ruby gem is installed on your system/device.
627
+ \ The license agreement to the IBM driver is available in the folder \"$GEM_HOME/ibm_db-*/lib/clidriver/license\".
628
+ \ Check for additional dependencies, which may come with their own license agreement(s).
629
+ Your use of the components of the package and dependencies constitutes your acceptance
630
+ of their respective license agreements. If you do not accept the terms of any license
631
+ agreement(s), then delete the relevant component(s) from your system/device.\n*****************************************************************************\n\n
632
+ FOR WINDOWS PLEASE SET RUBY_DLL_PATH=/path/to/clidriver/bin \n\n ****************************************************
633
+ \n\n"
514
634
  rdoc_options: []
515
635
  require_paths:
516
636
  - lib
@@ -518,16 +638,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
518
638
  requirements:
519
639
  - - ">="
520
640
  - !ruby/object:Gem::Version
521
- version: 2.0.0
641
+ version: 2.5.0
522
642
  required_rubygems_version: !ruby/object:Gem::Requirement
523
643
  requirements:
524
644
  - - ">="
525
645
  - !ruby/object:Gem::Version
526
646
  version: '0'
527
647
  requirements:
528
- - ActiveRecord, at least 4.2.0
529
- rubyforge_project: rubyibm
530
- rubygems_version: 2.4.5.1
648
+ - ActiveRecord, at least 5.0.7
649
+ rubygems_version: 3.0.3
531
650
  signing_key:
532
651
  specification_version: 4
533
652
  summary: 'Rails Driver and Adapter for IBM Data Servers: {DB2 on Linux/Unix/Windows,