Hello community,

here is the log from the commit of package rubygem-term-ansicolor for 
openSUSE:Factory checked in at 2018-11-26 10:34:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-term-ansicolor (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-term-ansicolor.new.19453 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-term-ansicolor"

Mon Nov 26 10:34:00 2018 rev:15 rq:651621 version:1.7.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-term-ansicolor/rubygem-term-ansicolor.changes
    2017-04-20 20:58:16.845765468 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-term-ansicolor.new.19453/rubygem-term-ansicolor.changes
 2018-11-26 10:36:43.856576576 +0100
@@ -1,0 +2,10 @@
+Thu Nov 22 05:39:10 UTC 2018 - Stephan Kulow <[email protected]>
+
+- updated to version 1.7.0
+ see installed CHANGES
+
+  2018-11-02 - 1.7.0 * Add movement commands and term_snow executable
+  2017-03-24 - 1.6.0 * Implement HSL colors and methods based on that code
+  2017-04-13 - 1.5.0 * Change to Apache 2.0 license
+
+-------------------------------------------------------------------

Old:
----
  term-ansicolor-1.6.0.gem

New:
----
  term-ansicolor-1.7.0.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-term-ansicolor.spec ++++++
--- /var/tmp/diff_new_pack.imIbS2/_old  2018-11-26 10:36:46.648573310 +0100
+++ /var/tmp/diff_new_pack.imIbS2/_new  2018-11-26 10:36:46.648573310 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-term-ansicolor
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-term-ansicolor
-Version:        1.6.0
+Version:        1.7.0
 Release:        0
 %define mod_name term-ansicolor
 %define mod_full_name %{mod_name}-%{version}
@@ -35,7 +35,7 @@
 BuildRequires:  ruby-macros >= 5
 BuildRequires:  update-alternatives
 Url:            http://flori.github.com/term-ansicolor
-Source:         http://rubygems.org/gems/%{mod_full_name}.gem
+Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml
 Summary:        Ruby library that colors strings using ANSI escape sequences
 License:        Apache-2.0

++++++ term-ansicolor-1.6.0.gem -> term-ansicolor-1.7.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.travis.yml new/.travis.yml
--- old/.travis.yml     2017-04-13 13:45:36.000000000 +0200
+++ new/.travis.yml     2018-11-02 11:40:23.000000000 +0100
@@ -2,8 +2,9 @@
   - 2.0
   - 2.1
   - 2.2
-  - 2.3.1
-  - 2.4.1
+  - 2.3
+  - 2.4
+  - 2.5
   - ruby-head
   - jruby
 matrix:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/CHANGES new/CHANGES
--- old/CHANGES 2017-04-13 13:45:36.000000000 +0200
+++ new/CHANGES 2018-11-02 11:40:23.000000000 +0100
@@ -1,3 +1,6 @@
+2018-11-02 - 1.7.0 * Add movement commands and term_snow executable
+2017-03-24 - 1.6.0 * Implement HSL colors and methods based on that code
+2017-04-13 - 1.5.0 * Change to Apache 2.0 license
 2017-03-24 - 1.4.1 * Correct triple html color support
 2016-09-27 - 1.4.0 * Extend colorized strings with Term::ANSIColor
 2015-06-23 - 1.3.2 * Fix release 1.3.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/VERSION new/VERSION
--- old/VERSION 2017-04-13 13:45:36.000000000 +0200
+++ new/VERSION 2018-11-02 11:40:23.000000000 +0100
@@ -1 +1 @@
-1.6.0
+1.7.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bin/term_colortab new/bin/term_colortab
--- old/bin/term_colortab       2017-04-13 13:45:36.000000000 +0200
+++ new/bin/term_colortab       2018-11-02 11:40:23.000000000 +0100
@@ -24,6 +24,7 @@
   print_color c
 end
 puts
+puts
 
 for c in 8..11
   print_color c
@@ -33,16 +34,16 @@
 for c in 12..15
   print_color c
 end
-puts
 
 for c in 16..231
   (c - 16) % 6 == 0 and puts
+  (c - 16) % 36 == 0 and puts
   print_color c
 end
-puts
 
 for c in 232..255
   (c - 16) % 6 == 0 and puts
+  (c - 16) % 12 == 0 and puts
   print_color c
 end
 puts
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bin/term_snow new/bin/term_snow
--- old/bin/term_snow   1970-01-01 01:00:00.000000000 +0100
+++ new/bin/term_snow   2018-11-02 11:40:23.000000000 +0100
@@ -0,0 +1,72 @@
+#!/usr/bin/env ruby
+
+require 'term/ansicolor'
+require 'tins/go'
+include Tins::GO
+
+class SnowFlake
+  include Term::ANSIColor
+  extend Term::ANSIColor
+
+  def initialize(x, y, shape: %w[ ❄ ❅ ❆ • • · · . . ])
+     @x, @y, @shape = x, y, Array(shape).sample
+     @shape.size != 1 and raise ArgumentError, "#@shape needs to be a 
character"
+   end
+
+   attr_accessor :x
+
+   attr_accessor :y
+
+   attr_accessor :shape
+
+   def to_s
+     move_to(y, x) { white on_black @shape }
+   end
+end
+
+opts = go 'n:s:'
+new_snowflakes  = (opts[?n] || 3).to_i
+sleep_duration = (opts[?s] || 0.2).to_f
+
+flakes = []
+cycles = 0
+wind   = 0.5
+
+loop do
+  print SnowFlake.hide_cursor, SnowFlake.on_black, SnowFlake.clear_screen
+
+  at_exit do
+    print SnowFlake.reset, SnowFlake.clear_screen, SnowFlake.move_home, 
SnowFlake.show_cursor
+  end
+
+  if cycles % (SnowFlake.terminal_lines / 3) == 0
+    wind, cycles = rand, 0
+  end
+  cycles += 1
+
+  flakes.reject! do |sf|
+    if rand > wind
+      sf.x -= 1
+      if sf.x <= 0
+        sf.x = SnowFlake.terminal_columns
+      end
+    else
+      sf.x == 1
+      if sf.x > SnowFlake.terminal_columns
+        sf.x = 1
+      end
+    end
+    sf.y += 1
+    sf.y > SnowFlake.terminal_lines
+  end
+
+  new_snowflakes.times do
+    flakes << SnowFlake.new(rand(1..SnowFlake.terminal_columns), 1)
+  end
+
+  print *flakes
+
+  sleep sleep_duration
+rescue Interrupt
+  exit
+end
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/term/ansicolor/attribute/text.rb 
new/lib/term/ansicolor/attribute/text.rb
--- old/lib/term/ansicolor/attribute/text.rb    2017-04-13 13:45:36.000000000 
+0200
+++ new/lib/term/ansicolor/attribute/text.rb    2018-11-02 11:40:23.000000000 
+0100
@@ -2,7 +2,7 @@
   module ANSIColor
     class Attribute
       class Text
-        Attribute.set :clear,         0 # String#clear is already used to 
empty string in Ruby 1.9
+        Attribute.set :clear,         0 # String#clear already used in String
         Attribute.set :reset,         0 # synonym for :clear
         Attribute.set :bold,          1
         Attribute.set :dark,          2
@@ -12,8 +12,10 @@
         Attribute.set :underscore,    4 # synonym for :underline
         Attribute.set :blink,         5
         Attribute.set :rapid_blink,   6 # not widely implemented
-        Attribute.set :negative,      7 # no reverse because of String#reverse
+        Attribute.set :reverse,       7 # String#reverse already used in String
+        Attribute.set :negative,      7 # synonym for :reverse
         Attribute.set :concealed,     8
+        Attribute.set :conceal,       8 # synonym for :concealed
         Attribute.set :strikethrough, 9 # not widely implemented
       end
     end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/term/ansicolor/movement.rb 
new/lib/term/ansicolor/movement.rb
--- old/lib/term/ansicolor/movement.rb  1970-01-01 01:00:00.000000000 +0100
+++ new/lib/term/ansicolor/movement.rb  2018-11-02 11:40:23.000000000 +0100
@@ -0,0 +1,108 @@
+require 'tins/terminal'
+
+module Term
+  module ANSIColor
+    module Movement
+      def terminal_lines
+        Tins::Terminal.lines
+      end
+
+      def terminal_columns
+        Tins::Terminal.columns
+      end
+
+      def move_to(line = 1, column = 1, string = nil, &block)
+        move_command("\e[#{line.to_i};#{column.to_i}H", string, &block)
+      end
+
+      def move_to_column(column = 1, string = nil, &block)
+        move_command("\e[#{column.to_i}G", string, &block)
+      end
+
+      def move_to_line(line = 1, string = nil, &block)
+        move_command("\e[#{line.to_i}f", string, &block)
+      end
+
+      def move_up(lines = 1, string = nil, &block)
+        move_command("\e[#{lines.to_i}A", string, &block)
+      end
+
+      def move_down(lines = 1, string = nil, &block)
+        move_command("\e[#{lines.to_i}B", string, &block)
+      end
+
+      def move_forward(columns = 1, string = nil, &block)
+        move_command("\e[#{columns.to_i}C", string, &block)
+      end
+
+      def move_backward(columns = 1, string = nil, &block)
+        move_command("\e[#{columns.to_i}D", string, &block)
+      end
+
+      def move_to_next_line(lines = 1, string = nil, &block)
+        move_command("\e[#{lines}E", string, &block)
+      end
+
+      def move_to_previous_line(lines = 1, string = nil, &block)
+        move_command("\e[#{lines}F", string, &block)
+      end
+
+      def move_home(string = nil, &block)
+        move_to(1, 1, string, &block)
+      end
+
+      def clear_screen(string = nil, &block)
+        erase_in_display(2, string, &block)
+      end
+
+      def erase_in_display(n = 0, string = nil, &block)
+        move_command("\e[#{n}J", string, &block)
+      end
+
+      def erase_in_line(n = 0, string = nil, &block)
+        move_command("\e[#{n}K", string, &block)
+      end
+
+      def scroll_up(pages = 1, string = nil, &block)
+        move_command("\e[#{pages}S", string, &block)
+      end
+
+      def scroll_down(pages = 1, string = nil, &block)
+        move_command("\e[#{pages}T", string, &block)
+      end
+
+      def save_position(string = nil, &block)
+        move_command("\e[s", string, &block)
+      end
+
+      def restore_position(string = nil, &block)
+        move_command("\e[u", string, &block)
+      end
+
+      def return_to_position(string = nil, &block)
+        save_position("") << move_command("", string, &block) << 
restore_position("")
+      end
+
+      def show_cursor(string = nil, &block)
+        move_command("\e[?25h", string, &block)
+      end
+
+      def hide_cursor(string = nil, &block)
+        move_command("\e[?25l", string, &block)
+      end
+
+      private
+
+      def move_command(move, string = nil)
+        if block_given?
+          move << yield.to_s
+        elsif string.respond_to?(:to_str)
+          move << string.to_str
+        elsif respond_to?(:to_str)
+          move << to_str
+        end
+        move
+      end
+    end
+  end
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/term/ansicolor/version.rb 
new/lib/term/ansicolor/version.rb
--- old/lib/term/ansicolor/version.rb   2017-04-13 13:45:36.000000000 +0200
+++ new/lib/term/ansicolor/version.rb   2018-11-02 11:40:23.000000000 +0100
@@ -1,6 +1,6 @@
 module Term::ANSIColor
   # Term::ANSIColor version
-  VERSION         = '1.6.0'
+  VERSION         = '1.7.0'
   VERSION_ARRAY   = VERSION.split('.').map(&:to_i) # :nodoc:
   VERSION_MAJOR   = VERSION_ARRAY[0] # :nodoc:
   VERSION_MINOR   = VERSION_ARRAY[1] # :nodoc:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/term/ansicolor.rb new/lib/term/ansicolor.rb
--- old/lib/term/ansicolor.rb   2017-04-13 13:45:36.000000000 +0200
+++ new/lib/term/ansicolor.rb   2018-11-02 11:40:23.000000000 +0100
@@ -14,6 +14,9 @@
     require 'term/ansicolor/attribute/color8'
     require 'term/ansicolor/attribute/intense_color8'
     require 'term/ansicolor/attribute/color256'
+    require 'term/ansicolor/movement'
+
+    include Term::ANSIColor::Movement
 
     # :stopdoc:
     ATTRIBUTE_NAMES = Attribute.named_attributes.map(&:name)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2017-04-13 13:45:36.000000000 +0200
+++ new/metadata        2018-11-02 11:40:23.000000000 +0100
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: term-ansicolor
 version: !ruby/object:Gem::Version
-  version: 1.6.0
+  version: 1.7.0
 platform: ruby
 authors:
 - Florian Frank
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2017-04-13 00:00:00.000000000 Z
+date: 2018-11-02 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: gem_hadar
@@ -70,11 +70,12 @@
   terminal output
 email: [email protected]
 executables:
-- term_cdiff
-- term_colortab
-- term_decolor
+- term_snow
 - term_display
+- term_decolor
+- term_cdiff
 - term_mandel
+- term_colortab
 extensions: []
 extra_rdoc_files:
 - README.md
@@ -85,6 +86,7 @@
 - lib/term/ansicolor/attribute/intense_color8.rb
 - lib/term/ansicolor/attribute/text.rb
 - lib/term/ansicolor/hsl_triple.rb
+- lib/term/ansicolor/movement.rb
 - lib/term/ansicolor/ppm_reader.rb
 - lib/term/ansicolor/rgb_color_metrics.rb
 - lib/term/ansicolor/rgb_triple.rb
@@ -103,6 +105,7 @@
 - bin/term_decolor
 - bin/term_display
 - bin/term_mandel
+- bin/term_snow
 - examples/example.rb
 - examples/lambda-red-plain.ppm
 - examples/lambda-red.png
@@ -115,6 +118,7 @@
 - lib/term/ansicolor/attribute/intense_color8.rb
 - lib/term/ansicolor/attribute/text.rb
 - lib/term/ansicolor/hsl_triple.rb
+- lib/term/ansicolor/movement.rb
 - lib/term/ansicolor/ppm_reader.rb
 - lib/term/ansicolor/rgb_color_metrics.rb
 - lib/term/ansicolor/rgb_triple.rb
@@ -151,7 +155,7 @@
       version: '0'
 requirements: []
 rubyforge_project: 
-rubygems_version: 2.6.11
+rubygems_version: 2.7.7
 signing_key: 
 specification_version: 4
 summary: Ruby library that colors strings using ANSI escape sequences
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/term-ansicolor.gemspec new/term-ansicolor.gemspec
--- old/term-ansicolor.gemspec  2017-04-13 13:45:36.000000000 +0200
+++ new/term-ansicolor.gemspec  2018-11-02 11:40:23.000000000 +0100
@@ -1,24 +1,24 @@
 # -*- encoding: utf-8 -*-
-# stub: term-ansicolor 1.6.0 ruby lib
+# stub: term-ansicolor 1.7.0 ruby lib
 
 Gem::Specification.new do |s|
   s.name = "term-ansicolor".freeze
-  s.version = "1.6.0"
+  s.version = "1.7.0"
 
   s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if 
s.respond_to? :required_rubygems_version=
   s.require_paths = ["lib".freeze]
   s.authors = ["Florian Frank".freeze]
-  s.date = "2017-04-13"
+  s.date = "2018-11-02"
   s.description = "This library uses ANSI escape sequences to control the 
attributes of terminal output".freeze
   s.email = "[email protected]".freeze
-  s.executables = ["term_cdiff".freeze, "term_colortab".freeze, 
"term_decolor".freeze, "term_display".freeze, "term_mandel".freeze]
-  s.extra_rdoc_files = ["README.md".freeze, "lib/term/ansicolor.rb".freeze, 
"lib/term/ansicolor/attribute.rb".freeze, 
"lib/term/ansicolor/attribute/color256.rb".freeze, 
"lib/term/ansicolor/attribute/color8.rb".freeze, 
"lib/term/ansicolor/attribute/intense_color8.rb".freeze, 
"lib/term/ansicolor/attribute/text.rb".freeze, 
"lib/term/ansicolor/hsl_triple.rb".freeze, 
"lib/term/ansicolor/ppm_reader.rb".freeze, 
"lib/term/ansicolor/rgb_color_metrics.rb".freeze, 
"lib/term/ansicolor/rgb_triple.rb".freeze, 
"lib/term/ansicolor/version.rb".freeze]
-  s.files = [".gitignore".freeze, ".travis.yml".freeze, "CHANGES".freeze, 
"COPYING".freeze, "Gemfile".freeze, "README.md".freeze, "Rakefile".freeze, 
"VERSION".freeze, "bin/term_cdiff".freeze, "bin/term_colortab".freeze, 
"bin/term_decolor".freeze, "bin/term_display".freeze, "bin/term_mandel".freeze, 
"examples/example.rb".freeze, "examples/lambda-red-plain.ppm".freeze, 
"examples/lambda-red.png".freeze, "examples/lambda-red.ppm".freeze, 
"lib/term/ansicolor.rb".freeze, "lib/term/ansicolor/.keep".freeze, 
"lib/term/ansicolor/attribute.rb".freeze, 
"lib/term/ansicolor/attribute/color256.rb".freeze, 
"lib/term/ansicolor/attribute/color8.rb".freeze, 
"lib/term/ansicolor/attribute/intense_color8.rb".freeze, 
"lib/term/ansicolor/attribute/text.rb".freeze, 
"lib/term/ansicolor/hsl_triple.rb".freeze, 
"lib/term/ansicolor/ppm_reader.rb".freeze, 
"lib/term/ansicolor/rgb_color_metrics.rb".freeze, 
"lib/term/ansicolor/rgb_triple.rb".freeze, 
"lib/term/ansicolor/version.rb".freeze, "term-ansicolor.gemspec".freeze, 
"tests/ansicolor_test.rb".freeze, "tests/attribute_test.rb".freeze, 
"tests/hsl_triple_test.rb".freeze, "tests/ppm_reader_test.rb".freeze, 
"tests/rgb_color_metrics_test.rb".freeze, "tests/rgb_triple_test.rb".freeze, 
"tests/test_helper.rb".freeze]
+  s.executables = ["term_snow".freeze, "term_display".freeze, 
"term_decolor".freeze, "term_cdiff".freeze, "term_mandel".freeze, 
"term_colortab".freeze]
+  s.extra_rdoc_files = ["README.md".freeze, "lib/term/ansicolor.rb".freeze, 
"lib/term/ansicolor/attribute.rb".freeze, 
"lib/term/ansicolor/attribute/color256.rb".freeze, 
"lib/term/ansicolor/attribute/color8.rb".freeze, 
"lib/term/ansicolor/attribute/intense_color8.rb".freeze, 
"lib/term/ansicolor/attribute/text.rb".freeze, 
"lib/term/ansicolor/hsl_triple.rb".freeze, 
"lib/term/ansicolor/movement.rb".freeze, 
"lib/term/ansicolor/ppm_reader.rb".freeze, 
"lib/term/ansicolor/rgb_color_metrics.rb".freeze, 
"lib/term/ansicolor/rgb_triple.rb".freeze, 
"lib/term/ansicolor/version.rb".freeze]
+  s.files = [".gitignore".freeze, ".travis.yml".freeze, "CHANGES".freeze, 
"COPYING".freeze, "Gemfile".freeze, "README.md".freeze, "Rakefile".freeze, 
"VERSION".freeze, "bin/term_cdiff".freeze, "bin/term_colortab".freeze, 
"bin/term_decolor".freeze, "bin/term_display".freeze, "bin/term_mandel".freeze, 
"bin/term_snow".freeze, "examples/example.rb".freeze, 
"examples/lambda-red-plain.ppm".freeze, "examples/lambda-red.png".freeze, 
"examples/lambda-red.ppm".freeze, "lib/term/ansicolor.rb".freeze, 
"lib/term/ansicolor/.keep".freeze, "lib/term/ansicolor/attribute.rb".freeze, 
"lib/term/ansicolor/attribute/color256.rb".freeze, 
"lib/term/ansicolor/attribute/color8.rb".freeze, 
"lib/term/ansicolor/attribute/intense_color8.rb".freeze, 
"lib/term/ansicolor/attribute/text.rb".freeze, 
"lib/term/ansicolor/hsl_triple.rb".freeze, 
"lib/term/ansicolor/movement.rb".freeze, 
"lib/term/ansicolor/ppm_reader.rb".freeze, 
"lib/term/ansicolor/rgb_color_metrics.rb".freeze, 
"lib/term/ansicolor/rgb_triple.rb".freeze, 
"lib/term/ansicolor/version.rb".freeze, "term-ansicolor.gemspec".freeze, 
"tests/ansicolor_test.rb".freeze, "tests/attribute_test.rb".freeze, 
"tests/hsl_triple_test.rb".freeze, "tests/ppm_reader_test.rb".freeze, 
"tests/rgb_color_metrics_test.rb".freeze, "tests/rgb_triple_test.rb".freeze, 
"tests/test_helper.rb".freeze]
   s.homepage = "http://flori.github.com/term-ansicolor".freeze
   s.licenses = ["Apache-2.0".freeze]
   s.rdoc_options = ["--title".freeze, "Term-ansicolor - Ruby library that 
colors strings using ANSI escape sequences".freeze, "--main".freeze, 
"README.md".freeze]
   s.required_ruby_version = Gem::Requirement.new(">= 2.0".freeze)
-  s.rubygems_version = "2.6.11".freeze
+  s.rubygems_version = "2.7.7".freeze
   s.summary = "Ruby library that colors strings using ANSI escape 
sequences".freeze
   s.test_files = ["tests/ansicolor_test.rb".freeze, 
"tests/attribute_test.rb".freeze, "tests/hsl_triple_test.rb".freeze, 
"tests/ppm_reader_test.rb".freeze, "tests/rgb_color_metrics_test.rb".freeze, 
"tests/rgb_triple_test.rb".freeze, "tests/test_helper.rb".freeze]
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/ansicolor_test.rb new/tests/ansicolor_test.rb
--- old/tests/ansicolor_test.rb 2017-04-13 13:45:36.000000000 +0200
+++ new/tests/ansicolor_test.rb 2018-11-02 11:40:23.000000000 +0100
@@ -104,8 +104,8 @@
   def test_attributes
     foo = 'foo'
     for a in Term::ANSIColor.attributes
-      # skip clear for Ruby 1.9 which implements String#clear to empty the 
string
-      if a != :clear || Term::ANSIColor.support?(:clear)
+      # skip :clear and :reverse b/c Ruby implements them on string
+      if a != :clear && a != :reverse || Term::ANSIColor.support?(:clear)
         refute_equal foo, foo_colored = foo.__send__(a)
         assert_equal foo, foo_colored.uncolor
       end
@@ -121,6 +121,24 @@
     assert_equal Term::ANSIColor.attributes, 'foo'.attributes
   end
 
+  def test_move_to
+    string_23_23 = "\e[23;23Hred"
+    assert_equal string_23_23, string.move_to(23, 23)
+    assert_equal string_23_23, Color.move_to(23, 23, string)
+    assert_equal string_23_23, Color.move_to(23, 23) { string }
+    assert_equal string_23_23, Term::ANSIColor.move_to(23, 23) { string }
+    assert_equal string_23_23, move_to(23, 23) { string }
+  end
+
+  def test_return_to_position
+    string_return = "\e[sred\e[u"
+    assert_equal string_return, string.return_to_position
+    assert_equal string_return, Color.return_to_position(string)
+    assert_equal string_return, Color.return_to_position { string }
+    assert_equal string_return, Term::ANSIColor.return_to_position { string }
+    assert_equal string_return, return_to_position { string }
+  end
+
   def test_coloring_string_like
     assert_equal "\e[31mred\e[0m", red(string_like)
   end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/hsl_triple_test.rb new/tests/hsl_triple_test.rb
--- old/tests/hsl_triple_test.rb        2017-04-13 13:45:36.000000000 +0200
+++ new/tests/hsl_triple_test.rb        2018-11-02 11:40:23.000000000 +0100
@@ -27,8 +27,8 @@
     assert_in_delta @pastel_green_hsl.hue, hsl.hue, 1e-1
     assert_in_delta @pastel_green_hsl.saturation, hsl.saturation, 1e-1
     assert_in_delta @pastel_green_hsl.lightness, hsl.lightness, 1e-1
-    assert_match /hsl\(0\.0,0\.0%,53.3333.*?%\)/, @gray_rgb.to_hsl_triple.css
-    assert_match /hsl\(120\.0.*?,58\.82.*?%,20.0%\)/, RGBTriple[ '#155115' 
].to_hsl_triple.css
+    assert_match(/hsl\(0\.0,0\.0%,53.3333.*?%\)/, @gray_rgb.to_hsl_triple.css)
+    assert_match(/hsl\(120\.0.*?,58\.82.*?%,20.0%\)/, RGBTriple[ '#155115' 
].to_hsl_triple.css)
   end
 
   def test_conversion_to_rgb
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/tests/rgb_triple_test.rb new/tests/rgb_triple_test.rb
--- old/tests/rgb_triple_test.rb        2017-04-13 13:45:36.000000000 +0200
+++ new/tests/rgb_triple_test.rb        2018-11-02 11:40:23.000000000 +0100
@@ -87,7 +87,7 @@
     rgb = RGBTriple.new(128, 0, 255)
     assert_equal 'rgb(128,0,255)', rgb.css
     assert_equal '#8000ff', RGBTriple.from_css('rgb(128,0,255)').html
-    assert_match /rgb\(50\.19.*?%,0\.0%,100.0%\)/, rgb.css(percentage: true)
+    assert_match(/rgb\(50\.19.*?%,0\.0%,100.0%\)/, rgb.css(percentage: true))
     assert_equal '#8000ff', 
RGBTriple.from_css('rgb(50.19607843137255%,0.0%,100.0%)').html
   end
 


Reply via email to