This repository has been archived by the owner on Oct 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
prefactory.gemspec
47 lines (41 loc) · 1.91 KB
/
prefactory.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
# encoding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'prefactory/version'
rspec_version = if ENV["RSPEC_VERSION"].to_s == ''
nil
else
"~> #{ENV['RSPEC_VERSION']}"
end
active_record_version = case ENV["ACTIVE_RECORD_VERSION"].to_s
when 'master'
{ github: "rails/activerecord" }
when ''
">= 4"
else
"~> #{ENV['ACTIVE_RECORD_VERSION']}"
end
Gem::Specification.new do |spec|
spec.name = 'prefactory'
spec.version = Prefactory::VERSION
spec.authors = ['[email protected]']
spec.email = ['[email protected]']
spec.summary = %q{Transaction-wrapped RSpec example groups with FactoryGirl integration}
spec.description = %q{Create factory objects in before-all blocks for fixture-like performance}
spec.homepage = 'https://github.com/socialcast/prefactory'
spec.license = 'MIT'
spec.files = `git ls-files`.split($/)
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']
spec.add_dependency 'rspec_around_all', '~> 0'
spec.add_dependency('rspec', rspec_version) if rspec_version
spec.add_dependency 'activerecord', active_record_version
spec.add_dependency 'railties', active_record_version
spec.add_dependency 'factory_girl_rails', '~> 4'
spec.add_development_dependency 'mysql2', '~> 0.3'
spec.add_development_dependency 'sqlite3', '~> 1'
spec.add_development_dependency 'bundler', '~> 1'
spec.add_development_dependency 'rake', '>= 10.0'
spec.add_development_dependency 'socialcast-git-extensions', '>= 4'
end