pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/ruby-activemodel42 Import ruby-activemodel-4.2.8...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9c3076e70394
branches:  trunk
changeset: 361223:9c3076e70394
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Tue Apr 18 02:05:27 2017 +0000

description:
Import ruby-activemodel-4.2.8 as devel/ruby-activemodel42

Notable changes since 3.2:

- Add ActiveModel::ForbiddenAttributesProtection, a simple module to
  protect attributes from mass assignment when non-permitted attributes
  are passed.
- Added ActiveModel::Model, a mixin to make Ruby objects work with
  Action Pack out of box.
- Added new API methods reset_changes and changes_applied to
  ActiveModel::Dirty that control changes state.
- Ability to specify multiple contexts when defining a validation.
- attribute_changed? now accepts a hash to check if the attribute was
  changed :from and/or :to a given value.
- Introduced validate as an alias for valid?.
- Introduced the restore_attributes method in ActiveModel::Dirty to
  restore the changed (dirty) attributes to their previous values.
- has_secure_password no longer disallows blank passwords (i.e.
  passwords that contains only spaces) by default.
- has_secure_password now verifies that the given password is less than
  72 characters if validations are enabled.

diffstat:

 devel/ruby-activemodel42/DESCR    |   4 +++
 devel/ruby-activemodel42/Makefile |  18 +++++++++++++++++
 devel/ruby-activemodel42/PLIST    |  41 +++++++++++++++++++++++++++++++++++++++
 devel/ruby-activemodel42/distinfo |   6 +++++
 4 files changed, 69 insertions(+), 0 deletions(-)

diffs (85 lines):

diff -r 4e77fcf7e634 -r 9c3076e70394 devel/ruby-activemodel42/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-activemodel42/DESCR    Tue Apr 18 02:05:27 2017 +0000
@@ -0,0 +1,4 @@
+Active Model provides a known set of interfaces for usage in model classes.
+They allow for Action Pack helpers to interact with non-ActiveRecord models,
+for example. Active Model also helps building custom ORMs for use outside of
+the Rails framework.
diff -r 4e77fcf7e634 -r 9c3076e70394 devel/ruby-activemodel42/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-activemodel42/Makefile Tue Apr 18 02:05:27 2017 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2017/04/18 02:05:27 minskim Exp $
+
+DISTNAME=      activemodel-${RUBY_RAILS_VERSION}
+CATEGORIES=    devel
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://www.rubyonrails.org/
+COMMENT=       Toolkit for building modeling frameworks (part of Rails 4.2)
+LICENSE=       mit
+
+DEPENDS+=      ${RUBY_ACTIVESUPPORT_DEPENDS}
+DEPENDS+=      ${RUBY_PKGPREFIX}-builder>=3.1:../../textproc/ruby-builder
+
+RUBY_RAILS_SUPPORTED=  42
+RUBY_RAILS_STRICT_DEP= yes
+
+.include "../../lang/ruby/gem.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 4e77fcf7e634 -r 9c3076e70394 devel/ruby-activemodel42/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-activemodel42/PLIST    Tue Apr 18 02:05:27 2017 +0000
@@ -0,0 +1,41 @@
+@comment $NetBSD: PLIST,v 1.1 2017/04/18 02:05:27 minskim Exp $
+${GEM_HOME}/cache/${GEM_NAME}.gem
+${GEM_LIBDIR}/CHANGELOG.md
+${GEM_LIBDIR}/MIT-LICENSE
+${GEM_LIBDIR}/README.rdoc
+${GEM_LIBDIR}/lib/active_model.rb
+${GEM_LIBDIR}/lib/active_model/attribute_methods.rb
+${GEM_LIBDIR}/lib/active_model/callbacks.rb
+${GEM_LIBDIR}/lib/active_model/conversion.rb
+${GEM_LIBDIR}/lib/active_model/dirty.rb
+${GEM_LIBDIR}/lib/active_model/errors.rb
+${GEM_LIBDIR}/lib/active_model/forbidden_attributes_protection.rb
+${GEM_LIBDIR}/lib/active_model/gem_version.rb
+${GEM_LIBDIR}/lib/active_model/lint.rb
+${GEM_LIBDIR}/lib/active_model/locale/en.yml
+${GEM_LIBDIR}/lib/active_model/model.rb
+${GEM_LIBDIR}/lib/active_model/naming.rb
+${GEM_LIBDIR}/lib/active_model/railtie.rb
+${GEM_LIBDIR}/lib/active_model/secure_password.rb
+${GEM_LIBDIR}/lib/active_model/serialization.rb
+${GEM_LIBDIR}/lib/active_model/serializers/json.rb
+${GEM_LIBDIR}/lib/active_model/serializers/xml.rb
+${GEM_LIBDIR}/lib/active_model/test_case.rb
+${GEM_LIBDIR}/lib/active_model/translation.rb
+${GEM_LIBDIR}/lib/active_model/validations.rb
+${GEM_LIBDIR}/lib/active_model/validations/absence.rb
+${GEM_LIBDIR}/lib/active_model/validations/acceptance.rb
+${GEM_LIBDIR}/lib/active_model/validations/callbacks.rb
+${GEM_LIBDIR}/lib/active_model/validations/clusivity.rb
+${GEM_LIBDIR}/lib/active_model/validations/confirmation.rb
+${GEM_LIBDIR}/lib/active_model/validations/exclusion.rb
+${GEM_LIBDIR}/lib/active_model/validations/format.rb
+${GEM_LIBDIR}/lib/active_model/validations/inclusion.rb
+${GEM_LIBDIR}/lib/active_model/validations/length.rb
+${GEM_LIBDIR}/lib/active_model/validations/numericality.rb
+${GEM_LIBDIR}/lib/active_model/validations/presence.rb
+${GEM_LIBDIR}/lib/active_model/validations/validates.rb
+${GEM_LIBDIR}/lib/active_model/validations/with.rb
+${GEM_LIBDIR}/lib/active_model/validator.rb
+${GEM_LIBDIR}/lib/active_model/version.rb
+${GEM_HOME}/specifications/${GEM_NAME}.gemspec
diff -r 4e77fcf7e634 -r 9c3076e70394 devel/ruby-activemodel42/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-activemodel42/distinfo Tue Apr 18 02:05:27 2017 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/04/18 02:05:27 minskim Exp $
+
+SHA1 (activemodel-4.2.8.gem) = b82e9fe90171934f3fb16b44b6f15abc5e2e942b
+RMD160 (activemodel-4.2.8.gem) = c1710dca72f2b11ad1b6b59248c7a46ed160b884
+SHA512 (activemodel-4.2.8.gem) = 8f54234018cc7be166adada5ffd4d134815714f4230586bb8217903e350ed77d5676cf9146b1cef32ec245f6577d5aa2c025991bb9b5ad995e609a1877f3b2ff
+Size (activemodel-4.2.8.gem) = 45568 bytes



Home | Main Index | Thread Index | Old Index