rbbt-util 5.19.0 → 5.19.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
  SHA1:
3
- metadata.gz: 9bf01122d1f1460989b9d2527d19cd87942f3d07
4
- data.tar.gz: e1575d23a2667e28938be48e396e6d7c4f605c45
3
+ metadata.gz: 1bcf0f6ad90861522d70871c9dbe045abccceee8
4
+ data.tar.gz: 0df826f64dcd7fede1e237dd8964841e727a15cc
5
5
  SHA512:
6
- metadata.gz: e327f95dcdd0f274b53a1001fe65ef4ccd0411a3cc1ab852b70f0e7e609d9835476768d4873dde308080871e8ebcc1d4bcb406f0ac93b58ca815a85c2c10aa0f
7
- data.tar.gz: 9d0616c4bd35dc136da7019ffd913b6b08e1f76a36c9e6bca096b2491bdafb171dba9031abedc4c67782e8f8b81f77dd323a4966fb829f62f57d760aa47a95f4
6
+ metadata.gz: dfc737af5d42b57d249366084654d42c49305cebd8fab47ffe28efd007fcb2e9c833f7ef33949df5adedfd9af4195f7769e095383b1d3b1bdf5b281bf993291e
7
+ data.tar.gz: b8aa7c403a378f7885b7aec365be4b84e1592cee8eed839f1a17e67a03335bf3f389865011e6a9384fe4d97d32400e8ace22660211205a2738eab5f432dd4a11
data/lib/rbbt/persist.rb CHANGED
@@ -29,7 +29,10 @@ module Persist
29
29
  return true if not Open.exists? file
30
30
  path = path.find if Path === path
31
31
  file = file.find if Path === file
32
- return File.mtime(path) - File.mtime(file) if File.mtime(path) < File.mtime(file)
32
+ patht = File.mtime(path)
33
+ filet = File.mtime(file)
34
+ diff = patht - filet
35
+ return diff if diff < 0
33
36
  return false
34
37
  end
35
38
 
@@ -225,7 +225,9 @@ module Misc
225
225
  when TSV::Parser
226
226
  remove_long_items(obj)
227
227
  when File
228
- "[File:" << obj.path << "]"
228
+ "<File:" << obj.path << ">"
229
+ when (defined? Step and Step)
230
+ "<Step #{obj.path}>"
229
231
  else
230
232
  obj_ins = obj.inspect
231
233
  if obj_ins =~ /:0x0/
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.19.0
4
+ version: 5.19.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-23 00:00:00.000000000 Z
11
+ date: 2015-11-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake