bfs 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bfs/helpers.rb +6 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a625c88ce474019b57f7ba1cd34618f79efa2b090ec8601934805e04a4ce6f41
4
- data.tar.gz: 7f3a794d63f4c1490fcc3c5c509b6d10c749f987cbd364304b7b8b867f0725d7
3
+ metadata.gz: 689dbae3e78b15428f90cedacdff7e48fea896ba9af0c4342f6514d64a4efe65
4
+ data.tar.gz: 5587c11cf6160b8a6bb60cd3a1d28e78920cc489a131007255988bed4575e933
5
5
  SHA512:
6
- metadata.gz: 6bc5f7c5c9313736c23753a9bb9d7837bcd0586782b9014d1032771f17ad9c76e47bebaa8fd9b5a7a99c23610193602bf2775bdd275f3167e3c9f81d1993946b
7
- data.tar.gz: 56a751d745a83226e99f646f7586ce6a54dc053ee6acb796735fe8afdeec869d88318963445a1315579ec3c37e272c0833fafd0a4b8ac8e4371e01ca155a4150
6
+ metadata.gz: 6184ff146d864c6697fb1957441263f27de7055adf259d02b3bec478f02464aa4ed954f314bc398758424e7cacb7f7e8a8101cf51ab3f0293160487d31cbe4a9
7
+ data.tar.gz: c503e81d75a02e8e11a4c9d7a3c0f7d701d51e938ac69e9afeadd0f37d0bde8dd598ad3ddbda2c8b784104bc6ab3dadab431e29a32352d1ad311964023acc213
@@ -15,7 +15,13 @@ module BFS
15
15
  @tempfile.write(data)
16
16
  end
17
17
 
18
+ def closed?
19
+ @tempfile.closed?
20
+ end
21
+
18
22
  def close
23
+ return if closed?
24
+
19
25
  path = @tempfile.path
20
26
  @tempfile.close
21
27
  @closer.call(path) if @closer
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bfs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitrij Denissenko