Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-spring for openSUSE:Factory checked in at 2022-10-12 18:25:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-spring (Old) and /work/SRC/openSUSE:Factory/.rubygem-spring.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-spring" Wed Oct 12 18:25:14 2022 rev:22 rq:1010067 version:4.1.0 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-spring/rubygem-spring.changes 2022-02-07 23:38:50.922133131 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-spring.new.2275/rubygem-spring.changes 2022-10-12 18:27:03.990003546 +0200 @@ -1,0 +2,6 @@ +Mon Oct 10 13:23:55 UTC 2022 - Stephan Kulow <[email protected]> + +updated to version 4.1.0 + no changelog found + +------------------------------------------------------------------- Old: ---- spring-4.0.0.gem New: ---- spring-4.1.0.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-spring.spec ++++++ --- /var/tmp/diff_new_pack.1sd7C0/_old 2022-10-12 18:27:04.466004594 +0200 +++ /var/tmp/diff_new_pack.1sd7C0/_new 2022-10-12 18:27:04.470004602 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-spring -Version: 4.0.0 +Version: 4.1.0 Release: 0 %define mod_name spring %define mod_full_name %{mod_name}-%{version} ++++++ spring-4.0.0.gem -> spring-4.1.0.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2021-12-10 19:05:34.000000000 +0100 +++ new/README.md 2022-09-21 21:00:59.000000000 +0200 @@ -18,6 +18,7 @@ * Ruby versions: MRI 2.7, MRI 3.0, MRI 3.1 * Rails versions: 6.0, 6.1, 7.0 +* Bundler v2.1+ Spring makes extensive use of `Process.fork`, so won't be able to provide a speed up on platforms which don't support forking (Windows, JRuby). @@ -388,6 +389,12 @@ Spring.quiet = true ``` +You can also set the initial state of the `quiet` configuration option to true +by setting the `SPRING_QUIET` environment variable before executing Spring. +This is useful if you want to set quiet mode when invoking the Spring executable +in a subprocess, and cannot or prefer not to set it programmatically +via the `Spring.quiet` option in `~/.spring.rb` or the app's `config/spring.rb`. + ### Environment variables The following environment variables are used by Spring: @@ -412,6 +419,8 @@ the long-running Spring server process. By default, this is related to the socket path; if the socket path is `/foo/bar/spring.sock` the pidfile will be `/foo/bar/spring.pid`. +* `SPRING_QUIET` - If set, the initial state of the `Spring.quiet` + configuration option will default to `true`. * `SPRING_SERVER_COMMAND` - The command to run to start up the Spring server when it is not already running. Defaults to `spring _[version]_ server --background`. Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/spring/application.rb new/lib/spring/application.rb --- old/lib/spring/application.rb 2021-12-10 19:05:34.000000000 +0100 +++ new/lib/spring/application.rb 2022-09-21 21:00:59.000000000 +0200 @@ -1,5 +1,4 @@ require "spring/boot" -require "set" require "pty" module Spring @@ -128,7 +127,12 @@ end def eager_preload - with_pty { preload } + with_pty do + # we can't see stderr and there could be issues when it's overflown + # see https://github.com/rails/spring/issues/396 + STDERR.reopen("/dev/null") + preload + end end def run diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/spring/application_manager.rb new/lib/spring/application_manager.rb --- old/lib/spring/application_manager.rb 2021-12-10 19:05:34.000000000 +0100 +++ new/lib/spring/application_manager.rb 2022-09-21 21:00:59.000000000 +0200 @@ -93,7 +93,7 @@ def start_child(preload = false) @child, child_socket = UNIXSocket.pair - Bundler.with_unbundled_env do + Bundler.with_original_env do bundler_dir = File.expand_path("../..", $LOADED_FEATURES.grep(/bundler\/setup\.rb$/).first) @pid = Process.spawn( { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/spring/client/binstub.rb new/lib/spring/client/binstub.rb --- old/lib/spring/client/binstub.rb 2021-12-10 19:05:34.000000000 +0100 +++ new/lib/spring/client/binstub.rb 2022-09-21 21:00:59.000000000 +0200 @@ -1,5 +1,3 @@ -require 'set' - module Spring module Client class Binstub < Command diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/spring/client/rails.rb new/lib/spring/client/rails.rb --- old/lib/spring/client/rails.rb 2021-12-10 19:05:34.000000000 +0100 +++ new/lib/spring/client/rails.rb 2022-09-21 21:00:59.000000000 +0200 @@ -1,5 +1,3 @@ -require "set" - module Spring module Client class Rails < Command @@ -22,7 +20,7 @@ if COMMANDS.include?(command_name) Run.call(["rails_#{command_name}", *args.drop(2)]) - elsif command_name.start_with?("db:") + elsif command_name&.start_with?("db:") && !command_name.start_with?("db:system") Run.call(["rake", *args.drop(1)]) else require "spring/configuration" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/spring/commands.rb new/lib/spring/commands.rb --- old/lib/spring/commands.rb 2021-12-10 19:05:34.000000000 +0100 +++ new/lib/spring/commands.rb 2022-09-21 21:00:59.000000000 +0200 @@ -28,9 +28,16 @@ config = File.expand_path("~/.spring.rb") require config if File.exist?(config) - # If the config/spring.rb contains requires for commands from other gems, - # then we need to be under bundler. - require "bundler/setup" + # We force the TTY so bundler doesn't show a backtrace in case gems are missing. + old_env = ENV["BUNDLER_FORCE_TTY"] + ENV["BUNDLER_FORCE_TTY"] = "true" + begin + # If the config/spring.rb contains requires for commands from other gems, + # then we need to be under bundler. + require "bundler/setup" + ensure + ENV["BUNDLER_FORCE_TTY"] = old_env + end # Auto-require any Spring extensions which are in the Gemfile Gem::Specification.map(&:name).grep(/^spring-/).each do |command| diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/spring/configuration.rb new/lib/spring/configuration.rb --- old/lib/spring/configuration.rb 2021-12-10 19:05:34.000000000 +0100 +++ new/lib/spring/configuration.rb 2022-09-21 21:00:59.000000000 +0200 @@ -2,7 +2,8 @@ module Spring class << self - attr_accessor :application_root, :quiet + attr_accessor :application_root + attr_writer :quiet def gemfile require "bundler" @@ -52,6 +53,10 @@ @project_root_path ||= find_project_root(Pathname.new(File.expand_path(Dir.pwd))) end + def quiet + @quiet || ENV.key?('SPRING_QUIET') + end + private def find_project_root(current_dir) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/spring/env.rb new/lib/spring/env.rb --- old/lib/spring/env.rb 2021-12-10 19:05:34.000000000 +0100 +++ new/lib/spring/env.rb 2022-09-21 21:00:59.000000000 +0200 @@ -1,5 +1,4 @@ require "pathname" -require "digest/md5" require "spring/version" require "spring/configuration" @@ -41,6 +40,7 @@ end def application_id + require "digest/md5" ENV["SPRING_APPLICATION_ID"] || Digest::MD5.hexdigest(RUBY_VERSION + project_root.to_s) end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/spring/version.rb new/lib/spring/version.rb --- old/lib/spring/version.rb 2021-12-10 19:05:34.000000000 +0100 +++ new/lib/spring/version.rb 2022-09-21 21:00:59.000000000 +0200 @@ -1,3 +1,3 @@ module Spring - VERSION = "4.0.0" + VERSION = "4.1.0" end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/spring/watcher/abstract.rb new/lib/spring/watcher/abstract.rb --- old/lib/spring/watcher/abstract.rb 2021-12-10 19:05:34.000000000 +0100 +++ new/lib/spring/watcher/abstract.rb 2022-09-21 21:00:59.000000000 +0200 @@ -1,4 +1,3 @@ -require "set" require "pathname" require "mutex_m" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2021-12-10 19:05:34.000000000 +0100 +++ new/metadata 2022-09-21 21:00:59.000000000 +0200 @@ -1,14 +1,14 @@ --- !ruby/object:Gem::Specification name: spring version: !ruby/object:Gem::Version - version: 4.0.0 + version: 4.1.0 platform: ruby authors: - Jon Leighton autorequire: bindir: bin cert_chain: [] -date: 2021-12-10 00:00:00.000000000 Z +date: 2022-09-21 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: rake @@ -114,7 +114,7 @@ - !ruby/object:Gem::Version version: '0' requirements: [] -rubygems_version: 3.2.32 +rubygems_version: 3.3.7 signing_key: specification_version: 4 summary: Rails application preloader
