[DRE-commits] [ruby-text-table] 02/03: drop remove_requirement_on_spec.patch (not needed), add upstream fix_specs_for_ruby18.patch

Cédric Boutillier boutil at alioth.debian.org
Thu Aug 1 15:24:47 UTC 2013


This is an automated email from the git hooks/post-receive script.

boutil pushed a commit to branch master
in repository ruby-text-table.

commit d3f7b2b1c2b728a61e1ee3c83c5b5861eb092682
Author: Cédric Boutillier <boutil at debian.org>
Date:   Thu Jun 27 10:51:30 2013 +0200

    drop remove_requirement_on_spec.patch (not needed), add upstream fix_specs_for_ruby18.patch
---
 debian/patches/fix_specs_for_ruby18.patch       |   17 +++++++++++++++++
 debian/patches/remove_requirement_on_spec.patch |   22 ----------------------
 debian/patches/series                           |    2 +-
 3 files changed, 18 insertions(+), 23 deletions(-)

diff --git a/debian/patches/fix_specs_for_ruby18.patch b/debian/patches/fix_specs_for_ruby18.patch
new file mode 100644
index 0000000..a3d1f61
--- /dev/null
+++ b/debian/patches/fix_specs_for_ruby18.patch
@@ -0,0 +1,17 @@
+Description: Fix Hash syntax in specs for compatibility with Ruby 1.8
+Author: Aaron Tinio <aptinio at gmail.com>
+Origin: https://github.com/aptinio/text-table/commit/e50d0feed8301f503eee872b345edb976c11110b.patch
+Reviewed-by: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2013-06-27
+
+--- a/spec/integration/performance_spec.rb
++++ b/spec/integration/performance_spec.rb
+@@ -13,7 +13,7 @@
+     GC.start
+ 
+     Benchmark.realtime do
+-      Text::Table.new(rows: Array.new(num)).to_s
++      Text::Table.new(:rows => Array.new(num)).to_s
+     end
+   end
+ end
diff --git a/debian/patches/remove_requirement_on_spec.patch b/debian/patches/remove_requirement_on_spec.patch
deleted file mode 100644
index 8bbba14..0000000
--- a/debian/patches/remove_requirement_on_spec.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-Decription: Remove Spec specific code
- Spec is a deprecated version of RSpec. Trying to load it from
- spec_helper.rb is unnecessary, since RSpec is already loaded from
- debian/ruby-tests.rake.
-Author: Cédric Boutillier <boutil at debian.org>
-Last-Update: 2012-12-10
-
---- a/spec/spec_helper.rb
-+++ b/spec/spec_helper.rb
-@@ -1,12 +1,6 @@
- $LOAD_PATH.unshift(File.dirname(__FILE__))
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
- require 'text-table'
--require 'spec'
--require 'spec/autorun'
--
--Spec::Runner.configure do |config|
--  
--end
- 
- class String
-   def deindent
diff --git a/debian/patches/series b/debian/patches/series
index 6f2ed28..a81fa40 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1 @@
-remove_requirement_on_spec.patch
+fix_specs_for_ruby18.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-text-table.git



More information about the Pkg-ruby-extras-commits mailing list