[rubygem-rails_autolink] update to 1.1.5
Ken Dreyer
ktdreyer at fedoraproject.org
Thu Nov 7 18:56:55 UTC 2013
commit 1afbc66f0a468cadd905b36bd3f1722b52ba2893
Author: Ken Dreyer <ktdreyer at ktdreyer.com>
Date: Thu Nov 7 11:57:06 2013 -0700
update to 1.1.5
- Update to 1.1.5
- Remove Gemfile and Rakefile in %prep
- Patch to add "require timeout" in tests
.gitignore | 1 +
rubygem-rails_autolink-1.1.5-timeout.patch | 24 ++++++++++++++++++++++++
rubygem-rails_autolink.spec | 23 ++++++++++++++++++-----
sources | 2 +-
4 files changed, 44 insertions(+), 6 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e8a17e3..6c93396 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/rails_autolink-1.1.4.gem
+/rails_autolink-1.1.5.gem
diff --git a/rubygem-rails_autolink-1.1.5-timeout.patch b/rubygem-rails_autolink-1.1.5-timeout.patch
new file mode 100644
index 0000000..4ddc653
--- /dev/null
+++ b/rubygem-rails_autolink-1.1.5-timeout.patch
@@ -0,0 +1,24 @@
+commit da6ff3cc39eb181494d62b407e24695f6b02051d
+Author: Ken Dreyer <ktdreyer at ktdreyer.com>
+Date: Thu Nov 7 11:43:02 2013 -0700
+
+ require timeout in tests
+
+ When running "testrb test/test_rails_autolink.rb", the test suite fails:
+
+ NameError: uninitialized constant TestRailsAutolink::Timeout
+
+ Explicitly load the timeout gem during the tests to fix this error.
+
+diff --git a/test/test_rails_autolink.rb b/test/test_rails_autolink.rb
+index cf753e7..b8b6fbd 100644
+--- a/test/test_rails_autolink.rb
++++ b/test/test_rails_autolink.rb
+@@ -16,6 +16,7 @@ require 'active_support/core_ext/string/encoding'
+ require 'action_dispatch/testing/assertions'
+ require 'action_view/helpers/text_helper'
+ require 'action_view/helpers/output_safety_helper'
++require 'timeout'
+
+ class TestRailsAutolink < MiniTest::Unit::TestCase
+ include ActionView::Helpers::CaptureHelper
diff --git a/rubygem-rails_autolink.spec b/rubygem-rails_autolink.spec
index e4e8931..999d8a1 100644
--- a/rubygem-rails_autolink.spec
+++ b/rubygem-rails_autolink.spec
@@ -1,13 +1,15 @@
%global gem_name rails_autolink
Name: rubygem-%{gem_name}
-Version: 1.1.4
-Release: 2%{?dist}
+Version: 1.1.5
+Release: 1%{?dist}
Summary: Automatic generation of HTML links in texts
Group: Development/Languages
License: MIT
URL: https://github.com/tenderlove/rails_autolink
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
+# https://github.com/tenderlove/rails_autolink/pull/40
+Patch0: rubygem-rails_autolink-1.1.5-timeout.patch
Requires: ruby(release)
Requires: ruby(rubygems)
Requires: rubygem(rails) > 3.1
@@ -40,6 +42,15 @@ gem unpack %{SOURCE0}
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+# Remove developer-only files.
+for f in Gemfile Rakefile; do
+ rm $f
+ sed -i "s|\"$f\",||g" %{gem_name}.gemspec
+done
+
+# Patch for missing timeout requirement.
+%patch0 -p 1
+
%build
# Create the gem as gem install only works on a gem file
gem build %{gem_name}.gemspec
@@ -70,13 +81,15 @@ popd
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.rdoc
-%exclude %{gem_instdir}/Gemfile
-%exclude %{gem_instdir}/Gemfile.lock
-%exclude %{gem_instdir}/Rakefile
%exclude %{gem_instdir}/test
%changelog
+* Thu Nov 07 2013 Ken Dreyer <ktdreyer at ktdreyer.com> - 1.1.5-1
+- Update to 1.1.5
+- Remove Gemfile and Rakefile in %%prep
+- Patch to add "require timeout" in tests
+
* Tue Nov 05 2013 Ken Dreyer <ktdreyer at ktdreyer.com> - 1.1.4-2
- Exclude Gemfile, Gemfile.lock, Rakefile, and test suite from the binary
packages
diff --git a/sources b/sources
index 9972f2e..848c650 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-1e00a8eca5cb3857d7167e53f858490a rails_autolink-1.1.4.gem
+95d295e214bdd478c5a635ee52f1327d rails_autolink-1.1.5.gem
More information about the scm-commits
mailing list