|
1 | | -# coding: utf-8 |
2 | | -lib = File.expand_path('../lib', __FILE__) |
| 1 | +# frozen_string_literal: true |
| 2 | + |
| 3 | +lib = File.expand_path('lib', __dir__) |
3 | 4 | $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) |
4 | 5 | require 'postgresql_cursor/version' |
5 | 6 |
|
6 | 7 | Gem::Specification.new do |spec| |
7 | | - spec.name = "postgresql_cursor" |
| 8 | + spec.name = 'postgresql_cursor' |
8 | 9 | spec.version = PostgresqlCursor::VERSION |
9 | | - spec.authors = ["Allen Fair"] |
10 | | - spec.email = ["[email protected]"] |
11 | | - spec.summary = "ActiveRecord PostgreSQL Adapter extension for using a cursor to return a large result set" |
12 | | - spec.description = "PostgreSQL Cursor is an extension to the ActiveRecord PostgreSQLAdapter for very large result sets. It provides a cursor open/fetch/close interface to access data without loading all rows into memory, and instead loads the result rows in \"chunks\" (default of 1_000 rows), buffers them, and returns the rows one at a time." |
13 | | - spec.homepage = "http://github.com/afair/postgresql_cursor" |
14 | | - spec.license = "MIT" |
| 10 | + spec.authors = ['Allen Fair'] |
| 11 | + spec.email = ['[email protected]'] |
| 12 | + spec.summary = <<-SUMMARY |
| 13 | + ActiveRecord PostgreSQL Adapter extension for using a cursor to return a |
| 14 | + large result set |
| 15 | + SUMMARY |
| 16 | + spec.description = <<-DESCRIPTION |
| 17 | + PostgreSQL Cursor is an extension to the ActiveRecord PostgreSQLAdapter for |
| 18 | + very large result sets. It provides a cursor open/fetch/close interface to |
| 19 | + access data without loading all rows into memory, and instead loads the result |
| 20 | + rows in 'chunks' (default of 1_000 rows), buffers them, and returns the rows |
| 21 | + one at a time. |
| 22 | + DESCRIPTION |
| 23 | + spec.homepage = 'http://github.com/afair/postgresql_cursor' |
| 24 | + spec.license = 'MIT' |
15 | 25 |
|
16 | 26 | spec.files = `git ls-files -z`.split("\x0") |
17 | 27 | spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } |
18 | 28 | spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) |
19 | | - spec.require_paths = ["lib"] |
| 29 | + spec.require_paths = ['lib'] |
| 30 | + |
| 31 | + # Remove this for jruby which should use 'activerecord-jdbcpostgresql-adapter' |
| 32 | + # spec.add_dependency 'pg' |
20 | 33 |
|
21 | | - #spec.add_dependency "pg" # Remove this for jruby, which should specify 'activerecord-jdbcpostgresql-adapter' |
22 | | - spec.add_dependency "activerecord", ">= 3.1.0" |
23 | | - #spec.add_dependency "activerecord", "~> 3.1.0" |
24 | | - # Tests don't run on 4.0.0 since AR/AS have an older version of minitest as a run-time dependency(!) than our tests support |
25 | | - #spec.add_dependency "activerecord", "~> 4.0.0";# spec.add_dependency "minitest", "~> 4.2.0" |
26 | | - #spec.add_dependency "activerecord", "~> 4.1.0" |
27 | | - #spec.add_dependency "activerecord", "~> 5.0.0.beta2" |
| 34 | + spec.add_dependency 'activerecord', '>= 3.1.0' |
| 35 | + # spec.add_dependency 'activerecord', '~> 3.1.0' |
| 36 | + # spec.add_dependency 'activerecord', '~> 4.1.0' |
| 37 | + # spec.add_dependency 'activerecord', '~> 5.0.0' |
| 38 | + # spec.add_dependency 'activerecord', '~> 6.0.0' |
28 | 39 |
|
29 | | - spec.add_development_dependency "pg" |
30 | | - spec.add_development_dependency "rake" |
31 | | - spec.add_development_dependency "minitest" |
| 40 | + spec.add_development_dependency 'irb' |
| 41 | + spec.add_development_dependency 'minitest' |
| 42 | + spec.add_development_dependency 'pg' |
| 43 | + spec.add_development_dependency 'rake' |
32 | 44 | end |
0 commit comments