Permalink
Browse files

Add a gemspec and gem task to build the gem

  • Loading branch information...
1 parent ce2b258 commit 175424db3a0b977efa0f1d4d31d1686db9453392 @jeremyevans committed Aug 28, 2010
Showing with 28 additions and 0 deletions.
  1. +6 −0 Rakefile
  2. +22 −0 sequel_pg.gemspec
View
@@ -9,3 +9,9 @@ desc "Build the extension"
task :build=>[:clean] do
sh %{cd ext/sequel_pg && #{RUBY} extconf.rb && make}
end
+
+desc "Build the gem"
+task :gem do
+ sh %{gem build sequel_pg.gemspec}
+end
+
View
@@ -0,0 +1,22 @@
+SEQUEL_PG_GEMSPEC = Gem::Specification.new do |s|
+ s.name = 'sequel_pg'
+ s.version = '0.9.0'
+ s.platform = Gem::Platform::RUBY
+ s.has_rdoc = false
+ s.extra_rdoc_files = ["README.rdoc", "CHANGELOG", "LICENSE"]
+ s.rdoc_options += ["--quiet", "--line-numbers", "--inline-source", '--title', 'sequel_pg: Faster SELECTs when using Sequel with pg', '--main', 'README.rdoc']
+ s.summary = "Faster SELECTs when using Sequel with pg"
+ s.author = "Jeremy Evans"
+ s.email = "code@jeremyevans.net"
+ s.homepage = "http://github.com/jeremyevans/sequel_pg"
+ s.required_ruby_version = ">= 1.8.6"
+ s.files = %w(LICENSE CHANGELOG README.rdoc Rakefile ext/sequel_pg/extconf.rb ext/sequel_pg/sequel_pg.c)
+ s.require_path = "ext/sequel_pg"
+ s.extensions << 'ext/sequel_pg/extconf.rb'
+ s.description = <<END
+sequel_pg overwrites the inner loop of the Sequel postgres
+adapter row fetching code with a C version. The C version
+is significantly faster (2-6x) than the pure ruby version
+that Sequel uses by default.
+END
+end

0 comments on commit 175424d

Please sign in to comment.