pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/ruby-actionpack Import ruby-actionpack.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ac8242e30f09
branches:  trunk
changeset: 492329:ac8242e30f09
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Sun Apr 10 04:11:28 2005 +0000

description:
Import ruby-actionpack.

Action Pack splits the response to a web request into a controller
part (performing the logic) and a view part (rendering a template).
This two-step approach is known as an action, which will normally
create, read, update, or delete (CRUD for short) some sort of model
part (often backed by a database) before choosing either to render a
template or redirecting to another action.

Action Pack implements these actions as public methods on Action
Controllers and uses Action Views to implement the template rendering.
Action Controllers are then responsible for handling all the actions
relating to a certain part of an application.  This grouping usually
consists of actions for lists and for CRUDs revolving around a single
(or a few) model objects.  So ContactController would be responsible
for listing contacts, creating, deleting, and updating contacts.  A
WeblogController could be responsible for both posts and comments.

Action View templates are written using embedded Ruby in tags mingled
in with the HTML.  To avoid cluttering the templates with code, a
bunch of helper classes provide common behavior for forms, dates, and
strings.  And it's easy to add specific helpers to keep the separation
as the application evolves.

diffstat:

 www/ruby-actionpack/DESCR            |  21 +++++++++
 www/ruby-actionpack/Makefile         |  25 +++++++++++
 www/ruby-actionpack/PLIST            |  76 ++++++++++++++++++++++++++++++++++++
 www/ruby-actionpack/distinfo         |   6 ++
 www/ruby-actionpack/patches/patch-aa |  31 ++++++++++++++
 5 files changed, 159 insertions(+), 0 deletions(-)

diffs (179 lines):

diff -r 1cc7590a6769 -r ac8242e30f09 www/ruby-actionpack/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ruby-actionpack/DESCR Sun Apr 10 04:11:28 2005 +0000
@@ -0,0 +1,21 @@
+Action Pack splits the response to a web request into a controller
+part (performing the logic) and a view part (rendering a template).
+This two-step approach is known as an action, which will normally
+create, read, update, or delete (CRUD for short) some sort of model
+part (often backed by a database) before choosing either to render a
+template or redirecting to another action.
+
+Action Pack implements these actions as public methods on Action
+Controllers and uses Action Views to implement the template rendering.
+Action Controllers are then responsible for handling all the actions
+relating to a certain part of an application.  This grouping usually
+consists of actions for lists and for CRUDs revolving around a single
+(or a few) model objects.  So ContactController would be responsible
+for listing contacts, creating, deleting, and updating contacts.  A
+WeblogController could be responsible for both posts and comments.
+
+Action View templates are written using embedded Ruby in tags mingled
+in with the HTML.  To avoid cluttering the templates with code, a
+bunch of helper classes provide common behavior for forms, dates, and
+strings.  And it's easy to add specific helpers to keep the separation
+as the application evolves.
diff -r 1cc7590a6769 -r ac8242e30f09 www/ruby-actionpack/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ruby-actionpack/Makefile      Sun Apr 10 04:11:28 2005 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/04/10 04:11:28 minskim Exp $
+
+DISTNAME=      actionpack-1.7.0
+PKGNAME=       ${RUBY_PKGPREFIX}-${DISTNAME}
+CATEGORIES=    www ruby
+MASTER_SITES=  http://rubyforge.org/frs/download.php/3684/
+EXTRACT_SUFX=  .tgz
+
+MAINTAINER=    minskim%NetBSD.org@localhost
+HOMEPAGE=      http://ap.rubyonrails.com/
+COMMENT=       Two-step approach to web response generation
+
+DEPENDS+=      ${RUBY_PKGPREFIX}-activesupport-[0-9]*:../../devel/ruby-activesupport
+
+NO_BUILD=              yes
+NO_CONFIGURE=          yes
+USE_RUBY_INSTALL=      yes
+
+.include "../../lang/ruby/modules.mk"
+
+post-install:
+       ${INSTALL_DATA_DIR} ${RUBY_DOCDIR}/actionpack
+       ${INSTALL_DATA} ${WRKSRC}/README ${RUBY_DOCDIR}/actionpack
+
+.include "../../mk/bsd.pkg.mk"
diff -r 1cc7590a6769 -r ac8242e30f09 www/ruby-actionpack/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ruby-actionpack/PLIST Sun Apr 10 04:11:28 2005 +0000
@@ -0,0 +1,76 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/04/10 04:11:28 minskim Exp $
+${RUBY_SITELIBDIR}/action_controller.rb
+${RUBY_SITELIBDIR}/action_controller/assertions/action_pack_assertions.rb
+${RUBY_SITELIBDIR}/action_controller/assertions/active_record_assertions.rb
+${RUBY_SITELIBDIR}/action_controller/base.rb
+${RUBY_SITELIBDIR}/action_controller/benchmarking.rb
+${RUBY_SITELIBDIR}/action_controller/caching.rb
+${RUBY_SITELIBDIR}/action_controller/cgi_ext/cgi_ext.rb
+${RUBY_SITELIBDIR}/action_controller/cgi_ext/cgi_methods.rb
+${RUBY_SITELIBDIR}/action_controller/cgi_ext/cookie_performance_fix.rb
+${RUBY_SITELIBDIR}/action_controller/cgi_ext/raw_post_data_fix.rb
+${RUBY_SITELIBDIR}/action_controller/cgi_process.rb
+${RUBY_SITELIBDIR}/action_controller/components.rb
+${RUBY_SITELIBDIR}/action_controller/cookies.rb
+${RUBY_SITELIBDIR}/action_controller/dependencies.rb
+${RUBY_SITELIBDIR}/action_controller/filters.rb
+${RUBY_SITELIBDIR}/action_controller/flash.rb
+${RUBY_SITELIBDIR}/action_controller/helpers.rb
+${RUBY_SITELIBDIR}/action_controller/layout.rb
+${RUBY_SITELIBDIR}/action_controller/pagination.rb
+${RUBY_SITELIBDIR}/action_controller/request.rb
+${RUBY_SITELIBDIR}/action_controller/rescue.rb
+${RUBY_SITELIBDIR}/action_controller/response.rb
+${RUBY_SITELIBDIR}/action_controller/routing.rb
+${RUBY_SITELIBDIR}/action_controller/scaffolding.rb
+${RUBY_SITELIBDIR}/action_controller/session.rb
+${RUBY_SITELIBDIR}/action_controller/session/active_record_store.rb
+${RUBY_SITELIBDIR}/action_controller/session/drb_server.rb
+${RUBY_SITELIBDIR}/action_controller/session/drb_store.rb
+${RUBY_SITELIBDIR}/action_controller/session/mem_cache_store.rb
+${RUBY_SITELIBDIR}/action_controller/templates/rescues/_request_and_response.rhtml
+${RUBY_SITELIBDIR}/action_controller/templates/rescues/diagnostics.rhtml
+${RUBY_SITELIBDIR}/action_controller/templates/rescues/layout.rhtml
+${RUBY_SITELIBDIR}/action_controller/templates/rescues/missing_template.rhtml
+${RUBY_SITELIBDIR}/action_controller/templates/rescues/template_error.rhtml
+${RUBY_SITELIBDIR}/action_controller/templates/rescues/unknown_action.rhtml
+${RUBY_SITELIBDIR}/action_controller/templates/scaffolds/edit.rhtml
+${RUBY_SITELIBDIR}/action_controller/templates/scaffolds/layout.rhtml
+${RUBY_SITELIBDIR}/action_controller/templates/scaffolds/list.rhtml
+${RUBY_SITELIBDIR}/action_controller/templates/scaffolds/new.rhtml
+${RUBY_SITELIBDIR}/action_controller/templates/scaffolds/show.rhtml
+${RUBY_SITELIBDIR}/action_controller/test_process.rb
+${RUBY_SITELIBDIR}/action_controller/url_rewriter.rb
+${RUBY_SITELIBDIR}/action_controller/verification.rb
+${RUBY_SITELIBDIR}/action_view.rb
+${RUBY_SITELIBDIR}/action_view/base.rb
+${RUBY_SITELIBDIR}/action_view/helpers/active_record_helper.rb
+${RUBY_SITELIBDIR}/action_view/helpers/date_helper.rb
+${RUBY_SITELIBDIR}/action_view/helpers/debug_helper.rb
+${RUBY_SITELIBDIR}/action_view/helpers/form_helper.rb
+${RUBY_SITELIBDIR}/action_view/helpers/form_options_helper.rb
+${RUBY_SITELIBDIR}/action_view/helpers/tag_helper.rb
+${RUBY_SITELIBDIR}/action_view/helpers/text_helper.rb
+${RUBY_SITELIBDIR}/action_view/helpers/url_helper.rb
+${RUBY_SITELIBDIR}/action_view/partials.rb
+${RUBY_SITELIBDIR}/action_view/template_error.rb
+${RUBY_SITELIBDIR}/action_view/vendor/builder.rb
+${RUBY_SITELIBDIR}/action_view/vendor/builder/blankslate.rb
+${RUBY_SITELIBDIR}/action_view/vendor/builder/xmlbase.rb
+${RUBY_SITELIBDIR}/action_view/vendor/builder/xmlevents.rb
+${RUBY_SITELIBDIR}/action_view/vendor/builder/xmlmarkup.rb
+${RUBY_DOCDIR}/actionpack/README
+@dirrm ${RUBY_DOCDIR}/actionpack
+@dirrm ${RUBY_SITELIBDIR}/action_view/vendor/builder
+@dirrm ${RUBY_SITELIBDIR}/action_view/vendor
+@dirrm ${RUBY_SITELIBDIR}/action_view/helpers
+@dirrm ${RUBY_SITELIBDIR}/action_view
+@dirrm ${RUBY_SITELIBDIR}/action_controller/templates/scaffolds
+@dirrm ${RUBY_SITELIBDIR}/action_controller/templates/rescues
+@dirrm ${RUBY_SITELIBDIR}/action_controller/templates
+@exec ${MKDIR} %D/lib/ruby/site_ruby/1.8/action_controller/support
+@dirrm ${RUBY_SITELIBDIR}/action_controller/support
+@dirrm ${RUBY_SITELIBDIR}/action_controller/session
+@dirrm ${RUBY_SITELIBDIR}/action_controller/cgi_ext
+@dirrm ${RUBY_SITELIBDIR}/action_controller/assertions
+@dirrm ${RUBY_SITELIBDIR}/action_controller
diff -r 1cc7590a6769 -r ac8242e30f09 www/ruby-actionpack/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ruby-actionpack/distinfo      Sun Apr 10 04:11:28 2005 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/04/10 04:11:28 minskim Exp $
+
+SHA1 (ruby/actionpack-1.7.0.tgz) = 720f3f283dd55ebff32feb60039c9564eabd5632
+RMD160 (ruby/actionpack-1.7.0.tgz) = 7d2c3c0fed862f5f9039548464f74b6e0630bcae
+Size (ruby/actionpack-1.7.0.tgz) = 161267 bytes
+SHA1 (patch-aa) = a630d3fd9f0932574b03688524501adfa6a7f0c2
diff -r 1cc7590a6769 -r ac8242e30f09 www/ruby-actionpack/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/ruby-actionpack/patches/patch-aa      Sun Apr 10 04:11:28 2005 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/04/10 04:11:28 minskim Exp $
+
+--- install.rb.orig    Tue Feb 15 09:57:44 2005
++++ install.rb
+@@ -44,15 +44,18 @@ files = %w-
+  action_controller/cgi_ext/raw_post_data_fix.rb
+  action_controller/caching.rb
+  action_controller/cgi_process.rb
++ action_controller/components.rb
+  action_controller/cookies.rb
+  action_controller/dependencies.rb
+  action_controller/filters.rb
+  action_controller/flash.rb
+  action_controller/helpers.rb
+  action_controller/layout.rb
++ action_controller/pagination.rb
+  action_controller/request.rb
+  action_controller/rescue.rb
+  action_controller/response.rb
++ action_controller/routing.rb
+  action_controller/scaffolding.rb
+  action_controller/session/active_record_store.rb
+  action_controller/session/drb_server.rb
+@@ -72,6 +75,7 @@ files = %w-
+  action_controller/templates/scaffolds/show.rhtml
+  action_controller/test_process.rb
+  action_controller/url_rewriter.rb
++ action_controller/verification.rb
+  action_view.rb
+  action_view/base.rb
+  action_view/helpers/active_record_helper.rb



Home | Main Index | Thread Index | Old Index