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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/trecs/strategies/trecs_file_strategy.rb +7 -7
- data/lib/trecs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf6bdb5d4745cb238bea1732d1b5300ab99d1911
|
4
|
+
data.tar.gz: 98f3144e3bc9f04b803da7200f6b2490ad8bc8d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8043261584ea9806c01841d8abb8fe5e0375efb04eb12465ba9066183dc7aefd2cef641578b56be68eee040024efa2c362465dbdbceb82fd11ab60e7495217c1
|
7
|
+
data.tar.gz: 58b1c79deb4ad7c26fbb42b4829605b8672562e0f35dae1dc0fc52020baccc95fbb6d3c848b9a02a49c37dccf29fb7a64b28acabc9c7d2b5c189806508cb3e1c
|
data/Gemfile.lock
CHANGED
@@ -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) {
|
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
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
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