trecs 0.3.6 → 0.3.7
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 +9 -5
- 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: e0cb21cd44124e576c798b443b41514a8e6e01e3
|
4
|
+
data.tar.gz: 60679b0a99113175582856b8a87a6062ac56a914
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54230288c76f386d607128dbba4407904cf989dc23f250daf1cd6c1ddf25ab11cf3fe1707229dc7e572c2d59beb82be215f9399c0af9cadfa7ed7e0acb29e0c6
|
7
|
+
data.tar.gz: 8de0ca57d332630b4cb7ce66c4d82829b2205d39460d1c5980eb1f248bc06580de2dbf57e5235c8fdc98ec0897c35858cf29952d6ae75d3b7b69a6437c7a7045
|
data/Gemfile.lock
CHANGED
@@ -19,9 +19,14 @@ module TRecs
|
|
19
19
|
source = TRecs::TgzSource.new(trecs_backend: input_file)
|
20
20
|
@frames = get_frames(source)
|
21
21
|
|
22
|
-
@from
|
23
|
-
@
|
24
|
-
|
22
|
+
@from = options.fetch(:from) { nil }
|
23
|
+
@from &&= @from.to_i
|
24
|
+
|
25
|
+
@to = options.fetch(:to) { nil }
|
26
|
+
@to &&= @to.to_i
|
27
|
+
|
28
|
+
@speed = options.fetch(:speed) { nil }
|
29
|
+
@speed &&= @speed.to_f
|
25
30
|
end
|
26
31
|
|
27
32
|
def perform
|
@@ -32,11 +37,10 @@ module TRecs
|
|
32
37
|
end
|
33
38
|
end
|
34
39
|
|
35
|
-
|
36
40
|
private
|
37
41
|
|
38
42
|
def timestamps
|
39
|
-
@timestamps ||= frames.keys.
|
43
|
+
@timestamps ||= frames.keys.sort
|
40
44
|
if from
|
41
45
|
@timestamps = @timestamps.select { |t| t > from }
|
42
46
|
@timestamps.unshift(from)
|
data/lib/trecs/version.rb
CHANGED