summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMamoru Tasaka <mtasaka@fedoraproject.org>2009-09-20 16:40:24 +0000
committerMamoru Tasaka <mtasaka@fedoraproject.org>2009-09-20 16:40:24 +0000
commitdb07e329b64495c50743f8a9366f9918c5dba0ab (patch)
tree94bb5d824fd35e168ebd9847272b98006ee68d08
parent1bb98b7fb7b4f54cce63fc24d8d5cf2c780a3d0d (diff)
downloadrubygem-actionpack-db07e329b64495c50743f8a9366f9918c5dba0ab.tar.gz
rubygem-actionpack-db07e329b64495c50743f8a9366f9918c5dba0ab.tar.xz
rubygem-actionpack-db07e329b64495c50743f8a9366f9918c5dba0ab.zip
rails 2.3.4 (CVE-2009-3009), requires rubygems >= 1.3.4
-rw-r--r--.cvsignore2
-rw-r--r--rubygem-actionpack-2.3.4-enable-test.patch11
-rw-r--r--rubygem-actionpack.spec36
-rw-r--r--sources2
4 files changed, 40 insertions, 11 deletions
diff --git a/.cvsignore b/.cvsignore
index 6514c3b..2448d64 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1 +1 @@
-actionpack-2.3.3.gem
+actionpack-2.3.4.gem
diff --git a/rubygem-actionpack-2.3.4-enable-test.patch b/rubygem-actionpack-2.3.4-enable-test.patch
new file mode 100644
index 0000000..0164c4c
--- /dev/null
+++ b/rubygem-actionpack-2.3.4-enable-test.patch
@@ -0,0 +1,11 @@
+--- test/active_record_unit.rb.debug 2009-09-18 01:45:17.000000000 +0900
++++ test/active_record_unit.rb 2009-09-18 02:08:19.000000000 +0900
+@@ -17,7 +17,7 @@
+ $stderr.print 'Attempting to load Active Record... '
+ begin
+ PATH_TO_AR = "#{File.dirname(__FILE__)}/../../activerecord/lib"
+- raise LoadError, "#{PATH_TO_AR} doesn't exist" unless File.directory?(PATH_TO_AR)
++ #raise LoadError, "#{PATH_TO_AR} doesn't exist" unless File.directory?(PATH_TO_AR)
+ $LOAD_PATH.unshift PATH_TO_AR
+ require 'active_record'
+ require 'active_record/fixtures'
diff --git a/rubygem-actionpack.spec b/rubygem-actionpack.spec
index f3870f6..2882f9d 100644
--- a/rubygem-actionpack.spec
+++ b/rubygem-actionpack.spec
@@ -4,23 +4,28 @@
%define gemname actionpack
%define geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%define rubyabi 1.8
+
Summary: Web-flow and rendering framework putting the VC in MVC
Name: rubygem-%{gemname}
-Version: 2.3.3
+Version: 2.3.4
Release: 1%{?dist}
Group: Development/Languages
License: MIT
URL: http://www.rubyonrails.org
Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
+Patch0: rubygem-actionpack-2.3.4-enable-test.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: rubygems
Requires: rubygem(activesupport) = %{version}
Requires: rubygem(rack) >= 1.0.0
+Requires: ruby(abi) = %{rubyabi}
BuildRequires: rubygems
BuildRequires(check): rubygem(rake)
BuildRequires(check): rubygem(rack) >= 1.0.0
BuildRequires(check): rubygem(mocha) >= 0.9.7
BuildRequires(check): rubygem(activerecord) = %{version}
+BuildRequires(check): rubygem(sqlite3-ruby)
BuildArch: noarch
Provides: rubygem(%{gemname}) = %{version}
@@ -37,11 +42,23 @@ gem install --local --install-dir .%{gemdir} \
-V \
--force --rdoc %{SOURCE0}
+pushd .%{geminstdir}
+%patch0 -p0
+
+# create missing symlink
+pushd test/fixtures/layout_tests/layouts/
+ln -sf ../../symlink_parent/ symlinked
+popd
+
+popd
+
# Remove backup files
-find ./%{geminstdir} -type f -name "*~" -delete
+# No! these are needed for rake test
+# find ./%{geminstdir} -type f -name "*~" -delete
# Delete zero-length files
-find ./%{geminstdir} -type f -size 0c -exec rm -rvf {} \;
+# No! these are also needed for rake test
+# find ./%{geminstdir} -type f -size 0c -exec rm -rvf {} \;
# Fix anything executable that does not have a shebang
for file in `find ./%{geminstdir} -type f -perm /a+x`; do
@@ -68,15 +85,12 @@ rm -rf %{buildroot}
pushd .%{geminstdir}
# dependency loop
+# depends on actionmailer, while actionmailer has BR(check): actionpack
mv test/controller/assert_select_test.rb \
test/controller/assert_select_test.rb.skip
-# ??? need checking
-mv test/controller/caching_test.rb \
- test/controller/caching_test.rb.skip
-
-# Still 6 tests fail, please someone investigate
-rake test --trace || :
+# Now as far as I checked rake test succeeds.
+rake test --trace
%files
%defattr(-, root, root, -)
@@ -95,6 +109,10 @@ rake test --trace || :
%changelog
+* Sun Sep 20 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.3.4-1
+- Update to 2.3.4 (bug 520843, CVE-2009-3009)
+- Fix tests
+
* Sun Aug 2 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.3.3-1
- 2.3.3
- Enable test (some tests fail, please someone investigate!!)
diff --git a/sources b/sources
index a8bf430..f5147d8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-7d60ee9499c04712ede6c747e5028390 actionpack-2.3.3.gem
+da53635065d9083ec37be4a36763af9c actionpack-2.3.4.gem