diff --git a/dev-ruby/rails-observers/Manifest b/dev-ruby/rails-observers/Manifest deleted file mode 100644 index 23c67091e58ba..0000000000000 --- a/dev-ruby/rails-observers/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST rails-observers-0.1.2.tgz 20076 SHA256 c4f614b4438332d35edc8459fbfcad5c44ead0e2cf8c90c76a0ac26cf8e6b4e6 SHA512 8dbf268c2dcaf41817b0859fcaf4f55f337c3b632e735b5352db1691058a6ec65071a46bf0768926daa2b587f824809724874dc106a525b3d20f5fa0b150518d WHIRLPOOL 78c3cb33fbc2a4234614cc8d9ee5e6803ddf34d64519a622a0608387f93b31a02ee31dd1cf6d9b0ef7cd2275347bc2f610f0b055b8a7eee3ea64ad998e47a1d5 diff --git a/dev-ruby/rails-observers/files/rails-observers-0.1.2-fix-tests.patch b/dev-ruby/rails-observers/files/rails-observers-0.1.2-fix-tests.patch deleted file mode 100644 index 07bc58f3f8d20..0000000000000 --- a/dev-ruby/rails-observers/files/rails-observers-0.1.2-fix-tests.patch +++ /dev/null @@ -1,72 +0,0 @@ -commit 0757380fb62bc80ab7f1867b36d8a8b77ad3ed5f -Author: Simon Jesenko -Date: Fri Jul 18 08:00:52 2014 +0200 - - fixing tests, substituting ActiveRecord::TestCase with ActiveSupport::TestCase - -diff --git a/test/helper.rb b/test/helper.rb -index b30895f..b0a647e 100644 ---- a/test/helper.rb -+++ b/test/helper.rb -@@ -1,6 +1,6 @@ - require 'minitest/autorun' - require 'active_record' -- -+require 'rails' - require 'rails/observers/activerecord/active_record' - - FIXTURES_ROOT = File.expand_path(File.dirname(__FILE__)) + "/fixtures" -@@ -68,7 +68,3 @@ end - - class Minimalistic < ActiveRecord::Base - end -- --ActiveSupport::Deprecation.silence do -- require 'active_record/test_case' --end -diff --git a/test/lifecycle_test.rb b/test/lifecycle_test.rb -index 5129670..fb55206 100644 ---- a/test/lifecycle_test.rb -+++ b/test/lifecycle_test.rb -@@ -118,7 +118,7 @@ class AroundTopicObserver < ActiveRecord::Observer - end - end - --class LifecycleTest < ActiveRecord::TestCase -+class LifecycleTest < ActiveSupport::TestCase - fixtures :topics, :developers, :minimalistics - - def test_before_destroy -diff --git a/test/observing_test.rb b/test/observing_test.rb -index a7f63dc..120d531 100644 ---- a/test/observing_test.rb -+++ b/test/observing_test.rb -@@ -32,6 +32,16 @@ end - class ObservingTest < ActiveModel::TestCase - def setup - ObservedModel.observers.clear -+ FooObserver.singleton_class.instance_eval do -+ alias_method :original_observed_classes, :observed_classes -+ end -+ end -+ -+ def teardown -+ FooObserver.singleton_class.instance_eval do -+ undef_method :observed_classes -+ alias_method :observed_classes, :original_observed_classes -+ end - end - - test "initializes model with no cached observers" do -diff --git a/test/transaction_callbacks_test.rb b/test/transaction_callbacks_test.rb -index 8f14cd3..30cbb03 100644 ---- a/test/transaction_callbacks_test.rb -+++ b/test/transaction_callbacks_test.rb -@@ -1,6 +1,6 @@ - require "helper" - --class TransactionCallbacksTest < ActiveRecord::TestCase -+class TransactionCallbacksTest < ActiveSupport::TestCase - self.use_transactional_fixtures = false - fixtures :topics - diff --git a/dev-ruby/rails-observers/metadata.xml b/dev-ruby/rails-observers/metadata.xml deleted file mode 100644 index 4325de8c3b199..0000000000000 --- a/dev-ruby/rails-observers/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - ruby@gentoo.org - Gentoo Ruby Project - - - rails/rails-observers - - diff --git a/dev-ruby/rails-observers/rails-observers-0.1.2.ebuild b/dev-ruby/rails-observers/rails-observers-0.1.2.ebuild deleted file mode 100644 index 35e652b606575..0000000000000 --- a/dev-ruby/rails-observers/rails-observers-0.1.2.ebuild +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -USE_RUBY="ruby21 ruby22" - -RUBY_FAKEGEM_TASK_TEST="test:regular" - -RUBY_FAKEGEM_TASK_DOC="" -RUBY_FAKEGEM_DOCDIR="doc" -RUBY_FAKEGEM_EXTRADOC="README.md" - -inherit ruby-fakegem versionator - -DESCRIPTION="Rails Observers" -HOMEPAGE="https://github.com/rails/rails-observers" -SRC_URI="https://github.com/rails/${PN}/archive/v${PV}.tar.gz -> ${P}.tgz" - -LICENSE="MIT" -SLOT="$(get_version_component_range 1-2)" -KEYWORDS="~amd64" -IUSE="" - -RUBY_PATCHES=( "${P}-fix-tests.patch" ) - -ruby_add_rdepend "=dev-ruby/activemodel-4*" - -ruby_add_bdepend " - test? ( - dev-ruby/bundler - >=dev-ruby/minitest-3 - =dev-ruby/railties-4* - =dev-ruby/activerecord-4* - =dev-ruby/actionmailer-4* - =dev-ruby/actionpack-4* - >=dev-ruby/sqlite3-1.3 - )" - -all_ruby_prepare() { - # Avoid rake test since it will run with the wrong ruby interpreter. - rm test/rake_test.rb || die -}