Run of fresh-releases for ruby-table-print

Merge these changes:

git pull https://janitor.debian.net/git/ruby-table-print fresh-releases/main
git pull https://janitor.debian.net/git/ruby-table-print fresh-releases/pristine-tar
git pull https://janitor.debian.net/git/ruby-table-print fresh-releases/upstream

Summary

Merged new upstream version: 1.5.7 (was: 1.5.6).

Diff

Branch: main

diff --git a/.travis.yml b/.travis.yml
index 3217c47..b9c01a1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,9 +1,9 @@
 language: ruby
 rvm:
-  - 2.0
-  - 2.2.4
+  - 2.4
+  - 2.5
+  - 2.6
+  - 2.7
   - jruby-18mode
   - jruby-19mode
-  - rbx-2
-  - ree
 
diff --git a/README.rdoc b/README.rdoc
index 812c4d1..353fa2d 100644
--- a/README.rdoc
+++ b/README.rdoc
@@ -1,6 +1,6 @@
 = table_print
 
-{<img src="https://travis-ci.org/arches/table_print.png?branch=master" />}[http://travis-ci.org/arches/table_print]
+{<img src="https://travis-ci.org/arches/table_print.svg?branch=master" />}[http://travis-ci.org/arches/table_print]
 {<img src="https://codeclimate.com/github/arches/table_print.png" />}[https://codeclimate.com/github/arches/table_print]
 
 TablePrint shows objects in nicely formatted columns for easy reading. It even lets you nest other tables
diff --git a/debian/changelog b/debian/changelog
index 473eeb7..6df5081 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-ruby-table-print (1.5.6-2) UNRELEASED; urgency=medium
+ruby-table-print (1.5.7-1) UNRELEASED; urgency=medium
 
   [ Utkarsh Gupta ]
   * Add salsa-ci.yml
@@ -11,8 +11,9 @@ ruby-table-print (1.5.6-2) UNRELEASED; urgency=medium
     Repository-Browse.
   * Update Vcs-* headers from URL redirect.
   * Use canonical URL in Vcs-Git.
+  * New upstream release.
 
- -- Utkarsh Gupta <guptautkarsh2102@gmail.com>  Tue, 13 Aug 2019 07:55:42 +0530
+ -- Utkarsh Gupta <guptautkarsh2102@gmail.com>  Mon, 14 Mar 2022 04:29:37 -0000
 
 ruby-table-print (1.5.6-1) unstable; urgency=low
 
diff --git a/debian/patches/pending_test.diff b/debian/patches/pending_test.diff
index 1fa64f9..127ab00 100644
--- a/debian/patches/pending_test.diff
+++ b/debian/patches/pending_test.diff
@@ -1,6 +1,8 @@
---- a/spec/printable_spec.rb
-+++ b/spec/printable_spec.rb
-@@ -42,6 +42,7 @@
+Index: ruby-table-print/spec/printable_spec.rb
+===================================================================
+--- ruby-table-print.orig/spec/printable_spec.rb
++++ ruby-table-print/spec/printable_spec.rb
+@@ -42,6 +42,7 @@ describe TablePrint::Printable do
  
      it "ignores methods from an included module" do
        pending "waiting for Cat to support module manipulation"
diff --git a/features/support/step_definitions/steps.rb b/features/support/step_definitions/steps.rb
index ee8b1f0..27ede45 100644
--- a/features/support/step_definitions/steps.rb
+++ b/features/support/step_definitions/steps.rb
@@ -87,7 +87,7 @@ When /table_print ([\w\.:]*)$/ do |klass|
 end
 
 Then /^the output should contain$/ do |string|
-  output = @r.lines.to_a
+  output = @r.each_line.to_a
 
   output.zip(string.split("\n")).each do |actual, expected|
     actual.gsub(/\s/m, "").split(//).sort.join.should == expected.gsub(" ", "").split(//).sort.join
diff --git a/lib/table_print.rb b/lib/table_print.rb
index f6154c9..91a8229 100644
--- a/lib/table_print.rb
+++ b/lib/table_print.rb
@@ -51,7 +51,10 @@ module TablePrint
 
     def message
       return "Printed with config" if configged?
-      Time.now - @start_time
+      (Time.now - @start_time).to_s
+      # the message is used to initiate Returnable
+      # whose argument is regarded in ruby 2.7.1 as string
+      # (ruby 2.7.1 calls ".includes?" method on this argument)
     end
 
     private
diff --git a/lib/table_print/returnable.rb b/lib/table_print/returnable.rb
index c4f5beb..c57b019 100644
--- a/lib/table_print/returnable.rb
+++ b/lib/table_print/returnable.rb
@@ -24,6 +24,6 @@ module TablePrint
 
     def inspect
       to_s
-     end
+    end
   end
 end
diff --git a/lib/table_print/row_group.rb b/lib/table_print/row_group.rb
index 3b0468d..31bdac7 100644
--- a/lib/table_print/row_group.rb
+++ b/lib/table_print/row_group.rb
@@ -221,8 +221,8 @@ module TablePrint
       formatters << FixedWidthFormatter.new(column_for(column_name).width)
 
       # successively apply the formatters for a column
-      formatters.inject(value) do |value, formatter|
-        formatter.format(value)
+      formatters.inject(value) do |inner_value, formatter|
+        formatter.format(inner_value)
       end
     end
 
diff --git a/lib/table_print/version.rb b/lib/table_print/version.rb
index a9f32d7..f8cb74c 100644
--- a/lib/table_print/version.rb
+++ b/lib/table_print/version.rb
@@ -1,4 +1,4 @@
 module TablePrint
-  VERSION = "1.5.6"
+  VERSION = "1.5.7"
 end
 
diff --git a/spec/table_print_spec.rb b/spec/table_print_spec.rb
index 75130e0..d8c86ff 100644
--- a/spec/table_print_spec.rb
+++ b/spec/table_print_spec.rb
@@ -25,8 +25,10 @@ describe TablePrint::Printer do
   end
 
   describe "message" do
-    it "defaults to the time the print took" do
-      Printer.new([]).message.should be_a Numeric
+    it "defaults to the time the print took, but in string" do
+      message = Printer.new([]).message
+      message.should be_a String
+      expect(message.to_f.to_s).to eq(message)
     end
 
     it "shows a warning if the printed objects have config" do
diff --git a/table_print.gemspec b/table_print.gemspec
index 78d83a4..0feaa44 100644
--- a/table_print.gemspec
+++ b/table_print.gemspec
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
   gem.require_paths       = ["lib"]
 
   gem.add_development_dependency 'cat', '~> 0.2.1'
-  gem.add_development_dependency 'cucumber', '~> 1.2.1'
+  gem.add_development_dependency 'cucumber', '~> 2.4.0'
   gem.add_development_dependency 'rspec', '~> 2.11.0'
   gem.add_development_dependency 'rake', '~> 0.9.2'
 end

Branch: pristine-tar

diff --git a/ruby-table-print_1.5.7.orig.tar.gz.delta b/ruby-table-print_1.5.7.orig.tar.gz.delta
new file mode 100644
index 0000000..0a998a6
Binary files /dev/null and b/ruby-table-print_1.5.7.orig.tar.gz.delta differ
diff --git a/ruby-table-print_1.5.7.orig.tar.gz.id b/ruby-table-print_1.5.7.orig.tar.gz.id
new file mode 100644
index 0000000..d8e6f96
--- /dev/null
+++ b/ruby-table-print_1.5.7.orig.tar.gz.id
@@ -0,0 +1 @@
+423e51b69ea7a6737366200d8e54b7c2e73150d4

Branch: upstream

Tag: upstream/1.5.7
diff --git a/.travis.yml b/.travis.yml
index 3217c47..b9c01a1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,9 +1,9 @@
 language: ruby
 rvm:
-  - 2.0
-  - 2.2.4
+  - 2.4
+  - 2.5
+  - 2.6
+  - 2.7
   - jruby-18mode
   - jruby-19mode
-  - rbx-2
-  - ree
 
diff --git a/README.rdoc b/README.rdoc
index 812c4d1..353fa2d 100644
--- a/README.rdoc
+++ b/README.rdoc
@@ -1,6 +1,6 @@
 = table_print
 
-{<img src="https://travis-ci.org/arches/table_print.png?branch=master" />}[http://travis-ci.org/arches/table_print]
+{<img src="https://travis-ci.org/arches/table_print.svg?branch=master" />}[http://travis-ci.org/arches/table_print]
 {<img src="https://codeclimate.com/github/arches/table_print.png" />}[https://codeclimate.com/github/arches/table_print]
 
 TablePrint shows objects in nicely formatted columns for easy reading. It even lets you nest other tables
diff --git a/features/support/step_definitions/steps.rb b/features/support/step_definitions/steps.rb
index ee8b1f0..27ede45 100644
--- a/features/support/step_definitions/steps.rb
+++ b/features/support/step_definitions/steps.rb
@@ -87,7 +87,7 @@ When /table_print ([\w\.:]*)$/ do |klass|
 end
 
 Then /^the output should contain$/ do |string|
-  output = @r.lines.to_a
+  output = @r.each_line.to_a
 
   output.zip(string.split("\n")).each do |actual, expected|
     actual.gsub(/\s/m, "").split(//).sort.join.should == expected.gsub(" ", "").split(//).sort.join
diff --git a/lib/table_print.rb b/lib/table_print.rb
index f6154c9..91a8229 100644
--- a/lib/table_print.rb
+++ b/lib/table_print.rb
@@ -51,7 +51,10 @@ module TablePrint
 
     def message
       return "Printed with config" if configged?
-      Time.now - @start_time
+      (Time.now - @start_time).to_s
+      # the message is used to initiate Returnable
+      # whose argument is regarded in ruby 2.7.1 as string
+      # (ruby 2.7.1 calls ".includes?" method on this argument)
     end
 
     private
diff --git a/lib/table_print/returnable.rb b/lib/table_print/returnable.rb
index c4f5beb..c57b019 100644
--- a/lib/table_print/returnable.rb
+++ b/lib/table_print/returnable.rb
@@ -24,6 +24,6 @@ module TablePrint
 
     def inspect
       to_s
-     end
+    end
   end
 end
diff --git a/lib/table_print/row_group.rb b/lib/table_print/row_group.rb
index 3b0468d..31bdac7 100644
--- a/lib/table_print/row_group.rb
+++ b/lib/table_print/row_group.rb
@@ -221,8 +221,8 @@ module TablePrint
       formatters << FixedWidthFormatter.new(column_for(column_name).width)
 
       # successively apply the formatters for a column
-      formatters.inject(value) do |value, formatter|
-        formatter.format(value)
+      formatters.inject(value) do |inner_value, formatter|
+        formatter.format(inner_value)
       end
     end
 
diff --git a/lib/table_print/version.rb b/lib/table_print/version.rb
index a9f32d7..f8cb74c 100644
--- a/lib/table_print/version.rb
+++ b/lib/table_print/version.rb
@@ -1,4 +1,4 @@
 module TablePrint
-  VERSION = "1.5.6"
+  VERSION = "1.5.7"
 end
 
diff --git a/spec/table_print_spec.rb b/spec/table_print_spec.rb
index 75130e0..d8c86ff 100644
--- a/spec/table_print_spec.rb
+++ b/spec/table_print_spec.rb
@@ -25,8 +25,10 @@ describe TablePrint::Printer do
   end
 
   describe "message" do
-    it "defaults to the time the print took" do
-      Printer.new([]).message.should be_a Numeric
+    it "defaults to the time the print took, but in string" do
+      message = Printer.new([]).message
+      message.should be_a String
+      expect(message.to_f.to_s).to eq(message)
     end
 
     it "shows a warning if the printed objects have config" do
diff --git a/table_print.gemspec b/table_print.gemspec
index 78d83a4..0feaa44 100644
--- a/table_print.gemspec
+++ b/table_print.gemspec
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
   gem.require_paths       = ["lib"]
 
   gem.add_development_dependency 'cat', '~> 0.2.1'
-  gem.add_development_dependency 'cucumber', '~> 1.2.1'
+  gem.add_development_dependency 'cucumber', '~> 2.4.0'
   gem.add_development_dependency 'rspec', '~> 2.11.0'
   gem.add_development_dependency 'rake', '~> 0.9.2'
 end

Publish Blockers

  • ☑ run was successful
  • ☑ package has not been removed from the archive
  • ☑ command has not changed
  • ☒ not yet reviewed, but review needed
  • ☑ 0 publish attempts so far. not currently attempting to back off
  • ☒ merge proposals for the package maintainer are currently being rate-limited (open: 1135, max open: 200)
  • ☑ change set 1693ec03-f30b-4c5c-80bd-edd0254cae7d is ready

Resulting package

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-releases ruby-table-print

Lintian Result

Full worker log Full build log