Hello community,

here is the log from the commit of package rubygem-highline for 
openSUSE:Factory checked in at 2019-06-19 21:00:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-highline (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-highline.new.4811 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-highline"

Wed Jun 19 21:00:07 2019 rev:28 rq:705996 version:2.0.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-highline/rubygem-highline.changes        
2018-06-29 22:25:18.694532863 +0200
+++ 
/work/SRC/openSUSE:Factory/.rubygem-highline.new.4811/rubygem-highline.changes  
    2019-06-19 21:00:08.410074593 +0200
@@ -1,0 +2,15 @@
+Sun May  5 09:30:49 UTC 2019 - Stephan Kulow <[email protected]>
+
+- updated to version 2.0.2
+ see installed Changelog.md
+
+-------------------------------------------------------------------
+Sat Mar  2 15:21:56 UTC 2019 - Stephan Kulow <[email protected]>
+
+- updated to version 2.0.1
+ see installed Changelog.md
+
+  ### 2.0.1 / 2018-01-23
+  * PR #238 / I #237 - Rescue Errno::ENOTTY when pipeing
+
+-------------------------------------------------------------------

Old:
----
  highline-2.0.0.gem

New:
----
  highline-2.0.2.gem

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

Other differences:
------------------
++++++ rubygem-highline.spec ++++++
--- /var/tmp/diff_new_pack.2uZh1W/_old  2019-06-19 21:00:09.342075427 +0200
+++ /var/tmp/diff_new_pack.2uZh1W/_new  2019-06-19 21:00:09.358075442 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-highline
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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-highline
-Version:        2.0.0
+Version:        2.0.2
 Release:        0
 %define mod_name highline
 %define mod_full_name %{mod_name}-%{version}

++++++ highline-2.0.0.gem -> highline-2.0.2.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.rubocop.yml new/.rubocop.yml
--- old/.rubocop.yml    2018-06-11 13:44:45.000000000 +0200
+++ new/.rubocop.yml    2019-04-09 01:31:18.000000000 +0200
@@ -4,7 +4,7 @@
 # https://github.com/bbatsov/rubocop/tree/master/config
 
 AllCops:
-  TargetRubyVersion: 1.9
+  TargetRubyVersion: 2.1
 
 # General
 
@@ -50,7 +50,6 @@
 # SupportedStyles: when_needed, always, never
 Style/Encoding:
   Enabled: true
-  EnforcedStyle: always
 
 # If we fix this, it will change method signature.
 # Save it for major release.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/.travis.yml new/.travis.yml
--- old/.travis.yml     2018-06-11 13:44:45.000000000 +0200
+++ new/.travis.yml     2019-04-09 01:31:18.000000000 +0200
@@ -1,7 +1,6 @@
 ---
 language: ruby
 dist: trusty
-sudo: false
 cache: bundler
 script: "bundle exec rake test"
 rvm:
@@ -31,6 +30,9 @@
     - rvm: 2.5
       before_install:
         - gem install bundler
+    - rvm: 2.6
+      before_install:
+        - gem install bundler
     - rvm: ruby-head
       before_install:
           - gem install bundler
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Changelog.md new/Changelog.md
--- old/Changelog.md    2018-06-11 13:44:45.000000000 +0200
+++ new/Changelog.md    2019-04-09 01:31:18.000000000 +0200
@@ -2,6 +2,17 @@
 
 Below is a complete listing of changes for each revision of HighLine.
 
+### 2.0.2 / 2019-04-08
+* PR #243 - Add new capital_letter option to menu index (@Ana06)
+  * This is a really special PR. It has come from "The Biggest
+    Mobprogramming Session Ever" and around 250 people
+    participated in crafting it!
+* PR #241 - CI: Add 2.6 (@olleolleolle)
+* PR #240 - Avoid YARD warning UnknownParam (@olleolleolle)
+
+### 2.0.1 / 2019-01-23
+* PR #238 / I #237 - Rescue Errno::ENOTTY when pipeing
+
 ### 2.0.0 / 2018-06-10
 * Release 2.0.0 (major version release).
 
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/examples/menus.rb new/examples/menus.rb
--- old/examples/menus.rb       2018-06-11 13:44:45.000000000 +0200
+++ new/examples/menus.rb       2019-04-09 01:31:18.000000000 +0200
@@ -33,7 +33,7 @@
 
 say("\nThis is letter indexing...")
 choose do |menu|
-  menu.index        = :letter
+  menu.index        = :letter # Use :capital_letter for uppercase
   menu.index_suffix = ") "
 
   menu.prompt = "Please choose your favorite programming language?  "
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/highline/menu.rb new/lib/highline/menu.rb
--- old/lib/highline/menu.rb    2018-06-11 13:44:45.000000000 +0200
+++ new/lib/highline/menu.rb    2019-04-09 01:31:18.000000000 +0200
@@ -374,9 +374,10 @@
     end
 
     def map_items_by_index
-      if @index == :letter
-        l_index = "`"
-        all_items.map { l_index.succ!.dup }
+      if [:letter, :capital_letter].include?(@index)
+        # @ and ` are the previous ASCII characters to A and a respectively
+        prev_char = (@index == :capital_letter ? '@' : '`')
+        all_items.map { prev_char.succ!.dup }
       else
         (1..all_items.size).map(&:to_s)
       end
@@ -436,7 +437,7 @@
 
       # 97 is the "a" letter at ascii table
       # Ex: For "a" it will return 0, and for "c" it will return 2
-      index = selection.ord - 97
+      index = selection.downcase.ord - 97
       items[index]
     end
 
@@ -517,8 +518,9 @@
       case @index
       when :number
         ["#{ix + 1}#{@index_suffix}", text]
-      when :letter
-        ["#{('a'.ord + ix).chr}#{@index_suffix}", text]
+      when :letter, :capital_letter
+        first_letter = (@index == :capital_letter ? 'A' : 'a')
+        ["#{(first_letter.ord + ix).chr}#{@index_suffix}", text]
       when :none
         [text, ""]
       else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/highline/terminal/io_console.rb 
new/lib/highline/terminal/io_console.rb
--- old/lib/highline/terminal/io_console.rb     2018-06-11 13:44:45.000000000 
+0200
+++ new/lib/highline/terminal/io_console.rb     2019-04-09 01:31:18.000000000 
+0200
@@ -1,28 +1,35 @@
-# coding: utf-8
+# frozen_string_literal: true
 
 class HighLine
   class Terminal
     # io/console option for HighLine::Terminal.
     # It's the most used terminal.
+    # TODO: We're rescuing when not a terminal.
+    #       We should make a more robust implementation.
     class IOConsole < Terminal
       # (see Terminal#terminal_size)
       def terminal_size
         output.winsize.reverse
+      rescue Errno::ENOTTY
       end
 
       # (see Terminal#raw_no_echo_mode)
       def raw_no_echo_mode
         input.echo = false
+      rescue Errno::ENOTTY
       end
 
       # (see Terminal#restore_mode)
       def restore_mode
         input.echo = true
+      rescue Errno::ENOTTY
       end
 
       # (see Terminal#get_character)
-      def get_character # rubocop:disable Naming/AccessorMethodName
+      def get_character
         input.getch # from ruby io/console
+      rescue Errno::ENOTTY
+        input.getc
       end
     end
   end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/highline/terminal.rb new/lib/highline/terminal.rb
--- old/lib/highline/terminal.rb        2018-06-11 13:44:45.000000000 +0200
+++ new/lib/highline/terminal.rb        2019-04-09 01:31:18.000000000 +0200
@@ -81,7 +81,6 @@
     # Use readline if question has readline mode set.
     # @param question [HighLine::Question]
     # @param highline [HighLine]
-    # @param options [Hash]
     def get_line(question, highline)
       raw_answer =
         if question.readline
@@ -108,7 +107,6 @@
     end
 
     # Use readline to read one line
-    # @param prompt [String] Readline prompt
     # @param question [HighLine::Question] question from where to get
     #   autocomplete candidate strings
     def readline_read(question)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/highline/version.rb new/lib/highline/version.rb
--- old/lib/highline/version.rb 2018-06-11 13:44:45.000000000 +0200
+++ new/lib/highline/version.rb 2019-04-09 01:31:18.000000000 +0200
@@ -2,5 +2,5 @@
 
 class HighLine
   # The version of the installed library.
-  VERSION = "2.0.0".freeze
+  VERSION = "2.0.2".freeze
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2018-06-11 13:44:45.000000000 +0200
+++ new/metadata        2019-04-09 01:31:18.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: highline
 version: !ruby/object:Gem::Version
-  version: 2.0.0
+  version: 2.0.2
 platform: ruby
 authors:
 - James Edward Gray II
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2018-06-11 00:00:00.000000000 Z
+date: 2019-04-08 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: bundler
@@ -145,7 +145,7 @@
       version: '0'
 requirements: []
 rubyforge_project: 
-rubygems_version: 2.7.6
+rubygems_version: 2.7.9
 signing_key: 
 specification_version: 4
 summary: HighLine is a high-level command-line IO library.


Reply via email to