diff options
author | minskim <minskim@pkgsrc.org> | 2005-04-10 04:11:28 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2005-04-10 04:11:28 +0000 |
commit | 3583d2c2bec92d4c92e768458bdc2c309375def6 (patch) | |
tree | b8d2f3819935faf998f90a69d45c0e607cb01bb2 /www/ruby-actionpack | |
parent | 56f373d22ba22bb1d9d8dae1f329c2c6dfe516e3 (diff) | |
download | pkgsrc-3583d2c2bec92d4c92e768458bdc2c309375def6.tar.gz |
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 (limited to 'www/ruby-actionpack')
-rw-r--r-- | www/ruby-actionpack/DESCR | 21 | ||||
-rw-r--r-- | www/ruby-actionpack/Makefile | 25 | ||||
-rw-r--r-- | www/ruby-actionpack/PLIST | 76 | ||||
-rw-r--r-- | www/ruby-actionpack/distinfo | 6 | ||||
-rw-r--r-- | www/ruby-actionpack/patches/patch-aa | 31 |
5 files changed, 159 insertions, 0 deletions
diff --git a/www/ruby-actionpack/DESCR b/www/ruby-actionpack/DESCR new file mode 100644 index 00000000000..1153897a11d --- /dev/null +++ b/www/ruby-actionpack/DESCR @@ -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 --git a/www/ruby-actionpack/Makefile b/www/ruby-actionpack/Makefile new file mode 100644 index 00000000000..1d51e9b07ba --- /dev/null +++ b/www/ruby-actionpack/Makefile @@ -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 +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 --git a/www/ruby-actionpack/PLIST b/www/ruby-actionpack/PLIST new file mode 100644 index 00000000000..c7372ed0932 --- /dev/null +++ b/www/ruby-actionpack/PLIST @@ -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 --git a/www/ruby-actionpack/distinfo b/www/ruby-actionpack/distinfo new file mode 100644 index 00000000000..d99adaee8e6 --- /dev/null +++ b/www/ruby-actionpack/distinfo @@ -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 --git a/www/ruby-actionpack/patches/patch-aa b/www/ruby-actionpack/patches/patch-aa new file mode 100644 index 00000000000..5dccf7a8007 --- /dev/null +++ b/www/ruby-actionpack/patches/patch-aa @@ -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 |