forked from rmm5t/strip_attributes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
strip_attributes.gemspec
25 lines (22 loc) · 1.13 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
# -*- 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 |gem|
gem.name = "strip_attributes"
gem.version = StripAttributes::VERSION
gem.authors = ["Ryan McGeary"]
gem.email = ["[email protected]"]
gem.homepage = "https://github.com/rmm5t/strip_attributes"
gem.summary = "Whitespace cleanup for ActiveModel attributes"
gem.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."
gem.license = "MIT"
gem.files = Dir["{lib,test}/**/*", "README*"]
gem.test_files = Dir["{test}/**/*"]
gem.require_paths = ["lib"]
gem.add_runtime_dependency "activemodel", ">= 3.0", "< 5.0"
gem.add_development_dependency "active_attr", "~> 0.7"
gem.add_development_dependency "minitest-matchers", "~> 1.2"
gem.add_development_dependency "minitest", "~> 4.7"
gem.add_development_dependency "rake", "~> 10.1.1" # 10.2 requires ruby 1.9
end