Hello community, here is the log from the commit of package rubygem-nio4r for openSUSE:Factory checked in at 2020-09-14 12:31:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-nio4r (Old) and /work/SRC/openSUSE:Factory/.rubygem-nio4r.new.4249 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-nio4r" Mon Sep 14 12:31:02 2020 rev:8 rq:833981 version:2.5.3 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-nio4r/rubygem-nio4r.changes 2019-11-13 13:26:27.775581118 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-nio4r.new.4249/rubygem-nio4r.changes 2020-09-14 12:32:06.837243495 +0200 @@ -1,0 +2,9 @@ +Sat Sep 12 12:28:10 UTC 2020 - Manuel Schnitzer <[email protected]> + +- updated to version 2.5.3 + + * [#241](https://github.com/socketry/nio4r/issues/241) + Possible bug with Ruby >= 2.7.0 and `GC.compact`. + ([@boazsegev]) + +------------------------------------------------------------------- Old: ---- nio4r-2.5.2.gem New: ---- nio4r-2.5.3.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-nio4r.spec ++++++ --- /var/tmp/diff_new_pack.bRENyX/_old 2020-09-14 12:32:08.341244454 +0200 +++ /var/tmp/diff_new_pack.bRENyX/_new 2020-09-14 12:32:08.345244457 +0200 @@ -1,7 +1,7 @@ # # spec file for package rubygem-nio4r # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,7 +24,7 @@ # Name: rubygem-nio4r -Version: 2.5.2 +Version: 2.5.3 Release: 0 %define mod_name nio4r %define mod_full_name %{mod_name}-%{version} @@ -35,10 +35,10 @@ %endif # /MANUAL BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: %{rubydevel >= 2.3} +BuildRequires: %{rubydevel >= 2.4} BuildRequires: %{rubygem gem2rpm} BuildRequires: ruby-macros >= 5 -Url: https://github.com/socketry/nio4r +URL: https://github.com/socketry/nio4r Source: https://rubygems.org/gems/%{mod_full_name}.gem Source1: rubygem-nio4r-rpmlintrc Source2: gem2rpm.yml ++++++ nio4r-2.5.2.gem -> nio4r-2.5.3.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.github/workflows/workflow.yml new/.github/workflows/workflow.yml --- old/.github/workflows/workflow.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/.github/workflows/workflow.yml 2020-09-07 09:29:16.000000000 +0200 @@ -0,0 +1,43 @@ +name: nio4r + +on: [push, pull_request] + +jobs: + build: + name: >- + ${{matrix.os}}, ${{matrix.ruby}} + env: + CI: true + TESTOPTS: -v + + runs-on: ${{matrix.os}} + strategy: + fail-fast: false + matrix: + os: [ubuntu-16.04, ubuntu-18.04, macos-latest, windows-latest] + ruby: [2.4, 2.5, 2.6, 2.7, jruby, truffleruby-head] + exclude: + - { os: windows-latest, ruby: jruby } + - { os: windows-latest, ruby: truffleruby-head } + + steps: + - name: repo checkout + uses: actions/checkout@v2 + + - name: load ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{matrix.ruby}} + + - name: RubyGems, Bundler Update + run: gem update --system --no-document --conservative + + - name: bundle install + run: bundle install --path .bundle/gems --without development + + - name: compile + run: bundle exec rake compile + + - name: test + run: bundle exec rake spec + timeout-minutes: 10 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.rubocop.yml new/.rubocop.yml --- old/.rubocop.yml 2019-09-24 13:35:26.000000000 +0200 +++ new/.rubocop.yml 2020-09-07 09:29:16.000000000 +0200 @@ -1,23 +1,40 @@ AllCops: - TargetRubyVersion: 2.3 + TargetRubyVersion: 2.4 DisplayCopNames: true +Layout/HashAlignment: + Enabled: false + +Layout/LineLength: + Max: 128 + +Layout/SpaceAroundMethodCallOperator: + Enabled: false + Layout/SpaceInsideBlockBraces: Enabled: false Style/IfUnlessModifier: Enabled: false +Style/UnpackFirst: + Enabled: false + # # Lint # -Lint/HandleExceptions: +Lint/SuppressedException: Enabled: false Lint/Loop: Enabled: false +Lint/RaiseException: + Enabled: false + +Lint/StructNewOverride: + Enabled: false # # Metrics # @@ -32,9 +49,6 @@ Metrics/ClassLength: Max: 128 -Metrics/LineLength: - Max: 128 - Metrics/MethodLength: CountComments: false Max: 50 @@ -46,16 +60,12 @@ Max: 15 # -# Performance +# Style # -Performance/RegexpMatch: +Style/ExponentialNotation: Enabled: false -# -# Style -# - Style/FormatStringToken: Enabled: false @@ -65,6 +75,15 @@ Style/GlobalVars: Enabled: false +Style/HashEachMethods: + Enabled: false + +Style/HashTransformKeys: + Enabled: false + +Style/HashTransformValues: + Enabled: false + Style/NumericPredicate: Enabled: false diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml --- old/.travis.yml 2019-09-24 13:35:26.000000000 +0200 +++ new/.travis.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,44 +0,0 @@ -language: ruby -cache: bundler -dist: xenial -env: OS="xenial 16.04" -bundler_args: --without development - -after_script: - - ruby -ropenssl -e "puts ENV['OS'], RUBY_DESCRIPTION, OpenSSL::OPENSSL_LIBRARY_VERSION" - -matrix: - fast_finish: true - include: - - rvm: 2.3 - - rvm: 2.4 - - rvm: 2.5 - - rvm: 2.6 - env: NIO4R_PURE=true - - rvm: 2.6 - - rvm: 2.3 - dist: trusty - env: OS="trusty 14.04" - - rvm: 2.6.3 - dist: bionic - env: OS="bionic 18.04" - - rvm: 2.6 - os: osx - env: OS="osx" - - rvm: 2.4.6 - os: osx - osx_image: xcode10.2 - env: OS="osx xcode 10.2" - - rvm: truffleruby - - rvm: truffleruby - env: NIO4R_PURE=true - - rvm: jruby - env: JRUBY_OPTS="--debug -X+O --dev -J-Djruby.launch.inproc=true -J-Xmx1024M" - - rvm: jruby-head - env: JRUBY_OPTS="--debug -X+O --dev -J-Djruby.launch.inproc=true -J-Xmx1024M" - - rvm: ruby-head - allow_failures: - - rvm: ruby-head - - rvm: truffleruby - - rvm: jruby-head - - rvm: jruby diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGES.md new/CHANGES.md --- old/CHANGES.md 2019-09-24 13:35:26.000000000 +0200 +++ new/CHANGES.md 2020-09-07 09:29:16.000000000 +0200 @@ -1,3 +1,19 @@ +## 2.5.3 (2020-09-07) + +* [#241](https://github.com/socketry/nio4r/issues/241) + Possible bug with Ruby >= 2.7.0 and `GC.compact`. + ([@boazsegev]) + +## 2.5.2 (2019-09-24) + +* [#220](https://github.com/socketry/nio4r/issues/220) + Update to libev-4.27 & fix assorted warnings. + ([@ioquatix]) + +* [#225](https://github.com/socketry/nio4r/issues/225) + Avoid need for linux headers. + ([@ioquatix]) + ## 2.4.0 (2019-07-07) * [#211](https://github.com/socketry/nio4r/pull/211) @@ -9,7 +25,7 @@ * Assorted fixes for TruffleRuby & JRuby. ([@eregon], [@olleolleolle]) - +Possible bug with Ruby >= 2.7.0 and `GC.compact` * Update libev to v4.25. ([@ioquatix]) @@ -242,3 +258,4 @@ [@ioquatix]: https://github.com/ioquatix [@eregon]: https://github.com/eregon [@olleolleolle]: https://github.com/olleolleolle +[@boazsegev]: https://github.com/boazsegev diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Gemfile new/Gemfile --- old/Gemfile 2019-09-24 13:35:26.000000000 +0200 +++ new/Gemfile 2020-09-07 09:29:16.000000000 +0200 @@ -15,5 +15,5 @@ gem "coveralls", require: false gem "rake-compiler", require: false gem "rspec", "~> 3.7", require: false - gem "rubocop", "0.52.1", require: false + gem "rubocop", "0.82.0", require: false end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2019-09-24 13:35:26.000000000 +0200 +++ new/README.md 2020-09-07 09:29:16.000000000 +0200 @@ -47,6 +47,7 @@ * Ruby 2.4 * Ruby 2.5 * Ruby 2.6 +* Ruby 2.7 * [JRuby](https://github.com/jruby/jruby) * [TruffleRuby](https://github.com/oracle/truffleruby) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/appveyor.yml new/appveyor.yml --- old/appveyor.yml 2019-09-24 13:35:26.000000000 +0200 +++ new/appveyor.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,40 +0,0 @@ -build: off -deploy: off - -environment: - PATH: C:\Ruby%RUBY_VERSION%\bin;%PATH% - APPVEYOR_SAVE_CACHE_ON_ERROR: True - matrix: - - RUBY_VERSION: _trunk - - RUBY_VERSION: 26-x64 - - RUBY_VERSION: 25-x64 - - RUBY_VERSION: 24-x64 - - RUBY_VERSION: 23-x64 - - RUBY_VERSION: 23 - -init: - - ps: | - if ($env:RUBY_VERSION -eq '_trunk') { - $trunk_uri = 'https://ci.appveyor.com/api/projects/MSP-Greg/ruby-loco/artifacts/ruby_trunk.7z' - (New-Object Net.WebClient).DownloadFile($trunk_uri, 'C:\ruby_trunk.7z') - 7z.exe x C:\ruby_trunk.7z -oC:\Ruby_trunk - } - -install: - - SET RAKEOPT=-rdevkit - - gem update --system --conservative --no-document - - ruby -v - - gem -v - - bundle -v - - bundle install --path vendor\bundle --without development - -test_script: - - bundle exec rake spec - -matrix: - allow_failures: - - RUBY_VERSION: _trunk - -cache: - # If one of the files after the right arrow changes, cache will be invalidated - - vendor\bundle -> appveyor.yml, Gemfile, nio4r.gemspec Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/examples/echo_server.rb new/examples/echo_server.rb --- old/examples/echo_server.rb 2019-09-24 13:35:26.000000000 +0200 +++ new/examples/echo_server.rb 2020-09-07 09:29:16.000000000 +0200 @@ -1,7 +1,7 @@ #!/usr/bin/env ruby # frozen_string_literal: true -$LOAD_PATH.push File.expand_path("../../lib", __FILE__) +$LOAD_PATH.push File.expand_path("../lib", __dir__) require "nio" require "socket" @@ -19,7 +19,7 @@ def run loop do - @selector.select { |monitor| monitor.value.call(monitor) } + @selector.select { |monitor| monitor.value.call } end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ext/nio4r/extconf.rb new/ext/nio4r/extconf.rb --- old/ext/nio4r/extconf.rb 2019-09-24 13:35:26.000000000 +0200 +++ new/ext/nio4r/extconf.rb 2020-09-07 09:29:16.000000000 +0200 @@ -4,6 +4,7 @@ # Write a dummy Makefile on Windows because we use the pure Ruby implementation there if Gem.win_platform? + require "devkit" if RUBY_PLATFORM.include?("mingw") File.write("Makefile", "all install::\n") File.write("nio4r_ext.so", "") exit diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ext/nio4r/monitor.c new/ext/nio4r/monitor.c --- old/ext/nio4r/monitor.c 2019-09-24 13:35:26.000000000 +0200 +++ new/ext/nio4r/monitor.c 2020-09-07 09:29:16.000000000 +0200 @@ -66,6 +66,7 @@ static void NIO_Monitor_mark(struct NIO_Monitor *monitor) { + return rb_gc_mark(monitor->self); } static void NIO_Monitor_free(struct NIO_Monitor *monitor) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/nio/bytebuffer.rb new/lib/nio/bytebuffer.rb --- old/lib/nio/bytebuffer.rb 2019-09-24 13:35:26.000000000 +0200 +++ new/lib/nio/bytebuffer.rb 2020-09-07 09:29:16.000000000 +0200 @@ -24,6 +24,7 @@ # @return [NIO::ByteBuffer] def initialize(capacity) raise TypeError, "no implicit conversion of #{capacity.class} to Integer" unless capacity.is_a?(Integer) + @capacity = capacity clear end @@ -119,9 +120,11 @@ # @return [self] def put(str) raise TypeError, "expected String, got #{str.class}" unless str.respond_to?(:to_str) + str = str.to_str raise OverflowError, "buffer is full" if str.length > @limit - @position + @buffer[@position...str.length] = str @position += str.length self @@ -188,6 +191,7 @@ # @raise [NIO::ByteBuffer::MarkUnsetError] mark has not been set (call `#mark` first) def reset raise MarkUnsetError, "mark has not been set" unless @mark + @position = @mark self end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/nio/monitor.rb new/lib/nio/monitor.rb --- old/lib/nio/monitor.rb 2019-09-24 13:35:26.000000000 +0200 +++ new/lib/nio/monitor.rb 2020-09-07 09:29:16.000000000 +0200 @@ -8,7 +8,7 @@ # :nodoc: def initialize(io, interests, selector) - unless io.is_a? OpenSSL::SSL::SSLSocket + unless defined?(::OpenSSL) && io.is_a?(::OpenSSL::SSL::SSLSocket) unless io.is_a?(IO) if IO.respond_to? :try_convert io = IO.try_convert(io) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/nio/selector.rb new/lib/nio/selector.rb --- old/lib/nio/selector.rb 2019-09-24 13:35:26.000000000 +0200 +++ new/lib/nio/selector.rb 2020-09-07 09:29:16.000000000 +0200 @@ -44,7 +44,7 @@ # * :w - is the IO writeable? # * :rw - is the IO either readable or writeable? def register(io, interest) - unless io.is_a? OpenSSL::SSL::SSLSocket + unless defined?(::OpenSSL) && io.is_a?(::OpenSSL::SSL::SSLSocket) io = IO.try_convert(io) end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/nio/version.rb new/lib/nio/version.rb --- old/lib/nio/version.rb 2019-09-24 13:35:26.000000000 +0200 +++ new/lib/nio/version.rb 2020-09-07 09:29:16.000000000 +0200 @@ -1,5 +1,5 @@ # frozen_string_literal: true module NIO - VERSION = "2.5.2" + VERSION = "2.5.3" end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2019-09-24 13:35:26.000000000 +0200 +++ new/metadata 2020-09-07 09:29:16.000000000 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: nio4r version: !ruby/object:Gem::Version - version: 2.5.2 + version: 2.5.3 platform: ruby authors: - Tony Arcieri -autorequire: +autorequire: bindir: bin cert_chain: [] -date: 2019-09-24 00:00:00.000000000 Z +date: 2020-09-07 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: bundler @@ -47,16 +47,15 @@ - ext/nio4r/extconf.rb extra_rdoc_files: [] files: +- ".github/workflows/workflow.yml" - ".gitignore" - ".rspec" - ".rubocop.yml" -- ".travis.yml" - CHANGES.md - Gemfile - Guardfile - README.md - Rakefile -- appveyor.yml - examples/echo_server.rb - ext/libev/Changes - ext/libev/LICENSE @@ -109,10 +108,10 @@ metadata: bug_tracker_uri: https://github.com/socketry/nio4r/issues changelog_uri: https://github.com/socketry/nio4r/blob/master/CHANGES.md - documentation_uri: https://www.rubydoc.info/gems/nio4r/2.5.2 - source_code_uri: https://github.com/socketry/nio4r/tree/v2.5.2 + documentation_uri: https://www.rubydoc.info/gems/nio4r/2.5.3 + source_code_uri: https://github.com/socketry/nio4r/tree/v2.5.3 wiki_uri: https://github.com/socketry/nio4r/wiki -post_install_message: +post_install_message: rdoc_options: [] require_paths: - lib @@ -120,15 +119,15 @@ requirements: - - ">=" - !ruby/object:Gem::Version - version: '2.3' + version: '2.4' required_rubygems_version: !ruby/object:Gem::Requirement requirements: - - ">=" - !ruby/object:Gem::Version version: '0' requirements: [] -rubygems_version: 3.0.4 -signing_key: +rubygems_version: 3.1.2 +signing_key: specification_version: 4 summary: New IO for Ruby test_files: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/nio4r.gemspec new/nio4r.gemspec --- old/nio4r.gemspec 2019-09-24 13:35:26.000000000 +0200 +++ new/nio4r.gemspec 2020-09-07 09:29:16.000000000 +0200 @@ -1,6 +1,6 @@ # frozen_string_literal: true -require File.expand_path("../lib/nio/version", __FILE__) +require File.expand_path("lib/nio/version", __dir__) Gem::Specification.new do |spec| spec.authors = ["Tony Arcieri"] @@ -28,7 +28,7 @@ "wiki_uri" => "https://github.com/socketry/nio4r/wiki" } - spec.required_ruby_version = ">= 2.3" + spec.required_ruby_version = ">= 2.4" if defined? JRUBY_VERSION spec.files << "lib/nio4r_ext.jar" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/nio/bytebuffer_spec.rb new/spec/nio/bytebuffer_spec.rb --- old/spec/nio/bytebuffer_spec.rb 2019-09-24 13:35:26.000000000 +0200 +++ new/spec/nio/bytebuffer_spec.rb 2020-09-07 09:29:16.000000000 +0200 @@ -352,4 +352,3 @@ end end end -# rubocop:enable Metrics/BlockLength diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/nio/selectables/ssl_socket_spec.rb new/spec/nio/selectables/ssl_socket_spec.rb --- old/spec/nio/selectables/ssl_socket_spec.rb 2019-09-24 13:35:26.000000000 +0200 +++ new/spec/nio/selectables/ssl_socket_spec.rb 2020-09-07 09:29:16.000000000 +0200 @@ -1,9 +1,11 @@ # frozen_string_literal: true require "spec_helper" -require "openssl" RSpec.describe OpenSSL::SSL::SSLSocket do + + require "openssl" + before(:all) do @tls = [] end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/nio/selectables/udp_socket_spec.rb new/spec/nio/selectables/udp_socket_spec.rb --- old/spec/nio/selectables/udp_socket_spec.rb 2019-09-24 13:35:26.000000000 +0200 +++ new/spec/nio/selectables/udp_socket_spec.rb 2020-09-07 09:29:16.000000000 +0200 @@ -33,8 +33,8 @@ peer.send("X" * 1024, 0) cntr += 1 t = select [], [peer], [], 0 - rescue Errno::ECONNREFUSED => ex - skip "Couldn't make writable UDPSocket subject: #{ex.class}: #{ex}" + rescue Errno::ECONNREFUSED => e + skip "Couldn't make writable UDPSocket subject: #{e.class}: #{e}" end while t && t[1].include?(peer) && cntr < 5 peer diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/nio/selector_spec.rb new/spec/nio/selector_spec.rb --- old/spec/nio/selector_spec.rb 2019-09-24 13:35:26.000000000 +0200 +++ new/spec/nio/selector_spec.rb 2020-09-07 09:29:16.000000000 +0200 @@ -234,4 +234,3 @@ expect(subject).to be_closed end end -# rubocop:enable Metrics/BlockLength
