Sha256: ec22e82ba36d01821c739e331cf432cb12ab1eb4fd59509e1cb3350eaf4ba004

Contents?: true

Size: 1.38 KB

Versions: 3

Compression:

Stored size: 1.38 KB

Contents

= dm-gen


dm-gen is a collection of generators for DataMapper, to allieviate the need to
type boilerplate code to get started on a project. dm-gen uses
templater[http://github.com/jnicklas/templater] as a base.

== The Generators

=== one_file


The one file generator generates a single file, which sets up a connection to an
in memory sqlite3 database, along with debug logging and a example model, which
it then automigrates.  One file scripts are great to use as demonstration,
either of a bug, or just how to do something.

  dm-gen one_file validations_example


=== is


The is generator generates an 'is' plugin structure, appropriate for plugins
such as dm-is-list, dm-is-remixable etc.  A complete plugin structure is
generated, including a Rakefile and spec suite skeleton.

  dm-gen is example


=== adapter


The adapter generator generates an adapter structure, appropriate for adapters
to new data-sources, such as couchdb, YAML files, or anything else.  A complete
plugin structure is generated.  The adapter file generated comes with a lot of
documentation explaining the arguments and returns of the 4 methods in the DM
adaptor API.

  dm-gen adapter example

NB: This generates adapters with the 0.10.x API NOT the 0.9.x API.  So make sure
you're running DM from the next branch, or from http://gems.datamapper.org/

== COPYRIGHT

Copyright (c) 2008-2009 Jonathan Stott. See LICENSE for details.

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
namelessjon-dm-gen-0.3.1 README.rdoc
namelessjon-dm-gen-0.4.0 README.rdoc
dm-gen-0.4.1 README.rdoc