summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVít Ondruch <vondruch@redhat.com>2011-03-24 16:50:24 +0100
committerVít Ondruch <vondruch@redhat.com>2011-03-24 16:50:24 +0100
commit344cbba19b2fd16d42c3ea2afdf05a5c00761dfb (patch)
treefcf81e6083d237f639a30899cb66d70fcf4e32d8
parent46c6d662d51e54d55e4b9389d05cd0a3198a20d4 (diff)
downloadrubygem-activesupport-344cbba19b2fd16d42c3ea2afdf05a5c00761dfb.tar.gz
rubygem-activesupport-344cbba19b2fd16d42c3ea2afdf05a5c00761dfb.tar.xz
rubygem-activesupport-344cbba19b2fd16d42c3ea2afdf05a5c00761dfb.zip
Update to ActiveSupport 3.0.5
Remove Rake dependnecy
-rw-r--r--Rakefile32
-rw-r--r--activesupport-rakefile-fix.patch15
-rw-r--r--rubygem-activesupport.spec26
3 files changed, 9 insertions, 64 deletions
diff --git a/Rakefile b/Rakefile
deleted file mode 100644
index d117ca6..0000000
--- a/Rakefile
+++ /dev/null
@@ -1,32 +0,0 @@
-require 'rake/testtask'
-require 'rake/gempackagetask'
-
-task :default => :test
-Rake::TestTask.new do |t|
- t.libs << 'test'
- t.pattern = 'test/**/*_test.rb'
- t.warning = true
- t.verbose = true
-end
-
-namespace :test do
- Rake::TestTask.new(:isolated) do |t|
- t.pattern = 'test/ts_isolated.rb'
- end
-end
-
-# Create compressed packages
-dist_dirs = [ "lib", "test"]
-
-spec = eval(File.read('activesupport.gemspec'))
-
-Rake::GemPackageTask.new(spec) do |p|
- p.gem_spec = spec
-end
-
-desc "Release to gemcutter"
-task :release => :package do
- require 'rake/gemcutter'
- Rake::Gemcutter::Tasks.new(spec).define
- Rake::Task['gem:push'].invoke
-end
diff --git a/activesupport-rakefile-fix.patch b/activesupport-rakefile-fix.patch
deleted file mode 100644
index d49987c..0000000
--- a/activesupport-rakefile-fix.patch
+++ /dev/null
@@ -1,15 +0,0 @@
---- Rakefile.orig 2011-01-10 16:26:22.397963520 -0500
-+++ Rakefile 2011-01-10 16:26:28.015963421 -0500
-@@ -18,12 +18,6 @@ end
- # Create compressed packages
- dist_dirs = [ "lib", "test"]
-
--spec = eval(File.read('activesupport.gemspec'))
--
--Rake::GemPackageTask.new(spec) do |p|
-- p.gem_spec = spec
--end
--
- desc "Release to gemcutter"
- task :release => :package do
- require 'rake/gemcutter'
diff --git a/rubygem-activesupport.spec b/rubygem-activesupport.spec
index 782fefe..b499bd7 100644
--- a/rubygem-activesupport.spec
+++ b/rubygem-activesupport.spec
@@ -7,29 +7,22 @@
Summary: Support and utility classes used by the Rails framework
Name: rubygem-%{gemname}
Epoch: 1
-Version: 3.0.3
-Release: 4%{?dist}
+Version: 3.0.5
+Release: 1%{?dist}
Group: Development/Languages
License: MIT
URL: http://www.rubyonrails.org
Source0: http://rubygems.org/downloads/activesupport-%{version}.gem
-# For some reason the activesupport doesn't ship with the upstream Rakefile
-Source1: http://github.com/rails/rails/raw/v%{version}/%{gemname}/Rakefile
-
# Also the activesupport gem doesn't ship with the test suite like the other
# Rails rpms, you may check it out like so
# git clone http://github.com/rails/rails.git
# cd rails/activesupport/
-# git checkout v3.0.3
+# git checkout v3.0.5
# tar czvf activesupport-tests.tgz test/
Source2: activesupport-tests.tgz
-# Remove a task which breaks the Rakefile due to the gemspec
-# not being present in the gem
-Patch0: activesupport-rakefile-fix.patch
-
# Removes code which breaks the test suite due to a
# dependency on a file in the greater rails proj
Patch1: activesupport-tests-fix.patch
@@ -43,7 +36,6 @@ Requires: rubygems
Requires: ruby(abi) = %{rubyabi}
Requires: rubygem(i18n)
BuildRequires: rubygems
-BuildRequires: rubygem(rake)
BuildRequires: rubygem(mocha)
BuildRequires: rubygem(i18n)
#BuildRequires: rubygem(memcache-client)
@@ -63,15 +55,11 @@ mkdir -p .%{gemdir}
gem install --local --install-dir .%{gemdir} \
--force -V --rdoc %{SOURCE0}
-# move the rakefile in place
-cp %{SOURCE1} .%{geminstdir}
-
# move the tests into place
tar xzvf %{SOURCE2} -C .%{geminstdir}
pushd .%{geminstdir}
-%patch0 -p0
%patch1 -p0
%patch2 -p0
@@ -87,13 +75,13 @@ rm -rf %{buildroot}
%check
pushd %{buildroot}%{geminstdir}
-rake test
+RUBYOPT="Itest" ruby -e "Dir.glob('test/**/*_test.rb').each {|t| require t}"
+popd
%files
%defattr(-, root, root, -)
%dir %{geminstdir}
%doc %{geminstdir}/CHANGELOG
-%{geminstdir}/Rakefile
%{geminstdir}/lib
%doc %{geminstdir}/README.rdoc
%doc %{gemdir}/doc/%{gemname}-%{version}
@@ -103,6 +91,10 @@ rake test
%changelog
+* Thu Mar 24 2011 Vít Ondruch <vondruch@redhat.com> - 1:3.0.3-5
+- Update to ActiveSupport 3.0.5
+- Remove Rake dependnecy
+
* Mon Feb 14 2011 Mohammed Morsi <mmorsi@redhat.com> - 1:3.0.3-4
- fix bad dates in the spec changelog