Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close opened file handle in #from_filename #13

Merged
merged 1 commit into from
Aug 29, 2017

Conversation

martinandert
Copy link
Contributor

We can use the block form of File.open to accomplish that.

We can use the block form of `File.open` to accomplish that.
@codecov-io
Copy link

codecov-io commented Aug 24, 2017

Codecov Report

Merging #13 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #13      +/-   ##
==========================================
+ Coverage   99.72%   99.72%   +<.01%     
==========================================
  Files           6        6              
  Lines         363      364       +1     
==========================================
+ Hits          362      363       +1     
  Misses          1        1
Impacted Files Coverage Δ
spec/unit/pathspec_spec.rb 100% <100%> (ø) ⬆️
lib/pathspec.rb 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 60a4c02...77b136c. Read the comment docs.

@highb highb self-requested a review August 29, 2017 10:41
@highb highb merged commit 98880f5 into highb:master Aug 29, 2017
@highb highb mentioned this pull request Aug 29, 2017
@highb highb added this to the 0.1.2 milestone Aug 29, 2017
@martinandert martinandert deleted the close-file-handle branch January 11, 2018 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants