Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package rubygem-debug_inspector for
openSUSE:Factory checked in at 2021-01-21 21:55:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-debug_inspector (Old)
and /work/SRC/openSUSE:Factory/.rubygem-debug_inspector.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-debug_inspector"
Thu Jan 21 21:55:29 2021 rev:3 rq:865182 version:1.0.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/rubygem-debug_inspector/rubygem-debug_inspector.changes
2017-06-08 15:01:50.720827143 +0200
+++
/work/SRC/openSUSE:Factory/.rubygem-debug_inspector.new.28504/rubygem-debug_inspector.changes
2021-01-21 21:55:30.165800087 +0100
@@ -1,0 +2,6 @@
+Wed Jan 20 12:31:46 UTC 2021 - Stephan Kulow <[email protected]>
+
+updated to version 1.0.0
+ no changelog found
+
+-------------------------------------------------------------------
Old:
----
debug_inspector-0.0.3.gem
New:
----
debug_inspector-1.0.0.gem
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ rubygem-debug_inspector.spec ++++++
--- /var/tmp/diff_new_pack.OijJxc/_old 2021-01-21 21:55:30.769800507 +0100
+++ /var/tmp/diff_new_pack.OijJxc/_new 2021-01-21 21:55:30.773800510 +0100
@@ -1,7 +1,7 @@
#
# spec file for package rubygem-debug_inspector
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
#
# 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,16 +24,16 @@
#
Name: rubygem-debug_inspector
-Version: 0.0.3
+Version: 1.0.0
Release: 0
%define mod_name debug_inspector
%define mod_full_name %{mod_name}-%{version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-BuildRequires: %{rubydevel}
+BuildRequires: %{rubydevel >= 2.0}
BuildRequires: %{rubygem gem2rpm}
BuildRequires: ruby-macros >= 5
-Url: https://github.com/banister/debug_inspector
-Source: http://rubygems.org/gems/%{mod_full_name}.gem
+URL: https://github.com/banister/debug_inspector
+Source: https://rubygems.org/gems/%{mod_full_name}.gem
Source1: gem2rpm.yml
Summary: A Ruby wrapper for the MRI 2.0 debug_inspector API
License: MIT
++++++ debug_inspector-0.0.3.gem -> debug_inspector-1.0.0.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/.github/workflows/test.yml
new/.github/workflows/test.yml
--- old/.github/workflows/test.yml 1970-01-01 01:00:00.000000000 +0100
+++ new/.github/workflows/test.yml 2020-12-27 18:57:34.000000000 +0100
@@ -0,0 +1,119 @@
+name: Test
+
+on:
+ push:
+ branches: [ master ]
+ schedule:
+ - cron: '0 0 11,25 * *' # roughly every two weeks to run on new Ruby
versions
+ pull_request:
+ branches: [ master ]
+ workflow_dispatch:
+
+jobs:
+ test:
+ name: "Unit"
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: false
+ matrix:
+ os:
+ - macos-latest
+ - ubuntu-latest
+ - windows-latest
+ ruby:
+ - "2.1"
+ - "2.2"
+ - "2.3"
+ - "2.4"
+ - "2.5"
+ - "2.6"
+ - "2.7"
+ - "3.0"
+
+ steps:
+
+ - uses: actions/checkout@v2
+
+ - name: Determine ruby version name
+ id: ruby_version
+ run: |
+ if [[ $OS == 'windows-latest' && $RUBY == '3.0' ]]; then
+ # Windows doesn't have 3.0, so run head there but nowhere else.
+ echo "::set-output name=release::head"
+ else
+ echo "::set-output name=release::$RUBY"
+ fi
+ shell: bash
+ env:
+ OS: ${{ matrix.os }}
+ RUBY: ${{ matrix.ruby }}
+
+ - name: Set up Ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: ${{ steps.ruby_version.outputs.release }}
+ bundler-cache: true
+
+ - name: Test
+ run: bundle exec rake
+
+ system:
+ name: "System"
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: false
+ matrix:
+ os:
+ - macos-latest
+ - ubuntu-latest
+ - windows-latest
+ ruby:
+ - "2"
+ - "3.0"
+ - "jruby"
+ - "truffleruby"
+ exclude:
+ # Windows releases of jruby and truffleruby have issues. Skip them
for now.
+ - { ruby: "jruby", os: "windows-latest" }
+ - { ruby: "truffleruby", os: "windows-latest" }
+
+ steps:
+
+ - uses: actions/checkout@v2
+
+ - name: Determine ruby version name
+ id: ruby_version
+ run: |
+ if [[ $OS == 'windows-latest' && $RUBY == '3.0' ]]; then
+ # Windows doesn't have 3.0, so run head there but nowhere else.
+ echo "::set-output name=release::head"
+ else
+ echo "::set-output name=release::$RUBY"
+ fi
+ shell: bash
+ env:
+ OS: ${{ matrix.os }}
+ RUBY: ${{ matrix.ruby }}
+
+ - name: Set up Ruby
+ uses: ruby/setup-ruby@v1
+ with:
+ ruby-version: ${{ steps.ruby_version.outputs.release }}
+ bundler-cache: true
+
+ - name: Install gem
+ run: bundle exec rake install
+
+ - name: Create directory for gem test
+ run: mkdir -p tmp/gem-test
+
+ - name: Create test Gemfile
+ run: echo "gem 'debug_inspector'" > Gemfile
+ working-directory: ./tmp/gem-test
+
+ - name: Test gem load
+ run: bundle exec ruby -e "require 'debug_inspector'"
+
+ - name: Test gem functionality
+ if: ${{ matrix.ruby != 'jruby' && matrix.ruby != 'truffleruby' }}
+ run: bundle exec ruby -e "require 'debug_inspector';
RubyVM::DebugInspector.open { |dc| dc.frame_binding(1) }"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/.gitignore new/.gitignore
--- old/.gitignore 1970-01-01 01:00:00.000000000 +0100
+++ new/.gitignore 2020-12-27 18:57:34.000000000 +0100
@@ -0,0 +1,16 @@
+Gemfile.lock
+
+/.bundle/
+/.yardoc
+/_yardoc/
+/coverage/
+/doc/
+/pkg/
+/spec/reports/
+/tmp/
+*.bundle
+*.so
+*.o
+*.a
+mkmf.log
+Makefile
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/.travis.yml new/.travis.yml
--- old/.travis.yml 2017-05-09 01:49:46.000000000 +0200
+++ new/.travis.yml 1970-01-01 01:00:00.000000000 +0100
@@ -1,15 +0,0 @@
-language: ruby
-sudo: false
-before_install:
- - gem install bundler
-rvm:
-- 2.0.0
-- 2.1.10
-- 2.2.7
-- 2.3.4
-- 2.4.1
-- ruby-head
-matrix:
- allow_failures:
- - rvm: ruby-head
- fast_finish: true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Gemfile new/Gemfile
--- old/Gemfile 2017-05-09 01:49:46.000000000 +0200
+++ new/Gemfile 2020-12-27 18:57:34.000000000 +0100
@@ -1,5 +1,8 @@
source "https://rubygems.org"
+# Specify your gem's dependencies in debug_inspector.gemspec
gemspec
-gem 'rake'
+gem "rake"
+gem "rake-compiler"
+gem "minitest"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md 2017-05-09 01:49:46.000000000 +0200
+++ new/README.md 2020-12-27 18:57:34.000000000 +0100
@@ -1,15 +1,19 @@
-debug_inspector [](https://travis-ci.org/banister/debug_inspector)
+[](https://github.com/banister/debug_inspector/actions?query=branch%3Amaster)
+[](https://rubygems.org/gems/debug_inspector)
+
+debug_inspector
===============
-_A Ruby wrapper for the new MRI 2.0 debug\_inspector API_
+_A Ruby wrapper for the MRI 2.0+ debug\_inspector API_
The `debug_inspector` C extension and API were designed and built by [Koichi
Sasada](https://github.com/ko1), this project
is just a gemification of his work.
**NOTES:**
-* This library makes use of the new debug inspector API in MRI 2.0.0, **do not
use this library outside of debugging situations**.
-* Only works on MRI 2.0. Requiring it on unsupported Rubies will result in a
no-op
+* **Do not use this library outside of debugging situations**.
+* This library makes use of the debug inspector API which was new in MRI 2.0.0.
+* Only works on MRI 2 and 3. Requiring it on unsupported Rubies will result in
a no-op
Usage
-----
@@ -37,6 +41,13 @@
}
```
+Development
+-----------
+
+After checking out the repo, run `bin/setup` to install dependencies. Then,
run `rake test` to run the tests. You can also run `bin/console` for an
interactive prompt that will allow you to experiment.
+
+To install this gem onto your local machine, run `bundle exec rake install`.
To release a new version, update the version number in `version.rb`, and then
run `bundle exec rake release`, which will create a git tag for the version,
push git commits and tags, and push the `.gem` file to
[rubygems.org](https://rubygems.org).
+
Contact
-------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Rakefile new/Rakefile
--- old/Rakefile 2017-05-09 01:49:46.000000000 +0200
+++ new/Rakefile 2020-12-27 18:57:34.000000000 +0100
@@ -1,76 +1,27 @@
-$:.unshift 'lib'
-require 'rake/clean'
-require "debug_inspector/version"
-require 'rake/testtask'
+require "bundler/gem_tasks"
+require "rake/testtask"
-dlext = RbConfig::CONFIG['DLEXT']
-direc = File.expand_path(File.dirname(__FILE__))
-CLOBBER.include("**/*.#{dlext}", "**/*~", "**/*#*", "**/*.log", "**/*.o")
-CLEAN.include("ext/**/*.#{dlext}", "ext/**/*.log", "ext/**/*.o",
- "ext/**/*~", "ext/**/*#*", "ext/**/*.obj", "**/*#*", "**/*#*.*",
- "ext/**/*.def", "ext/**/*.pdb", "**/*_flymake*.*",
"**/*_flymake", "**/*.rbc")
+def can_compile_extensions?
+ RUBY_ENGINE == "ruby"
+end
Rake::TestTask.new(:test) do |t|
t.libs << "test"
+ t.libs << "lib"
t.test_files = FileList["test/**/*_test.rb"]
t.warning = true
t.verbose = true
end
-desc "Show version"
-task :version do
- puts "debug_inspector version: #{DebugInspector::VERSION}"
-end
-
-desc "run tests"
-task :default => [:compile, :test]
-
-task :pry do
- puts "loading debug_inspector into pry"
- sh "pry -r #{direc}/lib/debug_inspector"
-end
-
-desc "build the binaries"
-task :compile do
- chdir "#{direc}/ext/debug_inspector/" do
- sh "ruby extconf.rb"
- sh "make clean"
- sh "make"
- sh "cp *.#{dlext} ../../lib/"
- end
-end
-
-desc 'cleanup the extensions'
-task :cleanup do
- sh "rm -rf lib/debug_inspector.#{dlext}"
- chdir "#{direc}/ext/debug_inspector/" do
- sh 'make clean' rescue nil
- end
-end
-
-desc "(re)install gem"
-task :reinstall => :gem do
- sh "gem uninstall debug_inspector" rescue nil
- sh "gem install -l #{direc}/debug_inspector-#{DebugInspector::VERSION}.gem"
-end
-
-task :install => :reinstall
-
-desc "build all platform gems at once"
-task :gem => [:clean, :rmgems] do
- sh "gem build #{direc}/debug_inspector.gemspec"
-end
+require "rake/extensiontask"
-desc "remove all platform gems"
-task :rmgems do
- sh "rm #{direc}/*.gem" rescue nil
+if can_compile_extensions?
+ task :build => :compile
+ task :default => [:clobber, :compile, :test]
+else
+ task :default => [:test]
end
-desc "build and push latest gems"
-task :pushgems => :gem do
- chdir(direc) do
- Dir["*.gem"].each do |gemfile|
- sh "gem push #{gemfile}"
- end
- end
+Rake::ExtensionTask.new("debug_inspector") do |ext|
+ ext.lib_dir = "lib"
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/bin/console new/bin/console
--- old/bin/console 1970-01-01 01:00:00.000000000 +0100
+++ new/bin/console 2020-12-27 18:57:34.000000000 +0100
@@ -0,0 +1,14 @@
+#!/usr/bin/env ruby
+
+require "bundler/setup"
+require "debug_inspector"
+
+# You can add fixtures and/or initialization code here to make experimenting
+# with your gem easier. You can also use a different console, if you like.
+
+# (If you use this, don't forget to add pry to your Gemfile!)
+# require "pry"
+# Pry.start
+
+require "irb"
+IRB.start(__FILE__)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/bin/setup new/bin/setup
--- old/bin/setup 1970-01-01 01:00:00.000000000 +0100
+++ new/bin/setup 2020-12-27 18:57:34.000000000 +0100
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+set -euo pipefail
+IFS=$'\n\t'
+set -vx
+
+bundle install
+
+# Do any other automated setup that you need to do here
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/debug_inspector.gemspec new/debug_inspector.gemspec
--- old/debug_inspector.gemspec 2017-05-09 01:49:46.000000000 +0200
+++ new/debug_inspector.gemspec 2020-12-27 18:57:34.000000000 +0100
@@ -1,17 +1,28 @@
-# -*- encoding: utf-8 -*-
-require File.expand_path('../lib/debug_inspector/version', __FILE__)
+# We don't want to define any constants if the gem extension isn't loaded, so
not requiring the version file.
-Gem::Specification.new do |s|
- s.name = "debug_inspector"
- s.version = DebugInspector::VERSION
- s.authors = ["John Mair (banisterfiend)"]
- s.email = ["[email protected]"]
- s.homepage = "https://github.com/banister/debug_inspector"
- s.summary = "A Ruby wrapper for the MRI 2.0 debug_inspector API"
- s.description = s.summary
- s.files = `git ls-files`.split("\n")
- s.platform = Gem::Platform::RUBY
- s.extensions = ["ext/debug_inspector/extconf.rb"]
- s.license = 'MIT'
- s.add_development_dependency 'minitest', '>= 5'
+Gem::Specification.new do |spec|
+ spec.name = "debug_inspector"
+ spec.version = "1.0.0"
+ spec.authors = ["John Mair (banisterfiend)"]
+ spec.email = ["[email protected]"]
+
+ spec.summary = %q{A Ruby wrapper for the MRI 2.0 debug_inspector API}
+ spec.description = spec.summary
+ spec.homepage = "https://github.com/banister/debug_inspector"
+ spec.license = "MIT"
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.0")
+
+ spec.metadata["homepage_uri"] = spec.homepage
+ # spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL
here."
+ # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL
here."
+
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^test/}) }
+ end
+
+ spec.require_paths = ["lib"]
+
+ if RUBY_ENGINE == "ruby"
+ spec.extensions = ["ext/debug_inspector/extconf.rb"]
+ end
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/ext/debug_inspector/extconf.rb
new/ext/debug_inspector/extconf.rb
--- old/ext/debug_inspector/extconf.rb 2017-05-09 01:49:46.000000000 +0200
+++ new/ext/debug_inspector/extconf.rb 2020-12-27 18:57:34.000000000 +0100
@@ -1,16 +1,17 @@
def fake_makefile
- File.open(File.join(File.dirname(__FILE__), "Makefile"), "w") {|f|
- f.puts %[install:\n\techo "Nada."]
+ File.open("Makefile", "w") { |f|
+ f.puts '.PHONY: install'
+ f.puts 'install:'
+ f.puts "\t" + '@echo "This Ruby not supported by/does not require
debug_inspector."'
}
end
-def mri_2?
+def mri_2_or_3?
defined?(RUBY_ENGINE) && RUBY_ENGINE == "ruby" &&
- RUBY_VERSION =~ /^2/
+ RUBY_VERSION =~ /^[23]/
end
-
-if mri_2?
+if mri_2_or_3?
require 'mkmf'
create_makefile('debug_inspector')
else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/debug_inspector/version.rb
new/lib/debug_inspector/version.rb
--- old/lib/debug_inspector/version.rb 2017-05-09 01:49:46.000000000 +0200
+++ new/lib/debug_inspector/version.rb 1970-01-01 01:00:00.000000000 +0100
@@ -1,3 +0,0 @@
-module DebugInspector
- VERSION = "0.0.3"
-end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/debug_inspector.rb new/lib/debug_inspector.rb
--- old/lib/debug_inspector.rb 2017-05-09 01:49:46.000000000 +0200
+++ new/lib/debug_inspector.rb 2020-12-27 18:57:34.000000000 +0100
@@ -1,9 +1,8 @@
require 'rbconfig'
-
dlext = RbConfig::CONFIG['DLEXT']
-
begin
- require "debug_inspector.#{dlext}"
+ require_relative "debug_inspector.#{dlext}"
+ # If the above require fails, we don't want to define any constants.
+ require_relative "rubyvm/debug_inspector/version"
rescue LoadError
end
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/lib/rubyvm/debug_inspector/version.rb
new/lib/rubyvm/debug_inspector/version.rb
--- old/lib/rubyvm/debug_inspector/version.rb 1970-01-01 01:00:00.000000000
+0100
+++ new/lib/rubyvm/debug_inspector/version.rb 2020-12-27 18:57:34.000000000
+0100
@@ -0,0 +1,4 @@
+class RubyVM::DebugInspector
+ # Don't forget to update the version string in the gemspec file.
+ VERSION = "1.0.0"
+end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata 2017-05-09 01:49:46.000000000 +0200
+++ new/metadata 2020-12-27 18:57:34.000000000 +0100
@@ -1,29 +1,15 @@
--- !ruby/object:Gem::Specification
name: debug_inspector
version: !ruby/object:Gem::Version
- version: 0.0.3
+ version: 1.0.0
platform: ruby
authors:
- John Mair (banisterfiend)
-autorequire:
+autorequire:
bindir: bin
cert_chain: []
-date: 2017-05-08 00:00:00.000000000 Z
-dependencies:
-- !ruby/object:Gem::Dependency
- name: minitest
- requirement: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: '5'
- type: :development
- prerelease: false
- version_requirements: !ruby/object:Gem::Requirement
- requirements:
- - - ">="
- - !ruby/object:Gem::Version
- version: '5'
+date: 2020-12-27 00:00:00.000000000 Z
+dependencies: []
description: A Ruby wrapper for the MRI 2.0 debug_inspector API
email:
- [email protected]
@@ -32,22 +18,24 @@
- ext/debug_inspector/extconf.rb
extra_rdoc_files: []
files:
-- ".travis.yml"
+- ".github/workflows/test.yml"
+- ".gitignore"
- Gemfile
- README.md
- Rakefile
+- bin/console
+- bin/setup
- debug_inspector.gemspec
- ext/debug_inspector/debug_inspector.c
- ext/debug_inspector/extconf.rb
- lib/debug_inspector.rb
-- lib/debug_inspector/version.rb
-- test/basic_test.rb
-- test/test_helper.rb
+- lib/rubyvm/debug_inspector/version.rb
homepage: https://github.com/banister/debug_inspector
licenses:
- MIT
-metadata: {}
-post_install_message:
+metadata:
+ homepage_uri: https://github.com/banister/debug_inspector
+post_install_message:
rdoc_options: []
require_paths:
- lib
@@ -55,16 +43,15 @@
requirements:
- - ">="
- !ruby/object:Gem::Version
- version: '0'
+ version: '2.0'
required_rubygems_version: !ruby/object:Gem::Requirement
requirements:
- - ">="
- !ruby/object:Gem::Version
version: '0'
requirements: []
-rubyforge_project:
-rubygems_version: 2.5.1
-signing_key:
+rubygems_version: 3.1.4
+signing_key:
specification_version: 4
summary: A Ruby wrapper for the MRI 2.0 debug_inspector API
test_files: []
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/test/basic_test.rb new/test/basic_test.rb
--- old/test/basic_test.rb 2017-05-09 01:49:46.000000000 +0200
+++ new/test/basic_test.rb 1970-01-01 01:00:00.000000000 +0100
@@ -1,7 +0,0 @@
-require File.dirname(__FILE__) + '/test_helper'
-
-class BasicTest < MiniTest::Test
- def test_version
- assert(DebugInspector::VERSION)
- end
-end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/test/test_helper.rb new/test/test_helper.rb
--- old/test/test_helper.rb 2017-05-09 01:49:46.000000000 +0200
+++ new/test/test_helper.rb 1970-01-01 01:00:00.000000000 +0100
@@ -1,5 +0,0 @@
-lib_dir = File.dirname(__FILE__) + '/../lib'
-
-require 'minitest/autorun'
-$:.unshift lib_dir unless $:.include?(lib_dir)
-require 'debug_inspector'