-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
strip_attributes.gemspec
34 lines (29 loc) · 1.61 KB
/
strip_attributes.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
# -*- encoding: utf-8 -*-
lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "strip_attributes/version"
Gem::Specification.new do |spec|
spec.name = "strip_attributes"
spec.version = StripAttributes::VERSION
spec.authors = ["Ryan McGeary"]
spec.email = ["ryan@mcgeary.org"]
spec.homepage = "https://github.com/rmm5t/strip_attributes"
spec.summary = "Whitespace cleanup for ActiveModel attributes"
spec.description = "StripAttributes automatically strips all ActiveRecord model attributes of leading and trailing whitespace before validation. If the attribute is blank, it strips the value to nil."
spec.license = "MIT"
spec.files = `git ls-files -- {app,bin,lib,test,spec}/* {LICENSE*,Rakefile,README*}`.split("\n")
spec.test_files = `git ls-files -- {test,spec}/*`.split("\n")
spec.require_paths = ["lib"]
spec.metadata = {
"bug_tracker_uri" => "https://github.com/rmm5t/strip_attributes/issues",
"changelog_uri" => "https://github.com/rmm5t/strip_attributes/blob/master/CHANGELOG.md",
"source_code_uri" => "https://github.com/rmm5t/strip_attributes",
}
spec.add_runtime_dependency "activemodel", ">= 3.0", "< 8.0"
spec.add_development_dependency "active_attr", "~> 0.15"
spec.add_development_dependency "minitest", ">= 5.0", "< 6.0"
spec.add_development_dependency "minitest-matchers_vaccine", "~> 1.0" unless ENV["SKIP_VACCINE"]
spec.add_development_dependency "minitest-reporters", ">= 0.14.24"
spec.add_development_dependency "rake"
spec.required_ruby_version = '>= 1.9.3'
end