-
Notifications
You must be signed in to change notification settings - Fork 11
/
activerecord-like.gemspec
46 lines (35 loc) · 1.81 KB
/
activerecord-like.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
# -*- encoding: utf-8 -*-
require File.expand_path('../lib/active_record/like/version', __FILE__)
gem_name = "activerecord-like"
Gem::Specification.new do |gem|
gem.name = gem_name
gem.version = ActiveRecord::Like::VERSION
gem.authors = [
"René van den Berg",
"PikachuEXE",
]
gem.email = %w[[email protected] [email protected]]
gem.description = %q{An ActiveRecord plugin providing a higher-level abstraction for SQL 'LIKE' queries}
gem.summary = %q{ActiveRecord::Like provides ActiveRecord::Base with where.like(attribute: string)-style extensions. This functionality was, at one point, included in Rails-master, but subsequently removed. Since the feature seemed to be in some demand, I thought I'd try my hand at building an ActiveRecord plugin}
gem.homepage = "http://github.com/ActiveRecordLike/#{gem_name}"
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.require_paths = ["lib"]
gem.metadata = {
"bug_tracker_uri" => "#{gem.homepage}/issues",
"changelog_uri" => "#{gem.homepage}/blob/master/CHANGELOG.md",
"source_code_uri" => gem.homepage,
}
gem.add_dependency "activerecord", ">= 7.0.0", "< 9.0"
# Required for Travis build to pass
gem.add_development_dependency "pg"
gem.add_development_dependency "mysql2"
gem.add_development_dependency "sqlite3"
gem.add_development_dependency "rake"
gem.add_development_dependency "minitest", ">= 3"
gem.add_development_dependency "appraisal", "~> 2.0"
gem.add_development_dependency "simplecov", ">= 0.22"
gem.add_development_dependency "simplecov-lcov", ">= 0.8"
gem.add_development_dependency "gem-release", ">= 2.0"
end