Skip to content

Commit

Permalink
Merge pull request #15 from chrisbloom7/ruby-3-0
Browse files Browse the repository at this point in the history
Fix Proc error on Ruby 3.0, bump some dependencies
  • Loading branch information
chrisbloom7 authored Apr 7, 2021
2 parents f255417 + ddb2c48 commit a63bbdb
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
30 changes: 15 additions & 15 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
enumpath (0.1.1)
enumpath (0.1.2)
mini_cache (~> 1.1.0)
to_regexp (~> 0.2.1)

Expand All @@ -11,7 +11,7 @@ GEM
benchmark-perf (0.2.1)
byebug (10.0.2)
coderay (1.1.2)
diff-lcs (1.3)
diff-lcs (1.4.4)
method_source (0.9.0)
mini_cache (1.1.0)
null-logger (0.1.5)
Expand All @@ -22,22 +22,22 @@ GEM
byebug (~> 10.0)
pry (~> 0.10)
rake (12.3.3)
rspec (3.8.0)
rspec-core (~> 3.8.0)
rspec-expectations (~> 3.8.0)
rspec-mocks (~> 3.8.0)
rspec (3.10.0)
rspec-core (~> 3.10.0)
rspec-expectations (~> 3.10.0)
rspec-mocks (~> 3.10.0)
rspec-benchmark (0.3.0)
benchmark-perf (~> 0.2.0)
rspec (>= 3.0.0, < 4.0.0)
rspec-core (3.8.0)
rspec-support (~> 3.8.0)
rspec-expectations (3.8.1)
rspec-core (3.10.1)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-mocks (3.8.0)
rspec-support (~> 3.10.0)
rspec-mocks (3.10.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.8.0)
rspec-support (3.8.0)
rspec-support (~> 3.10.0)
rspec-support (3.10.2)
rspec_junit_formatter (0.4.1)
rspec-core (>= 2, < 4, != 2.12.0)
to_regexp (0.2.1)
Expand All @@ -47,7 +47,7 @@ PLATFORMS
ruby

DEPENDENCIES
bundler (~> 1.16)
bundler (~> 2.1)
enumpath!
null-logger (~> 0.1)
pry-byebug (~> 3.6)
Expand All @@ -58,4 +58,4 @@ DEPENDENCIES
yard (~> 0.9.26)

BUNDLED WITH
1.17.2
2.2.15
2 changes: 1 addition & 1 deletion enumpath.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
spec.add_dependency 'mini_cache', '~> 1.1.0'
spec.add_dependency 'to_regexp', '~> 0.2.1'

spec.add_development_dependency 'bundler', '~> 1.16'
spec.add_development_dependency 'bundler', '~> 2.1'
spec.add_development_dependency 'null-logger', '~> 0.1'
spec.add_development_dependency 'pry-byebug', '~> 3.6'
spec.add_development_dependency 'rake', '~> 12.3'
Expand Down
2 changes: 1 addition & 1 deletion lib/enumpath.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def logger
# @private
# @see Enumpath::Logger#log
def log(title)
block_given? ? logger.log(title, &Proc.new) : logger.log(title)
block_given? ? logger.log(title, &-> { yield }) : logger.log(title)
end

# A lightweight in-memory cache for caching normalized path expressions
Expand Down
2 changes: 1 addition & 1 deletion lib/enumpath/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Enumpath
VERSION = '0.1.1'
VERSION = '0.1.2'
end
2 changes: 1 addition & 1 deletion spec/enumpath_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
it 'passes the :result_type option through to Enumpath::Path#new' do
result_type = :path
expect(Enumpath::Path).to receive(:new).with(path, result_type: result_type).and_call_original
Enumpath.apply(path, enum, result_type: :path)
Enumpath.apply(path, enum, result_type: result_type)
end

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

0 comments on commit a63bbdb

Please sign in to comment.