From 6ab233c6f99052c6a42ac54c39acf00ef1595673 Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 29 Jun 2013 12:09:41 -0500 Subject: [PATCH] Remove ERB templating support --- README.md | 14 -------------- Rakefile | 14 -------------- 2 files changed, 28 deletions(-) delete mode 100644 Rakefile diff --git a/README.md b/README.md index 73b580cc..0fd86e6a 100644 --- a/README.md +++ b/README.md @@ -11,20 +11,6 @@ TODO 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 are automatically automatically processed with [rake](https://github.com/jimweirich/rake). - -Prerequisites: - -* Ruby -* Rake - -To automatically process .go.erb files and run the tests: - - jack@hk-47~/dev/pgx$ rake test - Testing ------- diff --git a/Rakefile b/Rakefile deleted file mode 100644 index 0796d83f..00000000 --- a/Rakefile +++ /dev/null @@ -1,14 +0,0 @@ -require 'rake/clean' - -ERB = FileList['*.go.erb'] -GO = ERB.ext -CLEAN.include(GO) - -rule '.go' => '.go.erb' do |t| - sh "erb #{t.source} > #{t.name}" -end - -desc "Run tests" -task :test => GO do - sh "go test" -end