[DRE-commits] r3039 - in packages/libshoulda-ruby/trunk/debian: . patches

terceiro-guest at alioth.debian.org terceiro-guest at alioth.debian.org
Sat Sep 27 13:06:33 UTC 2008


Author: terceiro-guest
Date: 2008-09-27 13:06:32 +0000 (Sat, 27 Sep 2008)
New Revision: 3039

Added:
   packages/libshoulda-ruby/trunk/debian/convert_file_to_shoulda.1
   packages/libshoulda-ruby/trunk/debian/patches/
   packages/libshoulda-ruby/trunk/debian/patches/10-load-proc_extensions-from-clash-safe-place.patch
Modified:
   packages/libshoulda-ruby/trunk/debian/rules
Log:
  * added manpage
  * installing proc_extensions.rb file in a safe place to avoid
    colisions with another packages.
  * installing RDOC 



Added: packages/libshoulda-ruby/trunk/debian/convert_file_to_shoulda.1
===================================================================
--- packages/libshoulda-ruby/trunk/debian/convert_file_to_shoulda.1	                        (rev 0)
+++ packages/libshoulda-ruby/trunk/debian/convert_file_to_shoulda.1	2008-09-27 13:06:32 UTC (rev 3039)
@@ -0,0 +1,37 @@
+.TH convert_file_to_shoulda "1" "September 2008" "convert_file_to_shoulda" ""
+.SH NAME
+convert_file_to_shoulda - converts a regular Test::Unit Ruby source file into
+one that uses shoulda syntax.
+.SH SYNOPSIS
+.B convert_file_to_shoulda
+\fInormal_test_file.rb\fR
+.SH DESCRIPTION
+converts a unit test file using regular Test::Unit syntax to one using the
+nicer shoulda syntax, i.e. it will convert an existing test file with names like
+.IP
+def test_should_do_stuff
+.IP
+\&...
+.IP
+end
+.PP
+to one using the new syntax:
+.IP
+should "be super cool" do
+.IP
+\&...
+.IP
+end
+.PP
+A copy of the old file will be left under /tmp/ in case this script just
+seriously screws up.
+.PP
+.SH "SEE ALSO"
+.PP
+/usr/share/doc/libshoulda-ruby/ as installed by the libshoulda-ruby package for
+documentation of should itself.
+.SH "ABOUT"
+This manual page was written by Antonio Terceiro <terceiro at softwarelivre.org>
+for the Debian GNU/Linux system, but may be used by others. It was based on
+convert_file_to_shoulda's help output, i.e., when called without proper
+arguments, and with the help of help2man.

Added: packages/libshoulda-ruby/trunk/debian/patches/10-load-proc_extensions-from-clash-safe-place.patch
===================================================================
--- packages/libshoulda-ruby/trunk/debian/patches/10-load-proc_extensions-from-clash-safe-place.patch	                        (rev 0)
+++ packages/libshoulda-ruby/trunk/debian/patches/10-load-proc_extensions-from-clash-safe-place.patch	2008-09-27 13:06:32 UTC (rev 3039)
@@ -0,0 +1,8 @@
+--- lib/shoulda.rb.orig	2008-09-27 09:42:10.000000000 -0300
++++ lib/shoulda.rb	2008-09-27 09:42:32.000000000 -0300
+@@ -1,4 +1,4 @@
+-require File.join(File.dirname(__FILE__), 'proc_extensions')
++require File.join(File.dirname(__FILE__), 'shoulda', 'proc_extensions')
+ 
+ module Thoughtbot
+   module Shoulda

Modified: packages/libshoulda-ruby/trunk/debian/rules
===================================================================
--- packages/libshoulda-ruby/trunk/debian/rules	2008-09-27 12:08:08 UTC (rev 3038)
+++ packages/libshoulda-ruby/trunk/debian/rules	2008-09-27 13:06:32 UTC (rev 3039)
@@ -1,5 +1,15 @@
 #!/usr/bin/make -f
 
 include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
 include /usr/share/ruby-pkg-tools/1/class/ruby-setup-rb.mk
 
+install/libshoulda-ruby::
+	dh_rdoc -p $(cdbs_curpkg) README.txt lib
+
+install/libshoulda-ruby1.8::
+	# install the manpage
+	dh_installman -p $(cdbs_curpkg) debian/convert_file_to_shoulda.1
+	# install extra file into better location to avoid clashes with other packages.
+	mkdir -p $(CURDIR)/debian/$(cdbs_curpkg)/usr/lib/ruby/1.8/shoulda
+	mv $(CURDIR)/debian/$(cdbs_curpkg)/usr/lib/ruby/1.8/proc_extensions.rb $(CURDIR)/debian/$(cdbs_curpkg)/usr/lib/ruby/1.8/shoulda/proc_extensions.rb




More information about the Pkg-ruby-extras-commits mailing list