[rubygem-paranoia/f16] Initial import for f16 branch

slinabery slinabery at fedoraproject.org
Mon May 7 16:45:09 UTC 2012


commit 85cf12e1b18eab1824847809cc6bae20aaed0478
Author: Steve Linabery <slinaber at redhat.com>
Date:   Mon May 7 11:45:06 2012 -0500

    Initial import for f16 branch

 .gitignore                               |    1 +
 0001-Remove-profanity-from-gemspec.patch |   27 ++++++++
 rubygem-paranoia.spec                    |   96 ++++++++++++++++++++++++++++++
 sources                                  |    1 +
 4 files changed, 125 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3f5e13a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/paranoia-1.1.0.gem
diff --git a/0001-Remove-profanity-from-gemspec.patch b/0001-Remove-profanity-from-gemspec.patch
new file mode 100644
index 0000000..68ad8e9
--- /dev/null
+++ b/0001-Remove-profanity-from-gemspec.patch
@@ -0,0 +1,27 @@
+From 4e71568444b0a5567839d1296448676c0e33e440 Mon Sep 17 00:00:00 2001
+From: Steve Linabery <slinaber at redhat.com>
+Date: Fri, 27 Apr 2012 13:36:18 -0500
+Subject: [PATCH] Remove profanity from gemspec
+
+---
+ paranoia.gemspec |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/paranoia.gemspec b/paranoia.gemspec
+index 0ec2d3e..16acba7 100644
+--- a/paranoia.gemspec
++++ b/paranoia.gemspec
+@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
+   s.authors     = ["radarlistener at gmail.com"]
+   s.email       = []
+   s.homepage    = "http://rubygems.org/gems/paranoia"
+-  s.summary     = "acts_as_paranoid, without the clusterfuck"
+-  s.description = "acts_as_paranoid, without the clusterfuck"
++  s.summary     = "acts_as_paranoid, without the mess"
++  s.description = "acts_as_paranoid, without the mess"
+ 
+   s.required_rubygems_version = ">= 1.3.6"
+   s.rubyforge_project         = "paranoia"
+-- 
+1.7.6.5
+
diff --git a/rubygem-paranoia.spec b/rubygem-paranoia.spec
new file mode 100644
index 0000000..4aed22e
--- /dev/null
+++ b/rubygem-paranoia.spec
@@ -0,0 +1,96 @@
+# Generated from paranoia-1.1.0.gem by gem2rpm -*- rpm-spec -*-
+%global gemname paranoia
+
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+%global rubyabi 1.8
+
+Summary: Cleaner re-implementation of acts_as_paranoid (ActiveRecord soft-delete plugin)
+Name: rubygem-%{gemname}
+Version: 1.1.0
+Release: 1%{?dist}
+Group: Development/Languages
+License: GPLv2+ or Ruby
+URL: http://rubygems.org/gems/paranoia
+Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
+Requires: ruby(abi) = %{rubyabi}
+Requires: ruby(rubygems) >= 1.3.6
+Requires: ruby 
+Requires: rubygem(activerecord) >= 3.0.0
+BuildRequires: ruby(abi) = %{rubyabi}
+BuildRequires: ruby(rubygems) >= 1.3.6
+BuildRequires: ruby 
+BuildRequires: rubygem(minitest)
+BuildRequires: rubygem(sqlite3)
+BuildRequires: rubygem(activerecord)
+BuildArch: noarch
+Provides: rubygem(%{gemname}) = %{version}
+# Removes a commonly-used yet offensive technical term from the gemspec.
+# Change has been made in upstream source code but has not
+# made it into official release yet.
+Patch0: 0001-Remove-profanity-from-gemspec.patch
+
+%description
+Paranoia is a re-implementation of acts_as_paranoid
+(http://github.com/technoweenie/acts_as_paranoid) for Rails 3, using much,
+much, much less code. You would use either plugin / gem if you wished that
+when you called 'destroy' on an Active Record object that it didn't actually
+destroy it, but just "hid" the record. Paranoia does this by setting a
+'deleted_at' field to the current time when you 'destroy' a record, and hides
+it by scoping all queries on your model to only include records which do not
+have a 'deleted_at' field.
+
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name} = %{version}-%{release}
+BuildArch: noarch
+
+%description doc
+Documentation for %{name}
+
+
+%prep
+%setup -q -c -T
+mkdir -p .%{gemdir}
+gem install --local --install-dir .%{gemdir} \
+            --force %{SOURCE0}
+pushd .%{geminstdir}
+%patch0 -p1
+
+%build
+
+%check
+pushd .%{geminstdir}
+RUBYOPT="-rfileutils -rrubygems" testrb test/*
+popd
+
+%install
+mkdir -p %{buildroot}%{gemdir}
+cp -a .%{gemdir}/* \
+        %{buildroot}%{gemdir}/
+pushd %{buildroot}%{geminstdir}
+rm -f .gitignore
+rm -rf test
+popd
+
+
+%files
+%dir %{geminstdir}
+%{geminstdir}/lib
+%exclude %{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+%{geminstdir}/README.md
+
+%files doc
+%doc %{gemdir}/doc/%{gemname}-%{version}
+%{geminstdir}/Rakefile
+%{geminstdir}/paranoia.gemspec
+%{geminstdir}/Gemfile
+%{geminstdir}/Gemfile.lock
+
+
+%changelog
+* Mon May 07 2012 Steve Linabery <slinaber at redhat.com> - 1.1.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..6997e8f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+679660584d32aff199dafcf2abc063b9  paranoia-1.1.0.gem


More information about the scm-commits mailing list