Hello community,

here is the log from the commit of package rubygem-spring for openSUSE:Factory 
checked in at 2020-09-14 12:29:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-spring (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-spring.new.4249 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-spring"

Mon Sep 14 12:29:14 2020 rev:19 rq:833966 version:2.1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/rubygem-spring/rubygem-spring.changes    
2019-07-08 16:41:18.144983535 +0200
+++ /work/SRC/openSUSE:Factory/.rubygem-spring.new.4249/rubygem-spring.changes  
2020-09-14 12:30:19.825175255 +0200
@@ -1,0 +2,8 @@
+Sat Sep 12 12:10:35 UTC 2020 - Manuel Schnitzer <mschnit...@suse.com>
+
+- updated to version 2.1.1
+
+  * Avoid -I rubylibdir with default-gem bundler
+  * Start server process in directory where command was called
+
+-------------------------------------------------------------------

Old:
----
  spring-2.1.0.gem

New:
----
  spring-2.1.1.gem

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

Other differences:
------------------
++++++ rubygem-spring.spec ++++++
--- /var/tmp/diff_new_pack.AfzDsV/_old  2020-09-14 12:30:23.309177476 +0200
+++ /var/tmp/diff_new_pack.AfzDsV/_new  2020-09-14 12:30:23.313177478 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-spring
 #
-# 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-spring
-Version:        2.1.0
+Version:        2.1.1
 Release:        0
 %define mod_name spring
 %define mod_full_name %{mod_name}-%{version}
@@ -33,7 +33,7 @@
 BuildRequires:  %{rubygem gem2rpm}
 BuildRequires:  ruby-macros >= 5
 BuildRequires:  update-alternatives
-Url:            https://github.com/rails/spring
+URL:            https://github.com/rails/spring
 Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml
 Summary:        Rails application preloader

++++++ spring-2.1.0.gem -> spring-2.1.1.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md       2019-06-14 21:37:30.000000000 +0200
+++ new/README.md       2020-08-25 02:27:48.000000000 +0200
@@ -232,6 +232,7 @@
 * 
[spring-commands-testunit](https://github.com/jonleighton/spring-commands-testunit)
 - useful for
   running `Test::Unit` tests on Rails 3, since only Rails 4 allows you
   to use `rake test path/to/test` to run a particular test/directory.
+* 
[spring-commands-parallel-tests](https://github.com/DocSpring/spring-commands-parallel-tests)
 - Adds the `parallel_*` commands from 
[`parallel_tests`](https://github.com/grosser/parallel_tests).
 * 
[spring-commands-teaspoon](https://github.com/alejandrobabio/spring-commands-teaspoon.git)
 * [spring-commands-m](https://github.com/gabrieljoelc/spring-commands-m.git)
 * [spring-commands-rubocop](https://github.com/p0deje/spring-commands-rubocop)
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       2019-06-14 21:37:30.000000000 +0200
+++ new/lib/spring/application.rb       2020-08-25 02:27:48.000000000 +0200
@@ -172,6 +172,11 @@
         end
       end
 
+      # Ensure we boot the process in the directory the command was called 
from,
+      # not from the directory Spring started in
+      original_dir = Dir.pwd
+      Dir.chdir(env['PWD'] || original_dir)
+
       pid = fork {
         Process.setsid
         IGNORE_SIGNALS.each { |sig| trap(sig, "DEFAULT") }
@@ -237,6 +242,7 @@
       # (i.e. to prevent `spring rake -T | grep db` from hanging forever),
       # even when exception is raised before forking (i.e. preloading).
       reset_streams
+      Dir.chdir(original_dir)
     end
 
     def terminate
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       2019-06-14 21:37:30.000000000 
+0200
+++ new/lib/spring/application_manager.rb       2020-08-25 02:27:48.000000000 
+0200
@@ -94,6 +94,7 @@
       @child, child_socket = UNIXSocket.pair
 
       Bundler.with_original_env do
+        bundler_dir = File.expand_path("../..", 
$LOADED_FEATURES.grep(/bundler\/setup\.rb$/).first)
         @pid = Process.spawn(
           {
             "RAILS_ENV"           => app_env,
@@ -102,7 +103,7 @@
             "SPRING_PRELOAD"      => preload ? "1" : "0"
           },
           "ruby",
-          "-I", File.expand_path("../..", 
$LOADED_FEATURES.grep(/bundler\/setup\.rb$/).first),
+          *(bundler_dir != RbConfig::CONFIG["rubylibdir"] ? ["-I", 
bundler_dir] : []),
           "-I", File.expand_path("../..", __FILE__),
           "-e", "require 'spring/application/boot'",
           3 => child_socket,
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     2019-06-14 21:37:30.000000000 +0200
+++ new/lib/spring/configuration.rb     2020-08-25 02:27:48.000000000 +0200
@@ -5,7 +5,11 @@
     attr_accessor :application_root, :quiet
 
     def gemfile
-      ENV['BUNDLE_GEMFILE'] || "Gemfile"
+      if /\s1.9.[0-9]/ ===  Bundler.ruby_scope.gsub(/[\/\s]+/,'')
+        ENV["BUNDLE_GEMFILE"] || "Gemfile"
+      else
+        Bundler.default_gemfile
+      end
     end
 
     def after_fork_callbacks
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   2019-06-14 21:37:30.000000000 +0200
+++ new/lib/spring/version.rb   2020-08-25 02:27:48.000000000 +0200
@@ -1,3 +1,3 @@
 module Spring
-  VERSION = "2.1.0"
+  VERSION = "2.1.1"
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2019-06-14 21:37:30.000000000 +0200
+++ new/metadata        2020-08-25 02:27:48.000000000 +0200
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: spring
 version: !ruby/object:Gem::Version
-  version: 2.1.0
+  version: 2.1.1
 platform: ruby
 authors:
 - Jon Leighton
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2019-06-14 00:00:00.000000000 Z
+date: 2020-08-25 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.0.1
+rubygems_version: 3.0.3
 signing_key: 
 specification_version: 4
 summary: Rails application preloader


Reply via email to