-
Notifications
You must be signed in to change notification settings - Fork 25
/
sequel_pg.gemspec
39 lines (37 loc) · 1.92 KB
/
sequel_pg.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version_integer = File.readlines('ext/sequel_pg/sequel_pg.c').first.split.last.to_i
raise "invalid version" unless version_integer >= 10617
SEQUEL_PG_GEMSPEC = Gem::Specification.new do |s|
s.name = 'sequel_pg'
s.version = "#{version_integer/10000}.#{(version_integer%10000)/100}.#{version_integer%100}"
s.platform = Gem::Platform::RUBY
s.extra_rdoc_files = ["README.rdoc", "CHANGELOG", "MIT-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 = "[email protected]"
s.homepage = "http://github.com/jeremyevans/sequel_pg"
s.required_ruby_version = ">= 1.9.3"
s.files = %w(MIT-LICENSE CHANGELOG README.rdoc Rakefile ext/sequel_pg/extconf.rb ext/sequel_pg/sequel_pg.c lib/sequel_pg/sequel_pg.rb lib/sequel/extensions/pg_streaming.rb)
s.license = 'MIT'
s.extensions << 'ext/sequel_pg/extconf.rb'
s.add_dependency("pg", [">= 0.18.0", "!= 1.2.0"])
s.add_dependency("sequel", [">= 4.38.0"])
if s.respond_to?(:metadata=)
s.metadata = {
'bug_tracker_uri' => 'https://github.com/jeremyevans/sequel_pg/issues',
'changelog_uri' => 'https://github.com/jeremyevans/sequel_pg/blob/master/CHANGELOG',
'documentation_uri' => 'https://github.com/jeremyevans/sequel_pg/blob/master/README.rdoc',
'mailing_list_uri' => 'https://github.com/jeremyevans/sequel_pg/discussions',
'source_code_uri' => 'https://github.com/jeremyevans/sequel_pg',
}
end
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 than the pure ruby version
that Sequel uses by default.
sequel_pg also offers optimized versions of some dataset
methods, as well as adds support for using PostgreSQL
streaming.
END
end