Permalink
Browse files

fixed libdir for control file and added version test

  • Loading branch information...
1 parent d77609a commit e67ed03ef3745f97c88eeb2de369eff071e97197 @guedes committed May 13, 2011
Showing with 5 additions and 4 deletions.
  1. +2 −2 lib/pgxn_utils/templates/root/%extension_name%.control.tt
  2. +1 −1 lib/pgxn_utils/version.rb
  3. +2 −1 spec/cli_spec.rb
@@ -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
@@ -1,3 +1,3 @@
module PgxnUtils
- VERSION = "0.0.3"
+ VERSION = "0.0.4"
end
View
@@ -52,7 +52,8 @@
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

0 comments on commit e67ed03

Please sign in to comment.