tempfile-fixture 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba7913a100c9dfbc449abfdc3be7c59bafa555dd
4
- data.tar.gz: 5883e69962df9cf6dbdf3b9f400bfbc3170f3df7
3
+ metadata.gz: 1c213f8b25e071769b551f416457cf28d9239aac
4
+ data.tar.gz: 01544a01bab8587f0ec1fdaa7f28f983ff195bb4
5
5
  SHA512:
6
- metadata.gz: bb3d3516fb8b59a36c4f8b4470d203b3308722bbf577ef588c26557474506be4807e3c43928ae50133f26b22915e27121136f8b164af8c3195a1d715b679c8bd
7
- data.tar.gz: 8155c266499b84d175ea09eac45378f8853fe5a063578d5f5d236cbaa9fd1a5010405eb94690bdba246be1dea1bf38d961888ade8f7c2c06fa9e8fc3ec38af45
6
+ metadata.gz: 249ee681521c1d9d60ea898964de27c4ba95c0c6d3642ef7ad10366dda42ba7d809c42c689326e7674d91fd28a00948e304f48ea9cd88ed0b3dad4620a1d8a00
7
+ data.tar.gz: da1884172a7872aa5a6e944a6aea55aca8527c4c1096c69cf4b7abc38361f5e70c29962c4b6531afca3d999c1e8d57079a0c577091acafe8f65a2f4db027fad3
@@ -5,4 +5,7 @@ AllCops:
5
5
  Exclude:
6
6
  - 'Gemfile'
7
7
  - 'bin/**/*'
8
- TargetRubyVersion: 2.1
8
+ TargetRubyVersion: 2.3
9
+
10
+ Style/EndOfLine:
11
+ EnforcedStyle: lf
@@ -1,5 +1,20 @@
1
1
  sudo: false
2
2
  language: ruby
3
+ cache: bundler
3
4
  rvm:
4
- - 2.4.4
5
- before_install: gem install bundler -v 1.16.2
5
+ - 2.3.0
6
+ - 2.4
7
+ - 2.5
8
+ - 2.6
9
+ - rbx-3
10
+ - ruby-head
11
+ matrix:
12
+ allow_failures:
13
+ - rvm: ruby-head
14
+ - rvm: rbx-3
15
+ - rvm: 2.6
16
+ before_install:
17
+ - gem update --system
18
+ - gem --version
19
+ install:
20
+ - bundle install --with development --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.2
4
+ Conditional ensure block for files that are not successfully copied
5
+
3
6
  ## 0.1.1
4
7
  Remove lock (for `gem git:` installs and travis)
5
8
 
@@ -39,11 +39,12 @@ Tempfile.class_eval do
39
39
  file = copy!(&block)
40
40
  self
41
41
  ensure
42
- file.close unless file.closed?
43
-
44
- # Silently fail (hello windows)
45
- file.unlink rescue nil # rubocop:disable Style/RescueModifier
42
+ if file
43
+ file.close unless file.closed?
46
44
 
45
+ # Silently fail (hello windows)
46
+ file.unlink rescue nil # rubocop:disable Style/RescueModifier
47
+ end
47
48
  end
48
49
 
49
50
  private
@@ -2,6 +2,6 @@ require 'tempfile'
2
2
 
3
3
  Tempfile.class_eval do
4
4
  class Fixture
5
- VERSION = '0.1.1'.freeze
5
+ VERSION = '0.1.2'.freeze
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tempfile-fixture
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derk-Jan Karrenbeld
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-06 00:00:00.000000000 Z
11
+ date: 2018-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler