[DRE-commits] r3077 - packages-wip/libacts-as-list-ruby/trunk/debian
gwolf at alioth.debian.org
gwolf at alioth.debian.org
Wed Oct 15 19:53:12 UTC 2008
Author: gwolf
Date: 2008-10-15 19:53:12 +0000 (Wed, 15 Oct 2008)
New Revision: 3077
Added:
packages-wip/libacts-as-list-ruby/trunk/debian/README.Debian
Modified:
packages-wip/libacts-as-list-ruby/trunk/debian/rules
Log:
Added README.Debian documenting my acts_as_list initialization replacer
Added: packages-wip/libacts-as-list-ruby/trunk/debian/README.Debian
===================================================================
--- packages-wip/libacts-as-list-ruby/trunk/debian/README.Debian (rev 0)
+++ packages-wip/libacts-as-list-ruby/trunk/debian/README.Debian 2008-10-15 19:53:12 UTC (rev 3077)
@@ -0,0 +1,21 @@
+ Invoking acts_as_list
+ =====================
+
+acts_as_list was conceived originally as a Rails plugin - However, it
+can also be used as a systemwide-available library, and that is
+precisely what the Debian packaged version provides.
+
+When using acts_as_list as a Rails plugin, it is usually mixed into
+ActiveRecord without any intervention needed by you, by virtue of the
+init.rb file it ships. However, being deployed as a normal system
+library (and thus allowing to be used also in non-Rails setups), the
+functionality of init.rb is substituted by an (admittedly very simple)
+module, acts_as_list.rb. The only difference is that, in your code's
+initialization, you should add:
+
+ require 'acts_as_list'
+
+You can do it in the config/environment.rb file of your Rails project,
+or wherever you require your Ruby libraries elsewhere.
+
+ -- Gunnar Wolf <gwolf at debian.org>, Wed, 15 Oct 2008 14:28:07 -0500
Modified: packages-wip/libacts-as-list-ruby/trunk/debian/rules
===================================================================
--- packages-wip/libacts-as-list-ruby/trunk/debian/rules 2008-10-15 19:33:14 UTC (rev 3076)
+++ packages-wip/libacts-as-list-ruby/trunk/debian/rules 2008-10-15 19:53:12 UTC (rev 3077)
@@ -5,4 +5,5 @@
include /usr/share/ruby-pkg-tools/1/class/ruby-setup-rb.mk
install/libacts-as-list-ruby1.8::
- install debian/acts_as_list.rb debian/libacts-as-list-ruby1.8/usr/lib/ruby/1.8/acts_as_list.rb
+ install -m 0644 debian/acts_as_list.rb debian/libacts-as-list-ruby1.8/usr/lib/ruby/1.8/acts_as_list.rb
+ dh_installdocs -plibacts-as-list-ruby1.8 debian/README.Debian
More information about the Pkg-ruby-extras-commits
mailing list