Skip to content

Commit a63bbdb

Browse files
author
Chris Bloom
authored
Merge pull request #15 from chrisbloom7/ruby-3-0
Fix Proc error on Ruby 3.0, bump some dependencies
2 parents f255417 + ddb2c48 commit a63bbdb

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

Gemfile.lock

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
enumpath (0.1.1)
4+
enumpath (0.1.2)
55
mini_cache (~> 1.1.0)
66
to_regexp (~> 0.2.1)
77

@@ -11,7 +11,7 @@ GEM
1111
benchmark-perf (0.2.1)
1212
byebug (10.0.2)
1313
coderay (1.1.2)
14-
diff-lcs (1.3)
14+
diff-lcs (1.4.4)
1515
method_source (0.9.0)
1616
mini_cache (1.1.0)
1717
null-logger (0.1.5)
@@ -22,22 +22,22 @@ GEM
2222
byebug (~> 10.0)
2323
pry (~> 0.10)
2424
rake (12.3.3)
25-
rspec (3.8.0)
26-
rspec-core (~> 3.8.0)
27-
rspec-expectations (~> 3.8.0)
28-
rspec-mocks (~> 3.8.0)
25+
rspec (3.10.0)
26+
rspec-core (~> 3.10.0)
27+
rspec-expectations (~> 3.10.0)
28+
rspec-mocks (~> 3.10.0)
2929
rspec-benchmark (0.3.0)
3030
benchmark-perf (~> 0.2.0)
3131
rspec (>= 3.0.0, < 4.0.0)
32-
rspec-core (3.8.0)
33-
rspec-support (~> 3.8.0)
34-
rspec-expectations (3.8.1)
32+
rspec-core (3.10.1)
33+
rspec-support (~> 3.10.0)
34+
rspec-expectations (3.10.1)
3535
diff-lcs (>= 1.2.0, < 2.0)
36-
rspec-support (~> 3.8.0)
37-
rspec-mocks (3.8.0)
36+
rspec-support (~> 3.10.0)
37+
rspec-mocks (3.10.2)
3838
diff-lcs (>= 1.2.0, < 2.0)
39-
rspec-support (~> 3.8.0)
40-
rspec-support (3.8.0)
39+
rspec-support (~> 3.10.0)
40+
rspec-support (3.10.2)
4141
rspec_junit_formatter (0.4.1)
4242
rspec-core (>= 2, < 4, != 2.12.0)
4343
to_regexp (0.2.1)
@@ -47,7 +47,7 @@ PLATFORMS
4747
ruby
4848

4949
DEPENDENCIES
50-
bundler (~> 1.16)
50+
bundler (~> 2.1)
5151
enumpath!
5252
null-logger (~> 0.1)
5353
pry-byebug (~> 3.6)
@@ -58,4 +58,4 @@ DEPENDENCIES
5858
yard (~> 0.9.26)
5959

6060
BUNDLED WITH
61-
1.17.2
61+
2.2.15

enumpath.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
3434
spec.add_dependency 'mini_cache', '~> 1.1.0'
3535
spec.add_dependency 'to_regexp', '~> 0.2.1'
3636

37-
spec.add_development_dependency 'bundler', '~> 1.16'
37+
spec.add_development_dependency 'bundler', '~> 2.1'
3838
spec.add_development_dependency 'null-logger', '~> 0.1'
3939
spec.add_development_dependency 'pry-byebug', '~> 3.6'
4040
spec.add_development_dependency 'rake', '~> 12.3'

lib/enumpath.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def logger
4848
# @private
4949
# @see Enumpath::Logger#log
5050
def log(title)
51-
block_given? ? logger.log(title, &Proc.new) : logger.log(title)
51+
block_given? ? logger.log(title, &-> { yield }) : logger.log(title)
5252
end
5353

5454
# A lightweight in-memory cache for caching normalized path expressions

lib/enumpath/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Enumpath
4-
VERSION = '0.1.1'
4+
VERSION = '0.1.2'
55
end

spec/enumpath_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
it 'passes the :result_type option through to Enumpath::Path#new' do
5454
result_type = :path
5555
expect(Enumpath::Path).to receive(:new).with(path, result_type: result_type).and_call_original
56-
Enumpath.apply(path, enum, result_type: :path)
56+
Enumpath.apply(path, enum, result_type: result_type)
5757
end
5858

5959
it 'calls #apply with enum on the Enumpath::Path instance' do

0 commit comments

Comments
 (0)