New Upstream Snapshot - ruby-to-regexp

Ready changes

Summary

Merged new upstream version: 0.2.1+git20160308.1.629629e (was: 0.2.1).

Resulting package

Built on 2022-12-20T08:42 (took 6m18s)

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-snapshots ruby-to-regexp

Lintian Result

Diff

diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index f984cba..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,6 +0,0 @@
-*.gem
-.bundle
-Gemfile.lock
-pkg/*
-doc/
-.yardoc/
diff --git a/Gemfile b/Gemfile
index 0e5f3a2..75166cd 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,4 +1,4 @@
-source :rubygems
+source 'https://rubygems.org'
 
 # Specify your gem's dependencies in to_regexp.gemspec
 gemspec
diff --git a/debian/changelog b/debian/changelog
index 215ee23..c43fa70 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,12 +1,13 @@
-ruby-to-regexp (0.2.1-3) UNRELEASED; urgency=low
+ruby-to-regexp (0.2.1+git20160308.1.629629e-1) UNRELEASED; urgency=low
 
   * Trim trailing whitespace.
   * Set field Upstream-Contact in debian/copyright.
   * Remove obsolete fields Contact, Name from debian/upstream/metadata (already
     present in machine-readable debian/copyright).
   * Update standards version to 4.5.0, no changes needed.
+  * New upstream snapshot.
 
- -- Debian Janitor <janitor@jelmer.uk>  Sat, 29 Aug 2020 01:18:05 -0000
+ -- Debian Janitor <janitor@jelmer.uk>  Tue, 20 Dec 2022 08:38:42 -0000
 
 ruby-to-regexp (0.2.1-2) unstable; urgency=medium
 
diff --git a/lib/to_regexp.rb b/lib/to_regexp.rb
index a060b33..3528592 100644
--- a/lib/to_regexp.rb
+++ b/lib/to_regexp.rb
@@ -32,7 +32,7 @@ module ToRegexp
     # @option options [true,false] :lang /foo/[nesu]
     def to_regexp(options = {})
       if args = as_regexp(options)
-        ::Regexp.new *args
+        ::Regexp.new(*args)
       end
     end
 
diff --git a/test/test_to_regexp.rb b/test/test_to_regexp.rb
index b15a772..7a3b757 100644
--- a/test/test_to_regexp.rb
+++ b/test/test_to_regexp.rb
@@ -124,15 +124,15 @@ class TestToRegexp < Test::Unit::TestCase
   end
 
   def test_016_detect
-    assert_equal nil, ''.to_regexp(detect: true)
-    assert_equal //, '//'.to_regexp(detect: true)
-    assert_equal /foo/, 'foo'.to_regexp(detect: true)
-    assert_equal %r{foo\\b}, 'foo\b'.to_regexp(detect: true)
-    assert_equal %r{foo\b}, '/foo\b/'.to_regexp(detect: true)
-    assert_equal %r{foo\\b/}, 'foo\b/'.to_regexp(detect: true)
-    assert_equal %r{foo\b}i, '/foo\b/i'.to_regexp(detect: true)
-    assert_equal %r{foo\\b/i}, 'foo\b/i'.to_regexp(detect: true)
-    assert_equal /FOO.*(BAR)/mi, '/FOO.*(BAR)/mi'.to_regexp(detect: true)
+    assert_equal nil, ''.to_regexp(:detect => true)
+    assert_equal //, '//'.to_regexp(:detect => true)
+    assert_equal /foo/, 'foo'.to_regexp(:detect => true)
+    assert_equal %r{foo\\b}, 'foo\b'.to_regexp(:detect => true)
+    assert_equal %r{foo\b}, '/foo\b/'.to_regexp(:detect => true)
+    assert_equal %r{foo\\b/}, 'foo\b/'.to_regexp(:detect => true)
+    assert_equal %r{foo\b}i, '/foo\b/i'.to_regexp(:detect => true)
+    assert_equal %r{foo\\b/i}, 'foo\b/i'.to_regexp(:detect => true)
+    assert_equal /FOO.*(BAR)/mi, '/FOO.*(BAR)/mi'.to_regexp(:detect => true)
   end
 
   # https://github.com/ruby/ruby/blob/trunk/test/ruby/test_regexp.rb#L474 "test_union2"

Debdiff

File lists identical (after any substitutions)

No differences were encountered in the control files

More details

Full run details