diff options
author | Dickson S. Guedes | 2011-05-13 04:59:20 +0000 |
---|---|---|
committer | Dickson S. Guedes | 2011-05-13 04:59:20 +0000 |
commit | e67ed03ef3745f97c88eeb2de369eff071e97197 (patch) | |
tree | 266d4c9eb6104ce43167a51c8a34bfc613f27686 | |
parent | d77609aab308688948f6f206f66763d71b8e123d (diff) |
fixed libdir for control file and added version testv0.0.4
-rw-r--r-- | lib/pgxn_utils/templates/root/%extension_name%.control.tt | 4 | ||||
-rw-r--r-- | lib/pgxn_utils/version.rb | 2 | ||||
-rw-r--r-- | spec/cli_spec.rb | 3 |
3 files changed, 5 insertions, 4 deletions
diff --git a/lib/pgxn_utils/templates/root/%extension_name%.control.tt b/lib/pgxn_utils/templates/root/%extension_name%.control.tt index 395dc27..9bd8a53 100644 --- a/lib/pgxn_utils/templates/root/%extension_name%.control.tt +++ b/lib/pgxn_utils/templates/root/%extension_name%.control.tt @@ -1,5 +1,5 @@ # <%= extension_name %> extension comment = '<%= abstract %>' -default_version = '1.0.0' -module_pathname = '/<%= extension_name %>' +default_version = '<%= version %>' +module_pathname = '$libdir/<%= extension_name %>' relocatable = true diff --git a/lib/pgxn_utils/version.rb b/lib/pgxn_utils/version.rb index 3e7cd3e..8fd09e0 100644 --- a/lib/pgxn_utils/version.rb +++ b/lib/pgxn_utils/version.rb @@ -1,3 +1,3 @@ module PgxnUtils - VERSION = "0.0.3" + VERSION = "0.0.4" end diff --git a/spec/cli_spec.rb b/spec/cli_spec.rb index 2005756..57cb7b7 100644 --- a/spec/cli_spec.rb +++ b/spec/cli_spec.rb @@ -52,7 +52,8 @@ describe PgxnUtils::CLI do makefile.should match(/EXTENSION = #{expected_extension}/) control = File.read("/tmp/#{expected_extension}/#{expected_extension}.control") - control.should match(/module_pathname = '\/#{expected_extension}'/) + control.should match(/module_pathname = '\$libdir\/#{expected_extension}'/) + control.should match(/default_version = '#{expected_version}'/) end it "should generates a skeleton" do |