-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathstrip_attributes.gemspec
37 lines (31 loc) · 1.62 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
35
36
37
# -*- 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|
username = "rmm5t"
spec.name = "strip_attributes"
spec.version = StripAttributes::VERSION
spec.authors = ["Ryan McGeary"]
spec.email = ["[email protected]"]
spec.homepage = "https://github.com/#{username}/#{spec.name}"
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" => "#{spec.homepage}/issues",
"changelog_uri" => "#{spec.homepage}/blob/master/CHANGELOG.md",
"source_code_uri" => spec.homepage,
"funding_uri" => "https://github.com/sponsors/#{username}",
}
spec.add_runtime_dependency "activemodel", ">= 3.0", "< 9.0"
spec.add_development_dependency "active_attr", "~> 0.15"
spec.add_development_dependency "minitest", "~> 5.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