forked from spilliton/randumb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrandumb.gemspec
42 lines (37 loc) · 1.25 KB
/
randumb.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
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "randumb/version"
Gem::Specification.new do |s|
s.name = "randumb"
s.license = 'MIT'
s.version = Randumb::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ["Zachary Kloepping"]
s.homepage = "https://github.com/spilliton/randumb"
s.summary = "Adds the ability to pull random records from ActiveRecord"
s.files = Dir['lib/**/*.rb']
s.test_files = Dir['test/**/*.rb']
s.add_dependency 'rake'
# need to test different versions of active record
ar_env = ENV['ACTIVE_RECORD_VERSION'] || '>= 3.0.0'
ar_env = ">= 4.0.0" if ar_env == 'latest'
s.add_dependency 'activesupport', ar_env
s.add_dependency 'activerecord', ar_env
# for gem dev
db_env = ENV['DB'] || 'sqlite3'
case db_env
when 'sqlite3'
s.add_development_dependency 'sqlite3', '1.3.7'
when 'mysql'
if ar_env =~ /^3\.0/
s.add_development_dependency 'mysql2', '< 0.3'
else
s.add_development_dependency 'mysql2', '~> 0.3.11'
end
when 'postgres'
s.add_development_dependency 'pg'
end
s.add_development_dependency "shoulda"
s.add_development_dependency "factory_girl", "~> 3.0"
s.add_development_dependency "faker"
end