trecs 0.3.8 → 0.3.9

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: 14c8777c111b483baa9cc1bd3c44582a574d69e5
4
- data.tar.gz: 64a24d4bc6445bc0d35e7d66a0eb2bbd93e960dd
3
+ metadata.gz: bf6bdb5d4745cb238bea1732d1b5300ab99d1911
4
+ data.tar.gz: 98f3144e3bc9f04b803da7200f6b2490ad8bc8d1
5
5
  SHA512:
6
- metadata.gz: 977f6bd8dfd1c292eff3a1c5469937a2e15ffc87e10b61b478d3277a13ec21216d0cb4fe9c4971687b552c6e65d6ad5f4e7af8785dbdac1308d56d60f3c97441
7
- data.tar.gz: bcf36d38eb17035329dd249cbe1db2617f72f9099ed32d153f6c9a424cc25cad0cd416d16fc6ebbdd2faf8f7be6028e1be5177d31375aed2ae55cb992f70bb1d
6
+ metadata.gz: 8043261584ea9806c01841d8abb8fe5e0375efb04eb12465ba9066183dc7aefd2cef641578b56be68eee040024efa2c362465dbdbceb82fd11ab60e7495217c1
7
+ data.tar.gz: 58b1c79deb4ad7c26fbb42b4829605b8672562e0f35dae1dc0fc52020baccc95fbb6d3c848b9a02a49c37dccf29fb7a64b28acabc9c7d2b5c189806508cb3e1c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- trecs (0.3.8)
4
+ trecs (0.3.9)
5
5
  minitar (~> 0.5.4)
6
6
  trollop (~> 2.0)
7
7
 
@@ -19,12 +19,12 @@ module TRecs
19
19
  source = TRecs::TgzSource.new(trecs_backend: input_file)
20
20
  @frames = get_frames(source)
21
21
 
22
- @from = options.fetch(:from) { nil }
22
+ @from = options.fetch(:from) { 0 }
23
23
  @from &&= @from.to_i
24
-
24
+
25
25
  @to = options.fetch(:to) { nil }
26
26
  @to &&= @to.to_i
27
-
27
+
28
28
  @speed = options.fetch(:speed) { nil }
29
29
  @speed &&= @speed.to_f
30
30
  end
@@ -41,10 +41,10 @@ module TRecs
41
41
 
42
42
  def timestamps
43
43
  @timestamps ||= frames.keys.sort
44
- if from
45
- @timestamps = @timestamps.select { |t| t > from }
46
- @timestamps.unshift(from)
47
- end
44
+
45
+ @timestamps = @timestamps.select { |t| t > from }
46
+ @timestamps.unshift(from)
47
+
48
48
  if to && to > 0
49
49
  @timestamps = @timestamps.select { |t| t < to }
50
50
  @timestamps.push(to)
data/lib/trecs/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module TRecs
2
- VERSION = "0.3.8"
2
+ VERSION = "0.3.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trecs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Federico Iachetti