trecs 0.1.14 → 0.1.15
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/bin/trecs +3 -3
- data/bin/trecs_record +1 -1
- data/lib/trecs/recording_strategies/hash_strategy.rb +1 -1
- data/lib/trecs/version.rb +1 -1
- data/spec/trecs/recording_strategies/hash_strategy_spec.rb +2 -0
- 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: 6c4fe0b4f887ada3467e84ac0a7500fe991c177e
|
4
|
+
data.tar.gz: 8f79ce385d66b91822e099305dcbf754680e7ec6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9f57f896cf00cf7879e834b3c2d9eb63d32bff7f46ccc7adbacc471953d15bd436c9aad707d48bfdbf8e3998f23e184e8ab7052967e79dc130abe0d95782a92
|
7
|
+
data.tar.gz: b07d64f300c080934a12b8f2415e8f1de1cabe139e7e380ee73ea0779749637999038bd1e09cc66e7c8d6079f1e6a05266062398185d7184ced195df8ca63850
|
data/Gemfile.lock
CHANGED
data/bin/trecs
CHANGED
@@ -10,7 +10,7 @@ require "trollop"
|
|
10
10
|
def finish(opts)
|
11
11
|
puts "Finished"
|
12
12
|
puts "Replay with:"
|
13
|
-
puts "trecs #{opts[:
|
13
|
+
puts "trecs #{opts[:trecs_backend]}"
|
14
14
|
end
|
15
15
|
|
16
16
|
opts = Trollop::options do
|
@@ -29,7 +29,7 @@ opts = Trollop::options do
|
|
29
29
|
|
30
30
|
opt :duration, "Length of the recording", default: false
|
31
31
|
end
|
32
|
-
opts[:
|
32
|
+
opts[:trecs_backend] = ARGV[0]
|
33
33
|
|
34
34
|
trap "SIGINT" do
|
35
35
|
finish(opts)
|
@@ -60,7 +60,7 @@ end
|
|
60
60
|
|
61
61
|
|
62
62
|
|
63
|
-
source = TRecs::TgzSource.new(
|
63
|
+
source = TRecs::TgzSource.new(trecs_backend: opts.fetch(:trecs_backend))
|
64
64
|
reader = source.build_reader(opts)
|
65
65
|
|
66
66
|
ticker_file = "tickers/#{opts[:ticker]}_ticker"
|
data/bin/trecs_record
CHANGED
data/lib/trecs/version.rb
CHANGED
@@ -28,6 +28,7 @@ module TRecs
|
|
28
28
|
"15" => "C",
|
29
29
|
"1a2b3C4" => "h",
|
30
30
|
20 => "D",
|
31
|
+
:"25" => "E",
|
31
32
|
}
|
32
33
|
) }
|
33
34
|
|
@@ -38,6 +39,7 @@ module TRecs
|
|
38
39
|
Then { recorder.calls[2] == [:current_frame, [ {time: 10, content: "B"} ] ] }
|
39
40
|
Then { recorder.calls[3] == [:current_frame, [ {time: 15, content: "C"} ] ] }
|
40
41
|
Then { recorder.calls[4] == [:current_frame, [ {time: 20, content: "D"} ] ] }
|
42
|
+
Then { recorder.calls[5] == [:current_frame, [ {time: 25, content: "E"} ] ] }
|
41
43
|
end
|
42
44
|
end
|
43
45
|
end
|