[rubygem-railties/f15] fix for bz # 715385

Mohammed Morsi mmorsi at fedoraproject.org
Mon Jun 27 19:14:26 UTC 2011


commit 780957151f8d0e418ba9d6245122a2ea734e132e
Author: Mo Morsi <mmorsi at redhat.com>
Date:   Mon Jun 27 15:02:43 2011 -0400

    fix for bz # 715385
    
    https://bugzilla.redhat.com/show_bug.cgi?id=715385

 railties-include-rake-dsl.patch |   11 +++++++++++
 rubygem-railties.spec           |    9 ++++++++-
 2 files changed, 19 insertions(+), 1 deletions(-)
---
diff --git a/railties-include-rake-dsl.patch b/railties-include-rake-dsl.patch
new file mode 100644
index 0000000..5dc150e
--- /dev/null
+++ b/railties-include-rake-dsl.patch
@@ -0,0 +1,11 @@
+--- lib/rails/application.rb.orig	2011-06-27 12:17:51.000000000 -0400
++++ lib/rails/application.rb	2011-06-27 12:17:55.000000000 -0400
+@@ -34,6 +34,8 @@ module Rails
+   # The Application is also responsible for building the middleware stack.
+   #
+   class Application < Engine
++    include Rake::DSL
++
+     autoload :Bootstrap,      'rails/application/bootstrap'
+     autoload :Configurable,   'rails/application/configurable'
+     autoload :Configuration,  'rails/application/configuration'
diff --git a/rubygem-railties.spec b/rubygem-railties.spec
index c0a9186..4a2a15c 100644
--- a/rubygem-railties.spec
+++ b/rubygem-railties.spec
@@ -8,7 +8,7 @@
 Summary: Tools for creating, working with, and running Rails applications
 Name: rubygem-%{gemname}
 Version: 3.0.6
-Release: 1%{?dist}
+Release: 2%{?dist}
 Group: Development/Languages
 License: MIT
 URL: http://www.rubyonrails.org
@@ -16,6 +16,7 @@ Source0: %{download_path}%{gemname}-%{version}.gem
 # ** Take LICENSE file from upstream. **
 # wget --no-check-certificate https://github.com/rails/rails/raw/master/railties/MIT-LICENSE
 Source1: http://github.com/rails/rails/raw/master/railties/MIT-LICENSE
+Patch0: railties-include-rake-dsl.patch
 Requires: ruby(abi) = %{rubyabi}
 Requires: rubygems
 Requires: rubygem(rake) >= 0.8.7
@@ -58,6 +59,9 @@ gem install --local --install-dir .%{gemdir} \
 # source
 find .%{geminstdir} -name *.css -type f -perm /a+x -exec %{__chmod} -v 644 {} \;
 
+pushd .%{geminstdir}
+%patch0
+
 %build
 
 %install
@@ -80,6 +84,9 @@ find .%{geminstdir} -name *.css -type f -perm /a+x -exec %{__chmod} -v 644 {} \;
 %{gemdir}/doc/%{gemname}-%{version}
 
 %changelog
+* Mon Jun 27 2011  <mmorsi at redhat.com> - 3.0.6-2
+- include fix for BZ #715385
+
 * Tue Apr 12 2011  <Minnikhanov at gmail.com> - 3.0.6-1
 - Updated Railties to latest upstream release (v.3.0.6 2011-04-07)
 


More information about the scm-commits mailing list