-
Notifications
You must be signed in to change notification settings - Fork 28
/
auto_strip_attributes.gemspec
31 lines (24 loc) · 1.38 KB
/
auto_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
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "auto_strip_attributes/version"
Gem::Specification.new do |s|
s.name = "auto_strip_attributes"
s.version = AutoStripAttributes::VERSION
s.authors = ["Olli Huotari"]
s.email = ["olli.huotari@iki.fi"]
s.homepage = "https://github.com/holli/auto_strip_attributes"
s.summary = "Removes unnecessary whitespaces in attributes. Extension to ActiveRecord or ActiveModel."
s.description = "AutoStripAttributes helps to remove unnecessary whitespaces from ActiveRecord or ActiveModel attributes. It's good for removing accidental spaces from user inputs. It works by adding a before_validation hook to the record. It has option to set empty strings to nil or to remove extra spaces inside the string."
s.license = "MIT"
s.rubyforge_project = "auto_strip_attributes"
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
s.add_runtime_dependency "activerecord", ">= 4.0"
#s.add_development_dependency "activerecord", ">= 3.0"
s.add_development_dependency "minitest", ">= 3.0"
s.add_development_dependency "mocha", "~> 2.0"
s.add_development_dependency 'rake'
# s.add_development_dependency 'pry'
end