vfr_utils 0.0.5 → 0.0.6

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a642daba436e9da29e586f7a629e183c3b58b6f
4
- data.tar.gz: fbb102d07e6a0b14d102534eb21440a20dfb367c
3
+ metadata.gz: c58a057529b12055d0221e71890280c891f492c6
4
+ data.tar.gz: bf078b0c72bec142d2ac57acdee0520642816252
5
5
  SHA512:
6
- metadata.gz: a13f934196d079cc37faa3e95a380bee3ecc659a11ba6e318a5ac6c30cb120f24e7dde5668d51f6be43ad439df54c1281c72f69c5deb41b534d3ee4dcf9310a3
7
- data.tar.gz: 3238517329b0d90f63711c6a476ee7e7f8c5bfd8ce0719dbd362dd8f22c21935f23a67399143ef0e9f97e1e1ba720a762af0456bb9c4d696c3a193d97dbab889
6
+ metadata.gz: e3b842156f320db53759e43c479de11f4d60e6e927718a931272eabffce0ba53d6f76b43dcb97f9d18b1e3b4c4fb9b72c741011789d7975095b8a38bfd45dbe0
7
+ data.tar.gz: 3d96fee4cca8939a3641e446d29eaeabc982bcc4c9f620ed328dfdabfe0d0a3b0677e0a3db6b317c34a957f8036ccffafc5c4269cf241718e22e8898d5bf529a
@@ -30,11 +30,11 @@ module VfrUtils
30
30
  if Time.now.to_i - File.ctime(cache_file_path).to_i > config.cache_lifetime
31
31
  FileUtils.rm_rf(cache_file_path)
32
32
  else
33
- return Marshal.load(File.read(cache_file_path))
33
+ return Marshal.load(File.binread(cache_file_path))
34
34
  end
35
35
  end
36
36
  v = yield
37
- File.write(cache_file_path, Marshal.dump(v))
37
+ File.binwrite(cache_file_path, Marshal.dump(v))
38
38
  v
39
39
  end
40
40
 
@@ -1,3 +1,3 @@
1
1
  module VfrUtils
2
- VERSION='0.0.5'
2
+ VERSION='0.0.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vfr_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bartek Wilczek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-30 00:00:00.000000000 Z
11
+ date: 2017-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri