Sha256: 60c49dedb2399540478c2dc589d585a5a375f44dae50d2816b4bafa59a1e1c77

Contents?: true

Size: 1.23 KB

Versions: 5

Compression:

Stored size: 1.23 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


== COPYRIGHT

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
namelessjon-dm-gen-0.2.2 README.rdoc
namelessjon-dm-gen-0.2.3 README.rdoc
namelessjon-dm-gen-0.2.4 README.rdoc
namelessjon-dm-gen-0.2.5 README.rdoc
namelessjon-dm-gen-0.3.0 README.rdoc