2017-07-16 13:11:16 -04:00
# frozen_string_literal: true
2017-05-15 10:17:28 -04:00
version = File . read ( File . expand_path ( " ../RAILS_VERSION " , __dir__ ) ) . strip
2010-03-01 23:36:54 -05:00
2009-08-31 20:20:44 -04:00
Gem :: Specification . new do | s |
2010-04-01 16:44:09 -04:00
s . platform = Gem :: Platform :: RUBY
2016-08-06 13:23:48 -04:00
s . name = " activemodel "
2010-04-01 16:44:09 -04:00
s . version = version
2016-08-06 13:23:48 -04:00
s . summary = " A toolkit for building modeling frameworks (part of Rails). "
s . description = " A toolkit for building modeling frameworks like Active Record. Rich support for attributes, callbacks, validations, serialization, internationalization, and testing. "
2010-04-01 16:46:04 -04:00
2018-02-17 16:02:18 -05:00
s . required_ruby_version = " >= 2.4.1 "
2009-08-31 20:20:44 -04:00
2016-08-06 13:23:48 -04:00
s . license = " MIT "
2012-11-08 14:51:18 -05:00
2016-08-06 13:23:48 -04:00
s . author = " David Heinemeier Hansson "
s . email = " david@loudthinking.com "
s . homepage = " http://rubyonrails.org "
2010-04-01 16:44:09 -04:00
2016-08-06 13:23:48 -04:00
s . files = Dir [ " CHANGELOG.md " , " MIT-LICENSE " , " README.rdoc " , " lib/**/* " ]
s . require_path = " lib "
2009-09-25 01:46:04 -04:00
2017-06-27 06:06:28 -04:00
s . metadata = {
" source_code_uri " = > " https://github.com/rails/rails/tree/v #{ version } /activemodel " ,
" changelog_uri " = > " https://github.com/rails/rails/blob/v #{ version } /activemodel/CHANGELOG.md "
}
2018-11-06 18:05:40 -05:00
# NOTE: Please read our dependency guidelines before updating versions:
# https://edgeguides.rubyonrails.org/security.html#dependency-management-and-cves
2016-08-06 13:23:48 -04:00
s . add_dependency " activesupport " , version
2009-08-31 20:20:44 -04:00
end