Hello community, here is the log from the commit of package rubygem-highline for openSUSE:Factory checked in at 2015-02-27 11:10:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-highline (Old) and /work/SRC/openSUSE:Factory/.rubygem-highline.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "rubygem-highline" Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-highline/rubygem-highline.changes 2015-02-20 13:51:01.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-highline.new/rubygem-highline.changes 2015-02-27 11:10:17.000000000 +0100 @@ -1,0 +2,14 @@ +Thu Feb 26 05:31:14 UTC 2015 - coolo@suse.com + +- updated to version 1.7.1 + #### Enhancements + * Add travis CI configuration (Eli Young (@elyscape), #130) + * Add Rubinius to Build Matrix with Allowed Failure (Brandon Fish + (bjfish), #132) + * Make some adjustments on tests (Abinoam Marques Jr., #133, #134) + * Drop support for Ruby 1.8 (Abinoam Marques Jr., #134) + + #### Bug fixes + * Fix IO.console.winsize returning reversed column and line values (Fission Xuiptz (@fissionxuiptz)), #131) + +------------------------------------------------------------------- Old: ---- highline-1.7.0.gem New: ---- highline-1.7.1.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-highline.spec ++++++ --- /var/tmp/diff_new_pack.OQZCsZ/_old 2015-02-27 11:10:18.000000000 +0100 +++ /var/tmp/diff_new_pack.OQZCsZ/_new 2015-02-27 11:10:18.000000000 +0100 @@ -24,14 +24,14 @@ # Name: rubygem-highline -Version: 1.7.0 +Version: 1.7.1 Release: 0 %define mod_name highline %define mod_full_name %{mod_name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %{ruby >= 1.9.3} BuildRequires: %{rubygem gem2rpm} BuildRequires: %{rubygem rdoc > 3.10} -BuildRequires: %{ruby} BuildRequires: ruby-macros >= 5 Url: https://github.com/JEG2/highline Source: http://rubygems.org/gems/%{mod_full_name}.gem ++++++ highline-1.7.0.gem -> highline-1.7.1.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml --- old/.travis.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/.travis.yml 2015-02-25 01:58:42.000000000 +0100 @@ -0,0 +1,15 @@ +--- +language: ruby +sudo: false +script: "bundle exec rake test" +rvm: + - 1.9.3 + - 2.0.0 + - 2.1.5 + - 2.2.0 + - rbx-2 +notifications: + email: false +matrix: + allow_failures: + - rvm: rbx-2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Changelog.md new/Changelog.md --- old/Changelog.md 2015-02-19 20:45:34.000000000 +0100 +++ new/Changelog.md 2015-02-25 01:58:42.000000000 +0100 @@ -2,6 +2,18 @@ Below is a complete listing of changes for each revision of HighLine. +### 1.7.1 / 2015-02-24 + +#### Enhancements +* Add travis CI configuration (Eli Young (@elyscape), #130) +* Add Rubinius to Build Matrix with Allowed Failure (Brandon Fish +(bjfish), #132) +* Make some adjustments on tests (Abinoam Marques Jr., #133, #134) +* Drop support for Ruby 1.8 (Abinoam Marques Jr., #134) + +#### Bug fixes +* Fix IO.console.winsize returning reversed column and line values (Fission Xuiptz (@fissionxuiptz)), #131) + ### 1.7.0 / 2015-02-18 #### Bug fixes diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gemfile new/Gemfile --- old/Gemfile 1970-01-01 01:00:00.000000000 +0100 +++ new/Gemfile 2015-02-25 01:58:42.000000000 +0100 @@ -0,0 +1,9 @@ +source "https://rubygems.org" + +gem "rake", :require => false +gem "rdoc", :require => false + +group(:development, :tests) do + gem "code_statistics", :require => false + gem "test-unit", :require => false +end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/INSTALL new/INSTALL --- old/INSTALL 2015-02-19 20:45:34.000000000 +0100 +++ new/INSTALL 2015-02-25 01:58:42.000000000 +0100 @@ -3,6 +3,10 @@ RubyGems is the preferred easy install method for HighLine. However, you can install HighLine manually as described below. +== Requirements + +HighLine from version >= 1.7.0 requires ruby >= 1.9.3 + == Installing the Gem HighLine is intended to be installed via the diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.rdoc new/README.rdoc --- old/README.rdoc 2015-02-19 20:45:34.000000000 +0100 +++ new/README.rdoc 2015-02-25 01:58:42.000000000 +0100 @@ -1,7 +1,9 @@ -= Read Me += HighLine by James Edward Gray II +{<img src="https://travis-ci.org/JEG2/highline.svg" alt="Build Status" />}[https://travis-ci.org/JEG2/highline] + == Description Welcome to HighLine. @@ -57,6 +59,10 @@ For more examples see the examples/ directory of this project. +== Requirements + +HighLine from version >= 1.7.0 requires ruby >= 1.9.3 + == Installing See the INSTALL file for instructions. Files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/highline.gemspec new/highline.gemspec --- old/highline.gemspec 2015-02-19 20:45:34.000000000 +0100 +++ new/highline.gemspec 2015-02-25 01:58:42.000000000 +0100 @@ -33,4 +33,5 @@ END_DESC spec.add_development_dependency "code_statistics" + spec.required_ruby_version = '>= 1.9.3' end 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 2015-02-19 20:45:34.000000000 +0100 +++ new/lib/highline/menu.rb 2015-02-25 01:58:42.000000000 +0100 @@ -345,7 +345,7 @@ # Allows Menu to behave as a String, just like Question. Returns the # _layout_ to be rendered, which is used by HighLine.say(). # - def to_str( ) + def to_s( ) case @layout when :list '<%= if @header.nil? then '' else "#{@header}:\n" end %>' + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/highline/question.rb new/lib/highline/question.rb --- old/lib/highline/question.rb 2015-02-19 20:45:34.000000000 +0100 +++ new/lib/highline/question.rb 2015-02-25 01:58:42.000000000 +0100 @@ -441,7 +441,7 @@ end # Stringifies the question to be asked. - def to_str( ) + def to_s @question end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/highline/system_extensions.rb new/lib/highline/system_extensions.rb --- old/lib/highline/system_extensions.rb 2015-02-19 20:45:34.000000000 +0100 +++ new/lib/highline/system_extensions.rb 2015-02-25 01:58:42.000000000 +0100 @@ -6,7 +6,6 @@ # This is Free Software. See LICENSE and COPYING for details. require "highline/compatibility" -require "io/console" class HighLine module SystemExtensions @@ -224,9 +223,14 @@ # A Unix savvy method using stty to fetch the console columns, and rows. # ... stty does not work in JRuby def terminal_size - if (winsize = IO.console.winsize rescue nil) - winsize - elsif /solaris/ =~ RUBY_PLATFORM and + begin + require "io/console" + winsize = IO.console.winsize rescue nil + return winsize if winsize + rescue LoadError + end + + if /solaris/ =~ RUBY_PLATFORM and `stty` =~ /\brows = (\d+).*\bcolumns = (\d+)/ [$2, $1].map { |c| x.to_i } elsif `stty size` =~ /^(\d+)\s(\d+)$/ 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 2015-02-19 20:45:34.000000000 +0100 +++ new/lib/highline/version.rb 2015-02-25 01:58:42.000000000 +0100 @@ -1,4 +1,4 @@ class HighLine # The version of the installed library. - VERSION = "1.7.0".freeze + VERSION = "1.7.1".freeze end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/highline.rb new/lib/highline.rb --- old/lib/highline.rb 2015-02-19 20:45:34.000000000 +0100 +++ new/lib/highline.rb 2015-02-25 01:58:42.000000000 +0100 @@ -1,3 +1,4 @@ +# coding: utf-8 # highline.rb # # Created by James Edward Gray II on 2005-04-26. @@ -722,6 +723,10 @@ statement = wrap(statement) unless @wrap_at.nil? statement = page_print(statement) unless @page_at.nil? + # 'statement' is encoded in US-ASCII when using ruby 1.9.3(-p551) + # 'indentation' is correctly encoded (same as default_external encoding) + statement = statement.force_encoding(Encoding.default_external) + statement = statement.gsub(/\n(?!$)/,"\n#{indentation}") if @multi_indent statement diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2015-02-19 20:45:34.000000000 +0100 +++ new/metadata 2015-02-25 01:58:42.000000000 +0100 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: highline version: !ruby/object:Gem::Version - version: 1.7.0 + version: 1.7.1 platform: ruby authors: - James Edward Gray II autorequire: bindir: bin cert_chain: [] -date: 2015-02-19 00:00:00.000000000 Z +date: 2015-02-25 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: code_statistics @@ -40,9 +40,11 @@ - LICENSE files: - ".gitignore" +- ".travis.yml" - AUTHORS - COPYING - Changelog.md +- Gemfile - INSTALL - LICENSE - README.rdoc @@ -103,7 +105,7 @@ requirements: - - ">=" - !ruby/object:Gem::Version - version: '0' + version: 1.9.3 required_rubygems_version: !ruby/object:Gem::Requirement requirements: - - ">=" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/tc_highline.rb new/test/tc_highline.rb --- old/test/tc_highline.rb 2015-02-19 20:45:34.000000000 +0100 +++ new/test/tc_highline.rb 2015-02-25 01:58:42.000000000 +0100 @@ -1,3 +1,4 @@ +# encoding: utf-8 # tc_highline.rb # # Created by James Edward Gray II on 2005-04-26. @@ -248,14 +249,22 @@ end def test_readline_mode + # Rubinius seems to be ignoring Readline input + # and output assignments. This ruins testing. + # but it doesn't mean readline is not working + # properly on rubinius. + + return if RUBY_ENGINE == "rbx" + # Creating Tempfiles here because Readline.input # and Readline.output only accepts a File object # as argument (not any duck type as StringIO) - temp_stdin = Tempfile.create "temp_stdin" - temp_stdout = Tempfile.create "temp_stdout" - Readline.input = @input = temp_stdin - Readline.output = @output = temp_stdout + temp_stdin = Tempfile.new "temp_stdin" + temp_stdout = Tempfile.new "temp_stdout" + + Readline.input = @input = File.open(temp_stdin.path, 'w+') + Readline.output = @output = File.open(temp_stdout.path, 'w+') @terminal = HighLine.new(@input, @output) @@ -270,7 +279,7 @@ output = @output.read assert_equal "any input", answer - assert_equal "Prompt: any input\n", output + assert_match "Prompt: any input\n", output @input.close @output.close @@ -279,11 +288,11 @@ end def test_readline_mode_with_limit_set - temp_stdin = Tempfile.create "temp_stdin" - temp_stdout = Tempfile.create "temp_stdout" + temp_stdin = Tempfile.new "temp_stdin" + temp_stdout = Tempfile.new "temp_stdout" - Readline.input = @input = temp_stdin - Readline.output = @output = temp_stdout + Readline.input = @input = File.open(temp_stdin.path, 'w+') + Readline.output = @output = File.open(temp_stdout.path, 'w+') @terminal = HighLine.new(@input, @output) @@ -578,7 +587,7 @@ q.glob = "*.rb" end assert_instance_of(File, file) - assert_equal("# tc_highline.rb\n", file.gets) + assert_equal("# encoding: utf-8\n", file.gets) file.close @input.rewind @@ -926,7 +935,7 @@ q.echo = false end - refute_equal("password", answer) + assert_not_equal("password", answer) assert_equal("passwor", answer) end @@ -938,7 +947,7 @@ q.echo = false end - refute_equal("maçã", answer) + assert_not_equal("maçã", answer) assert_equal("maç", answer) end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/tc_menu.rb new/test/tc_menu.rb --- old/test/tc_menu.rb 2015-02-19 20:45:34.000000000 +0100 +++ new/test/tc_menu.rb 2015-02-25 01:58:42.000000000 +0100 @@ -1,4 +1,4 @@ -# encoding: utf-8 +# coding: utf-8 # tc_menu.rb # # Created by Gregory Thomas Brown on 2005-05-10. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/tc_string_extension.rb new/test/tc_string_extension.rb --- old/test/tc_string_extension.rb 2015-02-19 20:45:34.000000000 +0100 +++ new/test/tc_string_extension.rb 2015-02-25 01:58:42.000000000 +0100 @@ -20,13 +20,14 @@ def test_Highline_String_is_yaml_serializable require 'yaml' + unless Gem::Version.new(YAML::VERSION) < Gem::Version.new("2.0.2") + highline_string = HighLine::String.new("Yaml didn't messed with HighLine::String") + yaml_highline_string = highline_string.to_yaml + yaml_loaded_string = YAML.load(yaml_highline_string) - highline_string = HighLine::String.new("Yaml didn't messed with HighLine::String") - yaml_highline_string = highline_string.to_yaml - yaml_loaded_string = YAML.load(yaml_highline_string) - - assert_equal "Yaml didn't messed with HighLine::String", yaml_loaded_string - assert_equal highline_string, yaml_loaded_string - assert_instance_of HighLine::String, yaml_loaded_string + assert_equal "Yaml didn't messed with HighLine::String", yaml_loaded_string + assert_equal highline_string, yaml_loaded_string + assert_instance_of HighLine::String, yaml_loaded_string + end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/test/tc_style.rb new/test/tc_style.rb --- old/test/tc_style.rb 2015-02-19 20:45:34.000000000 +0100 +++ new/test/tc_style.rb 2015-02-25 01:58:42.000000000 +0100 @@ -569,7 +569,7 @@ bright_style = @style1.bright light_style = @style1.light - refute_equal bright_style, light_style + assert_not_equal bright_style, light_style assert_equal :bright_foo, bright_style.name assert_equal :light_foo, light_style.name assert_equal bright_style.code, light_style.code -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org