Permalink
Browse files

freeze dm-core too

  • Loading branch information...
1 parent 6260b29 commit bfd5e5f23d046a7f70002b44b58b1fde683ba6b0 @technoweenie technoweenie committed Nov 4, 2008
Showing with 22,332 additions and 0 deletions.
  1. +26 −0 vendor/dm-core-0.9.6/.autotest
  2. +51 −0 vendor/dm-core-0.9.6/CONTRIBUTING
  3. +92 −0 vendor/dm-core-0.9.6/FAQ
  4. +145 −0 vendor/dm-core-0.9.6/History.txt
  5. +22 −0 vendor/dm-core-0.9.6/MIT-LICENSE
  6. +128 −0 vendor/dm-core-0.9.6/Manifest.txt
  7. +12 −0 vendor/dm-core-0.9.6/QUICKLINKS
  8. +143 −0 vendor/dm-core-0.9.6/README.txt
  9. +30 −0 vendor/dm-core-0.9.6/Rakefile
  10. +63 −0 vendor/dm-core-0.9.6/SPECS
  11. +1 −0 vendor/dm-core-0.9.6/TODO
  12. +217 −0 vendor/dm-core-0.9.6/lib/dm-core.rb
  13. +22 −0 vendor/dm-core-0.9.6/lib/dm-core/adapters.rb
  14. +209 −0 vendor/dm-core-0.9.6/lib/dm-core/adapters/abstract_adapter.rb
  15. +707 −0 vendor/dm-core-0.9.6/lib/dm-core/adapters/data_objects_adapter.rb
  16. +87 −0 vendor/dm-core-0.9.6/lib/dm-core/adapters/in_memory_adapter.rb
  17. +136 −0 vendor/dm-core-0.9.6/lib/dm-core/adapters/mysql_adapter.rb
  18. +188 −0 vendor/dm-core-0.9.6/lib/dm-core/adapters/postgres_adapter.rb
  19. +105 −0 vendor/dm-core-0.9.6/lib/dm-core/adapters/sqlite3_adapter.rb
  20. +200 −0 vendor/dm-core-0.9.6/lib/dm-core/associations.rb
  21. +147 −0 vendor/dm-core-0.9.6/lib/dm-core/associations/many_to_many.rb
  22. +107 −0 vendor/dm-core-0.9.6/lib/dm-core/associations/many_to_one.rb
  23. +318 −0 vendor/dm-core-0.9.6/lib/dm-core/associations/one_to_many.rb
  24. +61 −0 vendor/dm-core-0.9.6/lib/dm-core/associations/one_to_one.rb
  25. +223 −0 vendor/dm-core-0.9.6/lib/dm-core/associations/relationship.rb
  26. +81 −0 vendor/dm-core-0.9.6/lib/dm-core/associations/relationship_chain.rb
  27. +113 −0 vendor/dm-core-0.9.6/lib/dm-core/auto_migrations.rb
  28. +642 −0 vendor/dm-core-0.9.6/lib/dm-core/collection.rb
  29. +32 −0 vendor/dm-core-0.9.6/lib/dm-core/dependency_queue.rb
  30. +11 −0 vendor/dm-core-0.9.6/lib/dm-core/hook.rb
  31. +42 −0 vendor/dm-core-0.9.6/lib/dm-core/identity_map.rb
  32. +16 −0 vendor/dm-core-0.9.6/lib/dm-core/is.rb
  33. +232 −0 vendor/dm-core-0.9.6/lib/dm-core/logger.rb
  34. +17 −0 vendor/dm-core-0.9.6/lib/dm-core/migrations/destructive_migrations.rb
  35. +29 −0 vendor/dm-core-0.9.6/lib/dm-core/migrator.rb
  36. +488 −0 vendor/dm-core-0.9.6/lib/dm-core/model.rb
  37. +84 −0 vendor/dm-core-0.9.6/lib/dm-core/naming_conventions.rb
  38. +663 −0 vendor/dm-core-0.9.6/lib/dm-core/property.rb
  39. +169 −0 vendor/dm-core-0.9.6/lib/dm-core/property_set.rb
  40. +627 −0 vendor/dm-core-0.9.6/lib/dm-core/query.rb
  41. +159 −0 vendor/dm-core-0.9.6/lib/dm-core/repository.rb
  42. +637 −0 vendor/dm-core-0.9.6/lib/dm-core/resource.rb
  43. +58 −0 vendor/dm-core-0.9.6/lib/dm-core/scope.rb
  44. +7 −0 vendor/dm-core-0.9.6/lib/dm-core/support.rb
  45. +13 −0 vendor/dm-core-0.9.6/lib/dm-core/support/array.rb
  46. +8 −0 vendor/dm-core-0.9.6/lib/dm-core/support/assertions.rb
  47. +23 −0 vendor/dm-core-0.9.6/lib/dm-core/support/errors.rb
  48. +11 −0 vendor/dm-core-0.9.6/lib/dm-core/support/kernel.rb
  49. +41 −0 vendor/dm-core-0.9.6/lib/dm-core/support/symbol.rb
  50. +267 −0 vendor/dm-core-0.9.6/lib/dm-core/transaction.rb
  51. +160 −0 vendor/dm-core-0.9.6/lib/dm-core/type.rb
  52. +80 −0 vendor/dm-core-0.9.6/lib/dm-core/type_map.rb
  53. +19 −0 vendor/dm-core-0.9.6/lib/dm-core/types.rb
  54. +7 −0 vendor/dm-core-0.9.6/lib/dm-core/types/boolean.rb
  55. +34 −0 vendor/dm-core-0.9.6/lib/dm-core/types/discriminator.rb
  56. +24 −0 vendor/dm-core-0.9.6/lib/dm-core/types/object.rb
  57. +34 −0 vendor/dm-core-0.9.6/lib/dm-core/types/paranoid_boolean.rb
  58. +33 −0 vendor/dm-core-0.9.6/lib/dm-core/types/paranoid_datetime.rb
  59. +9 −0 vendor/dm-core-0.9.6/lib/dm-core/types/serial.rb
  60. +10 −0 vendor/dm-core-0.9.6/lib/dm-core/types/text.rb
  61. +3 −0 vendor/dm-core-0.9.6/lib/dm-core/version.rb
  62. +5 −0 vendor/dm-core-0.9.6/script/all
  63. +284 −0 vendor/dm-core-0.9.6/script/performance.rb
  64. +87 −0 vendor/dm-core-0.9.6/script/profile.rb
  65. +1,383 −0 vendor/dm-core-0.9.6/spec/integration/association_spec.rb
  66. +203 −0 vendor/dm-core-0.9.6/spec/integration/association_through_spec.rb
  67. +449 −0 vendor/dm-core-0.9.6/spec/integration/associations/many_to_many_spec.rb
  68. +163 −0 vendor/dm-core-0.9.6/spec/integration/associations/many_to_one_spec.rb
  69. +188 −0 vendor/dm-core-0.9.6/spec/integration/associations/one_to_many_spec.rb
  70. +398 −0 vendor/dm-core-0.9.6/spec/integration/auto_migrations_spec.rb
  71. +1,069 −0 vendor/dm-core-0.9.6/spec/integration/collection_spec.rb
  72. +32 −0 vendor/dm-core-0.9.6/spec/integration/data_objects_adapter_spec.rb
  73. +46 −0 vendor/dm-core-0.9.6/spec/integration/dependency_queue_spec.rb
  74. +127 −0 vendor/dm-core-0.9.6/spec/integration/model_spec.rb
  75. +85 −0 vendor/dm-core-0.9.6/spec/integration/mysql_adapter_spec.rb
  76. +731 −0 vendor/dm-core-0.9.6/spec/integration/postgres_adapter_spec.rb
  77. +233 −0 vendor/dm-core-0.9.6/spec/integration/property_spec.rb
  78. +506 −0 vendor/dm-core-0.9.6/spec/integration/query_spec.rb
  79. +57 −0 vendor/dm-core-0.9.6/spec/integration/repository_spec.rb
  80. +475 −0 vendor/dm-core-0.9.6/spec/integration/resource_spec.rb
  81. +352 −0 vendor/dm-core-0.9.6/spec/integration/sqlite3_adapter_spec.rb
  82. +230 −0 vendor/dm-core-0.9.6/spec/integration/sti_spec.rb
  83. +153 −0 vendor/dm-core-0.9.6/spec/integration/strategic_eager_loading_spec.rb
  84. +75 −0 vendor/dm-core-0.9.6/spec/integration/transaction_spec.rb
  85. +271 −0 vendor/dm-core-0.9.6/spec/integration/type_spec.rb
  86. +18 −0 vendor/dm-core-0.9.6/spec/lib/logging_helper.rb
  87. +27 −0 vendor/dm-core-0.9.6/spec/lib/mock_adapter.rb
  88. +100 −0 vendor/dm-core-0.9.6/spec/lib/model_loader.rb
  89. +28 −0 vendor/dm-core-0.9.6/spec/lib/publicize_methods.rb
  90. +16 −0 vendor/dm-core-0.9.6/spec/models/content.rb
  91. +34 −0 vendor/dm-core-0.9.6/spec/models/vehicles.rb
  92. +47 −0 vendor/dm-core-0.9.6/spec/models/zoo.rb
  93. +3 −0 vendor/dm-core-0.9.6/spec/spec.opts
  94. +86 −0 vendor/dm-core-0.9.6/spec/spec_helper.rb
  95. +133 −0 vendor/dm-core-0.9.6/spec/unit/adapters/abstract_adapter_spec.rb
  96. +15 −0 vendor/dm-core-0.9.6/spec/unit/adapters/adapter_shared_spec.rb
  97. +628 −0 vendor/dm-core-0.9.6/spec/unit/adapters/data_objects_adapter_spec.rb
  98. +98 −0 vendor/dm-core-0.9.6/spec/unit/adapters/in_memory_adapter_spec.rb
  99. +133 −0 vendor/dm-core-0.9.6/spec/unit/adapters/postgres_adapter_spec.rb
  100. +32 −0 vendor/dm-core-0.9.6/spec/unit/associations/many_to_many_spec.rb
  101. +152 −0 vendor/dm-core-0.9.6/spec/unit/associations/many_to_one_spec.rb
  102. +393 −0 vendor/dm-core-0.9.6/spec/unit/associations/one_to_many_spec.rb
  103. +7 −0 vendor/dm-core-0.9.6/spec/unit/associations/one_to_one_spec.rb
  104. +71 −0 vendor/dm-core-0.9.6/spec/unit/associations/relationship_spec.rb
  105. +242 −0 vendor/dm-core-0.9.6/spec/unit/associations_spec.rb
  106. +111 −0 vendor/dm-core-0.9.6/spec/unit/auto_migrations_spec.rb
  107. +182 −0 vendor/dm-core-0.9.6/spec/unit/collection_spec.rb
  108. +35 −0 vendor/dm-core-0.9.6/spec/unit/data_mapper_spec.rb
  109. +126 −0 vendor/dm-core-0.9.6/spec/unit/identity_map_spec.rb
  110. +80 −0 vendor/dm-core-0.9.6/spec/unit/is_spec.rb
  111. +33 −0 vendor/dm-core-0.9.6/spec/unit/migrator_spec.rb
  112. +323 −0 vendor/dm-core-0.9.6/spec/unit/model_spec.rb
  113. +36 −0 vendor/dm-core-0.9.6/spec/unit/naming_conventions_spec.rb
  114. +90 −0 vendor/dm-core-0.9.6/spec/unit/property_set_spec.rb
  115. +753 −0 vendor/dm-core-0.9.6/spec/unit/property_spec.rb
  116. +571 −0 vendor/dm-core-0.9.6/spec/unit/query_spec.rb
  117. +93 −0 vendor/dm-core-0.9.6/spec/unit/repository_spec.rb
  118. +635 −0 vendor/dm-core-0.9.6/spec/unit/resource_spec.rb
  119. +142 −0 vendor/dm-core-0.9.6/spec/unit/scope_spec.rb
  120. +493 −0 vendor/dm-core-0.9.6/spec/unit/transaction_spec.rb
  121. +114 −0 vendor/dm-core-0.9.6/spec/unit/type_map_spec.rb
  122. +119 −0 vendor/dm-core-0.9.6/spec/unit/type_spec.rb
  123. +36 −0 vendor/dm-core-0.9.6/tasks/ci.rb
  124. +63 −0 vendor/dm-core-0.9.6/tasks/dm.rb
  125. +20 −0 vendor/dm-core-0.9.6/tasks/doc.rb
  126. +23 −0 vendor/dm-core-0.9.6/tasks/gemspec.rb
  127. +46 −0 vendor/dm-core-0.9.6/tasks/hoe.rb
  128. +20 −0 vendor/dm-core-0.9.6/tasks/install.rb
@@ -0,0 +1,26 @@
+Autotest.add_hook :initialize do |at|
+ ignore = %w[ .git burn www log plugins script tasks bin CHANGELOG FAQ MIT-LICENSE PERFORMANCE QUICKLINKS README ]
+
+ unless ENV['AUTOTEST'] == 'integration'
+ ignore << 'spec/integration'
+ end
+
+ ignore.each do |exception|
+ at.add_exception(exception)
+ end
+
+ at.clear_mappings
+
+ at.add_mapping(%r{^spec/.+_spec\.rb$}) do |filename,_|
+ filename
+ end
+
+ at.add_mapping(%r{^lib/data_mapper/(.+)\.rb$}) do |_,match|
+ [ "spec/unit/#{match[1]}_spec.rb" ] +
+ at.files_matching(%r{^spec/integration/.+_spec\.rb$})
+ end
+
+ at.add_mapping(%r{^spec/spec_helper\.rb$}) do
+ at.files_matching(%r{^spec/.+_spec\.rb$})
+ end
+end
@@ -0,0 +1,51 @@
+# NOTE: This is a work in progress. As of July 24, it applies only to dm-core.
+
+# Contributing to Edge DataMapper
+
+We have now implemented Hoe throughout the DataMapper suite, so there will be a
+handful of new procedures for contributing to our git repositories. I'll give
+you a run through of how to set up your machine, and then provide a few
+commands that should be run before committing or pushing changes.
+
+## Installing and configuring Hoe
+
+The first step is to install hoe. You'll need at least version 1.7.0.
+
+ (sudo) gem install hoe --include-dependencies
+
+Now you'll need to configure hoe. You'll need to run this from inside of
+dm-core, or one of the other DataMapper projects.
+
+ rake config_hoe
+
+The only thing you should need to change is the exclude regular expression,
+which needs to look like this:
+
+ exclude: !ruby/regexp /tmp$|CVS|\.svn|\.git|.+\.gemspec/
+
+Now you have the correct setup for contributing.
+
+## Before committing changes
+
+Before you commit changes, you must verify that `Manifest.txt` (the file which
+contains the names of every file to be included in a gem release) and
+`[project-name].gemspec` are up to date. We have create a rake task to make
+this easy:
+
+ rake gemspec
+
+This will check `Manifest.txt` (using Hoe's `rake check_manifest`) to ensure
+there are no differences between the files in the project, and those listed in
+the manifest. If there is a difference, it will display a warning and a list of
+the differences in `diff` format.
+
+If the changes in the diff are correct, then you can run the following command
+to update the manifest.
+
+ rake check_manifest | patch
+
+If there are files you do not want added to the manifest, then you should
+remove the files from the project, and then run `rake gemspec` again.
+
+If `rake gemspec` says it was successful, then you can proceed with committing
+and pushing your changes.
@@ -0,0 +1,92 @@
+:include:QUICKLINKS
+
+= FAQ
+
+=== So where's my :id column?
+
+DataMapper will NOT create an auto-incrementing <tt>:id</tt> key for you
+automatically, so you'll need to either explicitly create one with
+
+ property :id, Serial
+
+You can choose to use a natural key by doing
+
+ property :slug, String, :key => true
+
+Remember, DataMapper supports multiple keys ("composite keys"), so if your
+model has two or more keys, no big deal
+
+ property :store_id, Integer, :key => true
+ property :invoice_id, Integer, :key => true
+
+=== How do I make a model paranoid?
+
+Create a property and make it a ParanoidDateTime or ParanoidBoolean type.
+
+ property :deleted_at, ParanoidDateTime
+ property :deleted, ParanoidBoolean
+
+All of your calls to <tt>##all()</tt>, <tt>##first()</tt> will be scoped
+with <tt>:deleted_at => nil</tt> or <tt>:deleted => false</tt>. Plus,
+you won't see deleted objects in your associations.
+
+=== Does DataMapper do Single Table Inheritance?
+
+This is what the Discriminator data-type is for:
+
+ class Person
+ include DataMapper::Resource
+ property :id, Serial
+ property :type, Discriminator ## other shared properties here
+ end
+
+ class Salesperson < Person; end
+
+You can claim a column to have the type <tt>Discriminator</tt> and DataMapper will
+automatically drop the class name of the inherited classes into that field of
+the data-store.
+
+=== How do I run my own commands?
+
+ repository.adapter.query("select * from users where clue > 0")
+ repository(:integration).adapter.query("select * from users where clue > 0")
+
+This does not return any Users (har har), but rather Struct's that will quack
+like Users. They'll be read-only as well.
+
+<tt>repository.adapter.query</tt> shouldn't be used if you aren't expecting a result set
+back. If you want to just execute something against the database, use
+<tt>repository.adapter.execute</tt> instead.
+
+
+=== Can I get an query log of what DataMapper is issuing?
+
+An example of how to modify an existing logger:
+
+ DataMapper.logger.set_log(STDOUT, :debug)
+
+An example of how to create new logger:
+
+ DataMapper::Logger.new(STDOUT, :info)
+
+To send a message to the DataMapper logger:
+
+ DataMapper.logger.debug("something")
+ DataMapper.logger.info ("something")
+ DataMapper.logger.warn ("something")
+ DataMapper.logger.error("something")
+ DataMapper.logger.fatal("something")
+
+
+=== I want to run the specs, but I have a custom database setup
+
+For example, if you installed MySQL using MacPorts, your socket may be located
+at /opt/local/var/run/mysql5/mysqld.sock instead of /tmp/mysql.sock
+
+In that case, setup an environment variable in your shell before running the
+specs:
+ export MYSQL_SPEC_URI="mysql://localhost/dm_core_test?socket=/opt/local/var/run/mysql5/mysqld.sock"
+ rake spec
+
+Using another kind of database? Note that spec_helper.rb will also look for
+SQLITE3_SPEC_URI AND POSTGRES_SPEC_URI.
@@ -0,0 +1,145 @@
+
+== 0.3.0
+* HasManyAssociation::Set now has a nil? method, so we can do stuff like cage.animal.nil?
+
+== 0.2.5
+* has_one bugfixes
+* Added syntax for setting CHECK-constraints directly in your properties (Postgres)
+* You can now set indexes with :index => true and :index => :unique
+* Support for composite indexes (thanks to Jeffrey Gelens)
+* Add composite scope to validates_uniqueness
+* Added private/protected properties
+* Remove HasOneAssociation, Make HasManyAssociation impersonate has_one relationships
+* Added #get method
+* Persistence module added, inheriting from DataMapper::Base no longer necessary
+
+== 0.2.4
+* Bug fixes
+* Added paranoia
+
+== 0.2.3
+* Added String#t for translation and overrides for default validation messages
+* Give credit where it's due: zapnap, not pimpmaster, submitted the String#blank? patch. My bad. :-(
+* MAJOR: Resolve issue with non-unique-hash values and #dirty?; now frozen original values are stored instead
+* Added Base#update_attributes
+* MAJOR: Queries are now passed to the database drivers in a parameterized fashion
+* Updated PostgreSQL driver and adapter to current
+
+== 0.2.2
+* Removed C extension bundles and log files from package
+
+== 0.2.1
+* Added :float column support
+* Added association proxies: ie: Zoo.first.exhibits.animals
+* Columns stored in SortedSet
+* Swig files are no longer RDOCed
+* Added :date column support
+* BUG: Fixed UTC issues with datetimes
+* Added #to_yaml method
+* Added #to_xml method
+* Added #to_json method
+* BUG: Fixed HasManyAssociation::Set#inspect
+* BUG: Fixed #reload!
+* BUG: Column copy for STI moved into Table#initialize to better handle STI with multiple mapped databases
+* BUG: before_create callbacks moved in the execution flow since they weren't guaranteed to fire before
+* Threading enhancements: Removed single_threaded_mode, #database block form adjusted for thread-safety
+* BUG: Fixed String#blank? when a multi-line string contained a blank line (thanks zapnap!)
+* Performance enhancements: (thanks wycats!)
+
+== 0.2.0
+* AdvancedHasManyAssociation now functional for fetches
+* AdvancedHasManyAssociation renamed to HasNAssociation
+* HasManyAssociation refactored to use HasNAssociation superclass
+* Slight spec tweaks to accomodate the updates
+* HasOneAssociation refactored to use HasNAssociation superclass
+* Added HasAndBelongsToManyAssociation, using HasNAssociation as a basis; Need to add corresponding SQL generation code in AdvancedLoadCommand
+* Added spec for habtm query generation
+* HasNAssociation#foreign_key returns a DataMapper::Adapters::Sql::Mappings::Column instance instead of a raw String now
+* Added table, association, association_table and to_sql methods to HasNAssociation
+* Added associations_spec.rb
+* Added a forced table-recreation to spec_helper.rb so the tests could run with a clean version of the database, including any new columns added to the models
+* Added HasAndBelongsToManyAssociation#to_sql (all current specs pass now!)
+* Minor tweaks to Callbacks
+* Added CallbacksHelper to declare class-method ::callbacks on DataMapper::Base
+* Implemented before_validate and after_validate hooks in ValidationHelper
+* Minor documentation additions in callbacks.rb
+* Added callbacks_spec
+* Moved class-method declarations for built-in callbacks to the callbacks helper instead of DataMapper::Base
+* Renamed :before/after_validate callback to :before/after_validation to match ActiveRecord
+* Callbacks#add now accepts a Symbol which maps a callback to a method call on the targetted instance, also added a spec to verify this behavior
+* Documented callbacks.rb
+* Added DataMapper::Associations::Reference class
+* Documented DataMapper::Associations::Reference class
+* Upgraded BelongsToAssociation to new style
+* Added AssociationsSet to handle simple "last-in" for association bindings
+* Fixed extra spec loading
+* Added *Association#columns
+* Some refactoring in AdvancedLoadCommand regarding :include options
+* Added support for class-less Mappings::Table instances, with just a string name
+* HasAndBelongsToManyAssociation#join_table #left_foreign_key and #right_foreign_key reference actual Table or Column objects now
+* Added :shallow_include option for HABTM joins in AdvancedLoadCommand and corresponding spec
+* Added Commands::AdvancedConditions
+* Added ORDER, LIMIT, OFFSET and WHERE support to AdvancedLoadCommand
+* Renamed spec/has_many.rb to spec/has_many_spec.rb
+* Tweaked the loading of has_many relationships; big performance boost; got rid of an extra query
+* Added EmbeddedValue support, and accompanying spec
+* Fleshed out AdvancedConditions a bit; added conditions_spec.rb
+* Added more AdvancedConditions specs
+* Added Loader to handle multi-instanced rows
+* AdvancedLoadCommand replaced LoadCommand; down to 3 failing specs
+* All specs pass
+* Added :intercept_load finder option and accompanying spec
+* Modified :intercept_load block signature to |instance,columns,row|
+* HasAndBelongsToMany works, all specs pass
+* Fixed a couple bugs with keys; Added DataMapper::Base#key= method
+* Made DataMapper::Base#lazy_load! a little more flexible
+* Removed LoadCommand overwrites from MysqlAdapter
+* Default Database#single_threaded mode is true now
+* Removed MysqlAdapter#initialize, which only served to setup the connections, moved to SqlAdapter
+* Added SqlAdapter#create_connection and SqlAdapter#close_connection abstract methods
+* Added MysqlAdapter#create_connection and MysqlAdapter#close_connection concrete methods
+* Made SqlAdapter#connection a concrete method (instead of abstract), with support for single_threaded operation
+* Database#setup now takes a Hash of options instead of a block-initializer
+* Validation chaining should work for all association types
+* Save chaining should work for has_many associations
+* Added benchmarks for in-session performance to performance.rb
+* Removed block conditions; They're slower and don't offer any real advantages
+* Removed DeleteCommand
+* Removed SaveCommand
+* Removed TableExistsCommand
+* Session renamed to Context
+* Most command implementations moved to methods in SqlAdapter
+* Removed UnitOfWork module, instead moving a slightly refactored implementation into Base
+
+== 0.1.1
+* Removed /lib/data_mapper/extensions
+* Moved ActiveRecordImpersonation into DataMapper::Support module
+* Moved CallbackHelper methods into DataMapper::Base class
+* Moved ValidationHelper into DataMapper::Validations module
+* Removed LoadedSet since it's not necessary for it to reference the Database, so it's nothing more than an array now; Replaced with Array
+* Modified data_mapper.rb to load DataMapper::Support::Enumerable
+* Modified example.rb and performance.rb to require 'lib/data_mapper' instead of modifying $LOADPATH
+* Created SqlAdapter base-class
+* Refactored MysqlAdapter to use SqlAdapter superclass
+* Refactored Sqlite3Adapter to use SqlAdapter superclass
+* Moved /lib/data_mapper/queries to /lib/data_mapper/adapters/sql/queries
+* Moved Connection, Result and Reader classes along with Coersion and Quoting modules to DataMapper::Adapters::Sql module
+* Moved DataMapper::Adapters::Sql::Queries to ::Commands
+* Moved Mappings to SqlAdapter
+* Added monolithic DeleteCommand
+* Added monolithic SaveCommand
+* Added TableExistsCommand
+* Moved save/delete logic out of Session
+* Added create-table functionality to SaveCommand
+* Cleaned up Session; #find no longer supported, use #all or #first
+* Moved object materialization into LoadCommand
+* Migrated Sqlite3Adapter::Commands
+* Added Session#query support back in
+* Removed Connection/Reader/Result classes
+* Set DataMapper::Base#key on load to avoid double-hit against Schema
+* Added DataMapper::Support::Struct for increased Session#query performance
+* Added AdvancedHasManyAssociation (preview status)
+* Added benchmarks comparing ActiveRecord::Base::find_by_sql with Session#query
+
+== 0.1.0
+* Initial Public Release
@@ -0,0 +1,22 @@
+Copyright (c) 2007 Sam Smoot
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
Oops, something went wrong.

0 comments on commit bfd5e5f

Please sign in to comment.