fspath 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/fspath.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'fspath'
5
- s.version = '2.0.2'
5
+ s.version = '2.0.3'
6
6
  s.summary = %q{Better than Pathname}
7
7
  s.homepage = "http://github.com/toy/#{s.name}"
8
8
  s.authors = ['Ivan Kuchin']
data/lib/fspath.rb CHANGED
@@ -44,6 +44,7 @@ class FSPath < Pathname
44
44
  end
45
45
  else
46
46
  file = temp_file(*args)
47
+ file.close
47
48
  path = file.path
48
49
  path.instance_variable_set(:@__temp_file, file)
49
50
  path
data/spec/fspath_spec.rb CHANGED
@@ -58,7 +58,7 @@ describe FSPath do
58
58
  end
59
59
 
60
60
  it "should not allow GC to finalize TempFile" do
61
- paths = Array.new(100){ FSPath.temp_file_path }
61
+ paths = Array.new(1000){ FSPath.temp_file_path }
62
62
  paths.should be_all(&:exist?)
63
63
  GC.start
64
64
  paths.should be_all(&:exist?)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fspath
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 2
10
- version: 2.0.2
9
+ - 3
10
+ version: 2.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ivan Kuchin