-
Notifications
You must be signed in to change notification settings - Fork 6
/
query-matchers.gemspec
40 lines (32 loc) · 1.76 KB
/
query-matchers.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
# frozen_string_literal: true
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'ar_query_matchers/version'
Gem::Specification.new do |spec|
spec.name = 'ar-query-matchers'
spec.version = File.read(File.join(File.dirname(__FILE__), './VERSION'))
spec.authors = ['Matan Zruya']
spec.email = ['mzruya@gmail.com']
spec.summary = 'Ruby test matchers for instrumenting ActiveRecord query counts'
spec.description = 'These RSpec matchers allow guarding against N+1 queries by specifying exactly how many queries you expect each of your ActiveRecord models to perform.'
spec.homepage = 'https://github.com/Gusto/ar-query-matchers'
spec.license = 'MIT'
raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.' unless spec.respond_to?(:metadata)
spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = spec.homepage
spec.metadata['changelog_uri'] = "#{spec.homepage}/blob/master/CHANGELOG.md"
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
spec.files = Dir['README.md', 'CHANGELOG.md', 'LICENSE.txt', 'lib/**/*']
spec.require_paths = ['lib']
spec.add_runtime_dependency 'activerecord', '>= 4.0'
spec.add_runtime_dependency 'activesupport', '>= 4.0'
spec.add_runtime_dependency 'rspec', '~> 3.0'
spec.add_development_dependency 'appraisal'
spec.add_development_dependency 'bundler'
spec.add_development_dependency 'byebug'
spec.add_development_dependency 'rake'
spec.add_development_dependency 'rspec'
spec.add_development_dependency 'rubocop'
spec.add_development_dependency 'sqlite3'
end