guard-eslint 1.0.0 → 1.0.1

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
  SHA256:
3
- metadata.gz: 13b6d5684ff42abb480cfebdefb8b9a2fb3c0ad7734f2f1e953d2e9aa2fd5d8f
4
- data.tar.gz: a72c609367b38177a97af4e2635083fee57f0cd02f6e865fc95e429f8c0ed80d
3
+ metadata.gz: 412149b9e2b0bb334b7a0b846798e89ffff0ba0ff8b659709090ebf62f662614
4
+ data.tar.gz: 56e68082416044e808baadecbb89007da39fdcf9b1fe9045b1cbae59838803fe
5
5
  SHA512:
6
- metadata.gz: 0eba44793949312b50b27c1fb1b4c151d9b5c3e10b0b907e80603741544a0bd56c8ee1091b3ed1ac4e30f64dc933512ec4b485f3d65e760abcf3ec12466d4f26
7
- data.tar.gz: ec966b2a42890b48a643242223e9bc0aa01f1f61b3f39ed4af579c5858bb1538831b91dc736a3051353111f99bbe0110241ba38c69d9e633872f71371e6acbe8
6
+ metadata.gz: 9f1c8f469ba5a39050087754d1b4a54d26784e09159601f76003b2049d02507507152a6455227b20730c1a575ab1489e8ae87e3dc74d237ffb89e9d3ea8e157e
7
+ data.tar.gz: 7e6ebd38246b03568668508a4928db058160f268a1b92b8d17d9890e65a39df685604da475a298f0b750b0aa76385b589f73fee6e22d9d49fbb5c2e28c1d285b
@@ -65,11 +65,18 @@ module Guard
65
65
 
66
66
  def json_file_path
67
67
  @json_file_path ||= begin
68
+ json_file.close
69
+ json_file.path
70
+ end
71
+ end
72
+
73
+ ##
74
+ # Keep the Tempfile instance around so it isn't garbage-collected and therefore deleted.
75
+ def json_file
76
+ @json_file ||= begin
68
77
  # Just generate random tempfile path.
69
78
  basename = self.class.name.downcase.gsub('::', '_')
70
- tempfile = Tempfile.new(basename)
71
- tempfile.close
72
- tempfile.path
79
+ Tempfile.new(basename)
73
80
  end
74
81
  end
75
82
 
@@ -5,7 +5,7 @@ module Guard
5
5
  # http://semver.org/
6
6
  MAJOR = 1
7
7
  MINOR = 0
8
- PATCH = 0
8
+ PATCH = 1
9
9
 
10
10
  def self.to_s
11
11
  [MAJOR, MINOR, PATCH].join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-eslint
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - tadiou