Use rake instead of guard for erb compilation
This commit is contained in:
@@ -14,17 +14,16 @@ Development
|
||||
ERB Templating
|
||||
--------------
|
||||
|
||||
Sometimes Go code can be repetitive especially with dealing with functions that only differ in the type (e.g. ReadInt16, ReadInt32, ReadInt64). Some of this repetition can be eliminated by using a template preprocessor. pgx uses Ruby erb templates. Files that end in .go.erb are used to produce the corresponding .go files. These files can be automatically processed with guard -- a Ruby file and directory watcher.
|
||||
Sometimes Go code can be repetitive especially with dealing with functions that only differ in the type (e.g. ReadInt16, ReadInt32, ReadInt64). Some of this repetition can be eliminated by using a template preprocessor. pgx uses Ruby erb templates. Files that end in .go.erb are used to produce the corresponding .go files. These files are automatically automatically processed with [rake](https://github.com/jimweirich/rake).
|
||||
|
||||
Prerequisites:
|
||||
|
||||
* Ruby
|
||||
* guard
|
||||
* guard-tilt
|
||||
* Rake
|
||||
|
||||
To automatically process .go.erb files open a shell in the pgx directory and run:
|
||||
To automatically process .go.erb files and run the tests:
|
||||
|
||||
jack@hk-47~/dev/pgx$ guard
|
||||
jack@hk-47~/dev/pgx$ rake test
|
||||
|
||||
Testing
|
||||
-------
|
||||
|
||||
Reference in New Issue
Block a user