From 97248a211c3ae73a2b748d1194b5c5e714fce260 Mon Sep 17 00:00:00 2001 From: Josef Stribny Date: Jun 16 2014 13:52:37 +0000 Subject: Update to 2.1.0 --- diff --git a/.gitignore b/.gitignore index 8a50002..e5e779e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ /ancestry-2.0.0.gem /rubygem-ancestry-2.0.0-test.tar.gz +/ancestry-2.1.0.gem +/rubygem-ancestry-2.1.0-test.tar.gz diff --git a/rubygem-ancestry.spec b/rubygem-ancestry.spec index 4ab4ef1..d1ca311 100644 --- a/rubygem-ancestry.spec +++ b/rubygem-ancestry.spec @@ -1,32 +1,28 @@ %global gem_name ancestry -%global githash e8a2536 Name: rubygem-%{gem_name} -Version: 2.0.0 -Release: 6%{?dist} +Version: 2.1.0 +Release: 1%{?dist} Summary: Organize ActiveRecord model into a tree structure Group: Development/Languages License: MIT URL: http://github.com/stefankroes/ancestry Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem -Requires: ruby(release) -Requires: ruby(rubygems) -Requires: rubygem(activerecord) >= 3.0.0 BuildRequires: ruby(release) BuildRequires: rubygems-devel BuildRequires: ruby BuildArch: noarch Provides: rubygem(%{gem_name}) = %{version} -#for tests, which are not present in gem file -# git clone git@github.com:stefankroes/ancestry.git && cd ancestry -# git archive --format=tar %{githash} test | gzip > %{name}-%{version}-test.tar.gz +# For tests, which are not present in gem file +# git clone https://github.com/stefankroes/ancestry.git && cd ancestry +# git checkout v2.1.0 +# tar czvf rubygem-ancestry-2.1.0-test.tar.gz test/ Source1: %{name}-%{version}-test.tar.gz BuildRequires: rubygem(activerecord) BuildRequires: rubygem(activesupport) -BuildRequires: rubygem(test-unit) +BuildRequires: rubygem(minitest) BuildRequires: rubygems -BuildRequires: sqlite BuildRequires: rubygem(sqlite3) %description @@ -78,7 +74,11 @@ sqlite3: adapter: sqlite3 database: ":memory:" EOF -testrb -v -Ilib -Itest test/*_test.rb +# buffered_logger is no longer part of ActiveSupport +sed -i -e '5d' test/environment.rb +# Remove simplecov, coveralls, test/unit, debugger requirements +sed -i -e '6,15d' test/environment.rb +ruby -Ilib -Itest -rminitest/autorun -e "Dir.glob './test/**/*_test.rb', &method(:require)" popd %files @@ -96,6 +96,9 @@ popd %{gem_instdir}/%{gem_name}.gemspec %changelog +* Mon Jun 16 2014 Josef Stribny - 2.1.0-1 +- Update to 2.1.0 + * Sun Jun 08 2014 Fedora Release Engineering - 2.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild diff --git a/sources b/sources index ca077c9..1623ea1 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ -5343cf8674ce23dd7f625ba6b17c06f6 ancestry-2.0.0.gem -10d34c900203815eb3f99999b11dd708 rubygem-ancestry-2.0.0-test.tar.gz +81020e356c7c5fc154c35a5ba57d0621 ancestry-2.1.0.gem +b11edd0cb790583f5063d50e236850b5 rubygem-ancestry-2.1.0-test.tar.gz