This repository has been archived by the owner on Jul 30, 2021. It is now read-only.
forked from seamusabshere/upsert
-
Notifications
You must be signed in to change notification settings - Fork 0
/
upsert.gemspec
65 lines (57 loc) · 2.45 KB
/
upsert.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/upsert/version', __FILE__)
Gem::Specification.new do |gem|
gem.authors = ["Seamus Abshere", "Phil Schalm"]
gem.email = ["[email protected]"]
t = %{Make it easy to upsert on MySQL, PostgreSQL, and SQLite3. Transparently creates merge functions for MySQL and PostgreSQL; on SQLite3, uses INSERT OR IGNORE.}
gem.description = t
gem.summary = t
gem.homepage = "https://github.com/seamusabshere/upsert"
gem.files = `git ls-files`.split($\)
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
gem.name = "upsert"
gem.require_paths = ["lib"]
gem.version = Upsert::VERSION
# NOTE: no runtime dependencies!
gem.add_development_dependency 'rspec-core'
gem.add_development_dependency 'rspec-expectations'
gem.add_development_dependency 'rspec-mocks'
gem.add_development_dependency 'activerecord', '~>3'
gem.add_development_dependency 'active_record_inline_schema'
gem.add_development_dependency 'yard'
gem.add_development_dependency 'pry'
gem.add_development_dependency 'pg-hstore', ">=1.1.3"
gem.add_development_dependency 'sequel'
gem.add_development_dependency 'rake', '~>10.1.1'
if RUBY_VERSION >= '1.9'
gem.add_development_dependency 'activerecord-import', '0.11.0' # 0.12 and up were failing
else
gem.add_development_dependency 'orderedhash'
end
if RUBY_PLATFORM == 'java'
gem.add_development_dependency 'jruby-openssl'
gem.add_development_dependency 'jdbc-postgres'
gem.add_development_dependency 'jdbc-mysql'
gem.add_development_dependency 'jdbc-sqlite3'
gem.add_development_dependency 'activerecord-jdbcsqlite3-adapter'
gem.add_development_dependency 'activerecord-jdbcmysql-adapter'
gem.add_development_dependency 'activerecord-jdbcpostgresql-adapter'
else
gem.add_development_dependency 'activerecord-postgresql-adapter'
gem.add_development_dependency 'sqlite3'
gem.add_development_dependency 'mysql2', '~> 0.3.10'
gem.add_development_dependency 'pg', '~> 0.18.0'
# github-flavored markdown
if RUBY_VERSION >= '1.9'
gem.add_development_dependency 'redcarpet'
else
gem.add_development_dependency 'redcarpet', '~> 2.3.0'
end
end
if RUBY_VERSION <= '1.9.3'
gem.add_development_dependency 'faker', '1.6.3'
else
gem.add_development_dependency 'faker'
end
end