New Upstream Release - rerun
Ready changes
Summary
Merged new upstream version: 0.14.0 (was: 0.13.1).
Resulting package
Built on 2023-05-29T09:09 (took 4m20s)
The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:
apt install -t fresh-releases rerun
Lintian Result
Diff
diff --git a/Gemfile b/Gemfile
index d41c5d1..74dbfa4 100644
--- a/Gemfile
+++ b/Gemfile
@@ -14,8 +14,10 @@ end
group :test do
gem 'rspec', ">=3.0"
- gem 'wrong', ">=0.6.2"
- gem 'files'
+ gem 'wrong', path: "../wrong"
+ gem 'files', path: "../files"
+ # gem 'wrong', github: "alexch/wrong"
+ # gem 'files', github: "alexch/files"
end
gem 'wdm', '>= 0.1.0' if Gem.win_platform?
diff --git a/README.md b/README.md
index 3ccb23f..6a8193e 100644
--- a/README.md
+++ b/README.md
@@ -399,7 +399,10 @@ Based upon and/or inspired by:
# Version History
-*
+* v0.14.0 4 January 2023
+ * Ruby 3.2 compatibility fix: .exists? no longer exists
+
+* v0.13.1 9 December 2020
* --no-ignore-dotfiles option
* v0.13.0 26 January 2018
diff --git a/debian/changelog b/debian/changelog
index acb8b84..2e1283b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+rerun (0.14.0-1) UNRELEASED; urgency=low
+
+ * New upstream release.
+
+ -- Debian Janitor <janitor@jelmer.uk> Mon, 29 May 2023 09:05:36 -0000
+
rerun (0.13.1-3) unstable; urgency=medium
* Team upload
diff --git a/debian/patches/0001-Read-version-number-from-installed-gemspec.patch b/debian/patches/0001-Read-version-number-from-installed-gemspec.patch
index b9f4d71..1728c9c 100644
--- a/debian/patches/0001-Read-version-number-from-installed-gemspec.patch
+++ b/debian/patches/0001-Read-version-number-from-installed-gemspec.patch
@@ -6,10 +6,10 @@ Subject: Read version number from installed gemspec
lib/rerun/options.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
-diff --git a/lib/rerun/options.rb b/lib/rerun/options.rb
-index 13d5150..1801120 100644
---- a/lib/rerun/options.rb
-+++ b/lib/rerun/options.rb
+Index: rerun.git/lib/rerun/options.rb
+===================================================================
+--- rerun.git.orig/lib/rerun/options.rb
++++ rerun.git/lib/rerun/options.rb
@@ -5,7 +5,7 @@ require 'rerun/system'
libdir = "#{File.expand_path(File.dirname(File.dirname(__FILE__)))}"
diff --git a/lib/rerun/runner.rb b/lib/rerun/runner.rb
index e879e8b..581d00c 100644
--- a/lib/rerun/runner.rb
+++ b/lib/rerun/runner.rb
@@ -311,7 +311,7 @@ module Rerun
def read_git_head
git_head_file = File.join(dir, '.git', 'HEAD')
- @git_head = File.exists?(git_head_file) && File.read(git_head_file)
+ @git_head = File.exist?(git_head_file) && File.read(git_head_file)
end
def notify(title, body, background = true)
diff --git a/lib/rerun/system.rb b/lib/rerun/system.rb
index 31e9ace..2bebedb 100644
--- a/lib/rerun/system.rb
+++ b/lib/rerun/system.rb
@@ -15,7 +15,7 @@ module Rerun
def rails?
rails_sig_file = File.expand_path(".")+"/config/boot.rb"
- File.exists? rails_sig_file
+ File.exist? rails_sig_file
end
end
diff --git a/lib/rerun/watcher.rb b/lib/rerun/watcher.rb
index da165c6..f6eb83f 100644
--- a/lib/rerun/watcher.rb
+++ b/lib/rerun/watcher.rb
@@ -50,7 +50,7 @@ module Rerun
dirs = [*dirs]
dirs.map do |d|
d.chomp!("/")
- unless FileTest.exists?(d) && FileTest.readable?(d) && FileTest.directory?(d)
+ unless FileTest.exist?(d) && FileTest.readable?(d) && FileTest.directory?(d)
raise InvalidDirectoryError, "Directory '#{d}' either doesnt exist or isn't readable"
end
File.expand_path(d)
diff --git a/rerun.gemspec b/rerun.gemspec
index f027ffe..6362585 100644
--- a/rerun.gemspec
+++ b/rerun.gemspec
@@ -3,13 +3,13 @@ $spec = Gem::Specification.new do |s|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.name = 'rerun'
- s.version = '0.13.1'
+ s.version = '0.14.0'
s.description = "Restarts your app when a file changes. A no-frills, command-line alternative to Guard, Shotgun, Autotest, etc."
s.summary = "Launches an app, and restarts it whenever the filesystem changes. A no-frills, command-line alternative to Guard, Shotgun, Autotest, etc."
s.authors = ["Alex Chaffee"]
- s.email = "alex@stinky.com"
+ s.email = "alexch@gmail.com"
s.files = %w[
README.md
diff --git a/spec/functional_spec.rb b/spec/functional_spec.rb
index 125f714..5a29ffe 100644
--- a/spec/functional_spec.rb
+++ b/spec/functional_spec.rb
@@ -86,7 +86,7 @@ describe "the rerun command" do
pid = @inc.inc_parent_pid
# puts "test sending INT to #{pid}"
Process.kill("INT", pid)
- timeout(6) {
+ Timeout::timeout(6) {
# puts "test waiting for #{pid}"
Process.wait(@inc.rerun_pid) rescue Errno::ESRCH
}
diff --git a/spec/inc_process.rb b/spec/inc_process.rb
index d9cef45..14fe452 100644
--- a/spec/inc_process.rb
+++ b/spec/inc_process.rb
@@ -1,6 +1,8 @@
here = File.expand_path(File.dirname(__FILE__))
require 'tmpdir'
require_relative('../lib/rerun/system')
+require 'timeout'
+
class IncProcess
include Rerun::System
@@ -57,7 +59,7 @@ class IncProcess
def launch
@rerun_pid = spawn(rerun_cmd)
- timeout(10) { sleep 0.5 until File.exist?(@inc_output_file) }
+ Timeout::timeout(10) { sleep 0.5 until File.exist?(@inc_output_file) }
sleep 3 # let rerun's watcher get going
read
end
Debdiff
[The following lists of changes regard files as different if they have different names, permissions or owners.]
Files in second set of .debs but not in first
-rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/rerun-0.14.0/icons/rails_grn_sml.png -rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/rerun-0.14.0/icons/rails_red_sml.png -rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/rerun-0.14.0/lib/goo.rb -rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/rerun-0.14.0/lib/rerun.rb -rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/rerun-0.14.0/lib/rerun/glob.rb -rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/rerun-0.14.0/lib/rerun/notification.rb -rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/rerun-0.14.0/lib/rerun/options.rb -rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/rerun-0.14.0/lib/rerun/runner.rb -rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/rerun-0.14.0/lib/rerun/system.rb -rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/rerun-0.14.0/lib/rerun/watcher.rb -rw-r--r-- root/root /usr/share/rubygems-integration/all/specifications/rerun-0.14.0.gemspec -rwxr-xr-x root/root /usr/share/rubygems-integration/all/gems/rerun-0.14.0/bin/rerun
Files in first set of .debs but not in second
-rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/rerun-0.13.1/icons/rails_grn_sml.png -rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/rerun-0.13.1/icons/rails_red_sml.png -rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/rerun-0.13.1/lib/goo.rb -rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/rerun-0.13.1/lib/rerun.rb -rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/rerun-0.13.1/lib/rerun/glob.rb -rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/rerun-0.13.1/lib/rerun/notification.rb -rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/rerun-0.13.1/lib/rerun/options.rb -rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/rerun-0.13.1/lib/rerun/runner.rb -rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/rerun-0.13.1/lib/rerun/system.rb -rw-r--r-- root/root /usr/share/rubygems-integration/all/gems/rerun-0.13.1/lib/rerun/watcher.rb -rw-r--r-- root/root /usr/share/rubygems-integration/all/specifications/rerun-0.13.1.gemspec -rwxr-xr-x root/root /usr/share/rubygems-integration/all/gems/rerun-0.13.1/bin/rerun
No differences were encountered in the control files