live_f1-core 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.autotest +23 -0
- data/.gitignore +6 -0
- data/.rspec +1 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +65 -0
- data/Guardfile +11 -0
- data/README.rdoc +62 -0
- data/Rakefile +11 -0
- data/bin/live_f1_example +74 -0
- data/features/fixtures/sessions/2012.03.china.qualifying/7136/keyframes.yaml +32722 -0
- data/features/fixtures/sessions/2012.03.china.qualifying/7136/session.key +1 -0
- data/features/fixtures/sessions/2012.03.china.qualifying/session.bin +0 -0
- data/features/fixtures/sessions/2012.04.bahrain.practice.2/7164/keyframes.yaml +22403 -0
- data/features/fixtures/sessions/2012.04.bahrain.practice.2/7164/session.key +1 -0
- data/features/fixtures/sessions/2012.04.bahrain.practice.2/session.bin +0 -0
- data/features/fixtures/sessions/2012.05.bahrain.race.post/7167/keyframes.yaml +1204 -0
- data/features/fixtures/sessions/2012.05.bahrain.race.post/7167/session.key +1 -0
- data/features/fixtures/sessions/2012.05.bahrain.race.post/session.bin +0 -0
- data/features/live_f1.feature +14 -0
- data/features/step_definitions/live_f1_steps.rb +69 -0
- data/features/support/env.rb +9 -0
- data/lib/live_f1/debug.rb +6 -0
- data/lib/live_f1/enum.rb +9 -0
- data/lib/live_f1/event.rb +23 -0
- data/lib/live_f1/packet/car/best_lap_time.rb +10 -0
- data/lib/live_f1/packet/car/driver.rb +14 -0
- data/lib/live_f1/packet/car/gap.rb +10 -0
- data/lib/live_f1/packet/car/interval.rb +10 -0
- data/lib/live_f1/packet/car/lap_count.rb +10 -0
- data/lib/live_f1/packet/car/lap_time.rb +10 -0
- data/lib/live_f1/packet/car/num_pits.rb +10 -0
- data/lib/live_f1/packet/car/number.rb +14 -0
- data/lib/live_f1/packet/car/period_1.rb +11 -0
- data/lib/live_f1/packet/car/period_2.rb +11 -0
- data/lib/live_f1/packet/car/period_3.rb +11 -0
- data/lib/live_f1/packet/car/pit_count.rb +18 -0
- data/lib/live_f1/packet/car/pit_lap_1.rb +10 -0
- data/lib/live_f1/packet/car/pit_lap_2.rb +10 -0
- data/lib/live_f1/packet/car/pit_lap_3.rb +10 -0
- data/lib/live_f1/packet/car/position.rb +14 -0
- data/lib/live_f1/packet/car/position_history.rb +14 -0
- data/lib/live_f1/packet/car/position_update.rb +13 -0
- data/lib/live_f1/packet/car/sector_1.rb +11 -0
- data/lib/live_f1/packet/car/sector_2.rb +11 -0
- data/lib/live_f1/packet/car/sector_3.rb +11 -0
- data/lib/live_f1/packet/car.rb +13 -0
- data/lib/live_f1/packet/decryptable.rb +22 -0
- data/lib/live_f1/packet/header.rb +127 -0
- data/lib/live_f1/packet/sector_time.rb +28 -0
- data/lib/live_f1/packet/sys/commentary.rb +33 -0
- data/lib/live_f1/packet/sys/copyright.rb +9 -0
- data/lib/live_f1/packet/sys/key_frame.rb +17 -0
- data/lib/live_f1/packet/sys/notice.rb +10 -0
- data/lib/live_f1/packet/sys/reset.rb +9 -0
- data/lib/live_f1/packet/sys/session_start.rb +25 -0
- data/lib/live_f1/packet/sys/speed.rb +29 -0
- data/lib/live_f1/packet/sys/timestamp.rb +23 -0
- data/lib/live_f1/packet/sys/track_status.rb +18 -0
- data/lib/live_f1/packet/sys/weather.rb +33 -0
- data/lib/live_f1/packet/sys.rb +10 -0
- data/lib/live_f1/packet.rb +129 -0
- data/lib/live_f1/source/keyframe.rb +30 -0
- data/lib/live_f1/source/live.rb +163 -0
- data/lib/live_f1/source/log.rb +29 -0
- data/lib/live_f1/source/session.rb +41 -0
- data/lib/live_f1/source.rb +83 -0
- data/lib/live_f1/version.rb +3 -0
- data/lib/live_f1.rb +32 -0
- data/live_f1-core.gemspec +26 -0
- data/spec/live_f1/event_spec.rb +5 -0
- data/spec/live_f1/packet/car/best_lap_time_spec.rb +19 -0
- data/spec/live_f1/packet/car/driver_spec.rb +20 -0
- data/spec/live_f1/packet/car/gap_spec.rb +20 -0
- data/spec/live_f1/packet/car/interval_spec.rb +20 -0
- data/spec/live_f1/packet/car/lap_count_spec.rb +20 -0
- data/spec/live_f1/packet/car/lap_time_spec.rb +20 -0
- data/spec/live_f1/packet/car/number_spec.rb +20 -0
- data/spec/live_f1/packet/car/period_1_spec.rb +21 -0
- data/spec/live_f1/packet/car/period_2_spec.rb +21 -0
- data/spec/live_f1/packet/car/period_3_spec.rb +21 -0
- data/spec/live_f1/packet/car/pit_count_spec.rb +20 -0
- data/spec/live_f1/packet/car/pit_lap_1_spec.rb +20 -0
- data/spec/live_f1/packet/car/pit_lap_2_spec.rb +20 -0
- data/spec/live_f1/packet/car/pit_lap_3_spec.rb +20 -0
- data/spec/live_f1/packet/car/position_history_spec.rb +20 -0
- data/spec/live_f1/packet/car/position_spec.rb +20 -0
- data/spec/live_f1/packet/car/position_update_spec.rb +19 -0
- data/spec/live_f1/packet/car/sector_1_spec.rb +21 -0
- data/spec/live_f1/packet/car/sector_2_spec.rb +21 -0
- data/spec/live_f1/packet/car/sector_3_spec.rb +21 -0
- data/spec/live_f1/packet/header_spec.rb +148 -0
- data/spec/live_f1/packet/sys/commentary_spec.rb +45 -0
- data/spec/live_f1/packet/sys/copyright_spec.rb +19 -0
- data/spec/live_f1/packet/sys/key_frame_spec.rb +39 -0
- data/spec/live_f1/packet/sys/notice_spec.rb +20 -0
- data/spec/live_f1/packet/sys/reset_spec.rb +26 -0
- data/spec/live_f1/packet/sys/session_start_spec.rb +31 -0
- data/spec/live_f1/packet/sys/speed_spec.rb +20 -0
- data/spec/live_f1/packet/sys/timestamp_spec.rb +34 -0
- data/spec/live_f1/packet/sys/track_status_spec.rb +20 -0
- data/spec/live_f1/packet/sys/weather_spec.rb +20 -0
- data/spec/live_f1/packet_spec.rb +112 -0
- data/spec/live_f1/source/keyframe_spec.rb +56 -0
- data/spec/live_f1/source/live_spec.rb +106 -0
- data/spec/live_f1/source/session_spec.rb +39 -0
- data/spec/live_f1/source_spec.rb +140 -0
- data/spec/spec_helper.rb +10 -0
- data/spec/support/packet_type_examples.rb +122 -0
- metadata +337 -0
@@ -0,0 +1,122 @@
|
|
1
|
+
require 'live_f1/packet'
|
2
|
+
require 'rspec/core/shared_context'
|
3
|
+
|
4
|
+
module PacketTypeExamples
|
5
|
+
extend RSpec::Core::SharedContext
|
6
|
+
|
7
|
+
shared_examples LiveF1::Packet::Type::Long do
|
8
|
+
subject { described_class.new(source, header) }
|
9
|
+
|
10
|
+
let(:source) { mock("source") }
|
11
|
+
let(:header) { mock("header", :packet_klass => described_class, :data => "0100000".to_i(2)) }
|
12
|
+
|
13
|
+
# Long packets use the header data to represent the length
|
14
|
+
it "gets length from the header" do
|
15
|
+
subject.length.should == 32
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
shared_examples LiveF1::Packet::Type::Short do
|
20
|
+
subject { described_class.new(source, header) }
|
21
|
+
|
22
|
+
let(:source) { mock("source") }
|
23
|
+
let(:data) { "0100000".to_i(2) }
|
24
|
+
let(:header) { mock("header", :packet_klass => described_class, :data => data) }
|
25
|
+
|
26
|
+
# Short packets use the left-hand 4 bits of the header data to represent the length
|
27
|
+
it "gets length from the header" do
|
28
|
+
subject.length.should == 4
|
29
|
+
end
|
30
|
+
|
31
|
+
# except when the data would otherwise be 15, in which case it's length 0
|
32
|
+
context "when the header data would indicate length 15" do
|
33
|
+
let(:data) { "1111000".to_i(2) }
|
34
|
+
|
35
|
+
it "gets zero length from the header" do
|
36
|
+
subject.length.should == 0
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
shared_examples LiveF1::Packet::Type::Special do
|
42
|
+
subject { described_class.new(source, header) }
|
43
|
+
|
44
|
+
let(:source) { mock("source") }
|
45
|
+
let(:header) { mock("header", :packet_klass => described_class, :data => "0100000".to_i(2)) }
|
46
|
+
|
47
|
+
# Special packets never have any packet data
|
48
|
+
it "has length 0" do
|
49
|
+
subject.length.should == 0
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
shared_examples LiveF1::Packet::Type::Timestamp do
|
54
|
+
subject { described_class.new(source, header) }
|
55
|
+
|
56
|
+
let(:source) { mock("source") }
|
57
|
+
let(:header) { mock("header", :packet_klass => described_class, :data => "0100000".to_i(2)) }
|
58
|
+
|
59
|
+
# Timestamp packets have a fixed length, regardless of the data
|
60
|
+
it "has length 2" do
|
61
|
+
subject.length.should == 2
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
shared_examples LiveF1::Packet::Decryptable do
|
66
|
+
subject { described_class.new(source, header) }
|
67
|
+
|
68
|
+
# let(:decryption_key) { "AF661706" }
|
69
|
+
# let(:data) { "\xBC\x9A\x1E\x9AH>\xCB\xE4\xFE\xE0v!h\r\xF9" }
|
70
|
+
|
71
|
+
let(:source) { mock("source") }
|
72
|
+
let(:header) { mock("header", :packet_klass => described_class, :data => "0100000".to_i(2)) }
|
73
|
+
|
74
|
+
before do
|
75
|
+
source.stub(:decrypt) { "plaintext" }
|
76
|
+
end
|
77
|
+
|
78
|
+
it "decrypts data passed to it" do
|
79
|
+
subject.data = "encrypted"
|
80
|
+
|
81
|
+
subject.data.should == "plaintext"
|
82
|
+
end
|
83
|
+
|
84
|
+
it "sets the packet's raw data" do
|
85
|
+
subject.data = "encrypted"
|
86
|
+
|
87
|
+
subject.raw_data.should == "encrypted"
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
shared_examples LiveF1::Packet::SectorTime do
|
92
|
+
context "with numeric time values" do
|
93
|
+
it "parses the data into a number of seconds" do
|
94
|
+
subject.send :set_data, "43.5"
|
95
|
+
subject.seconds.should == 43.5
|
96
|
+
|
97
|
+
subject.send :set_data, "90.2"
|
98
|
+
subject.seconds.should == 90.2
|
99
|
+
|
100
|
+
subject.send :set_data, "1:35.784"
|
101
|
+
subject.seconds.should == 95.784
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
context "with empty values" do
|
106
|
+
it "doesn't have a seconds value" do
|
107
|
+
subject.send :set_data, ""
|
108
|
+
subject.seconds.should == nil
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
context "with a stop value" do
|
113
|
+
before do
|
114
|
+
subject.send :set_data, "STOP"
|
115
|
+
end
|
116
|
+
|
117
|
+
it "doesn't have a seconds value" do
|
118
|
+
subject.seconds.should be_nil
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
122
|
+
end
|
metadata
ADDED
@@ -0,0 +1,337 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: live_f1-core
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Gareth Adams
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-10-24 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: hpricot
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rspec
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: cucumber
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: guard-rspec
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: guard-cucumber
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: growl
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: fakeweb
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: rb-fsevent
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
description: Parses raw events from the Formula1.com live timing stream
|
143
|
+
email:
|
144
|
+
- g@rethada.ms
|
145
|
+
executables:
|
146
|
+
- live_f1_example
|
147
|
+
extensions: []
|
148
|
+
extra_rdoc_files: []
|
149
|
+
files:
|
150
|
+
- .autotest
|
151
|
+
- .gitignore
|
152
|
+
- .rspec
|
153
|
+
- Gemfile
|
154
|
+
- Gemfile.lock
|
155
|
+
- Guardfile
|
156
|
+
- README.rdoc
|
157
|
+
- Rakefile
|
158
|
+
- bin/live_f1_example
|
159
|
+
- features/fixtures/sessions/2012.03.china.qualifying/7136/keyframes.yaml
|
160
|
+
- features/fixtures/sessions/2012.03.china.qualifying/7136/session.key
|
161
|
+
- features/fixtures/sessions/2012.03.china.qualifying/session.bin
|
162
|
+
- features/fixtures/sessions/2012.04.bahrain.practice.2/7164/keyframes.yaml
|
163
|
+
- features/fixtures/sessions/2012.04.bahrain.practice.2/7164/session.key
|
164
|
+
- features/fixtures/sessions/2012.04.bahrain.practice.2/session.bin
|
165
|
+
- features/fixtures/sessions/2012.05.bahrain.race.post/7167/keyframes.yaml
|
166
|
+
- features/fixtures/sessions/2012.05.bahrain.race.post/7167/session.key
|
167
|
+
- features/fixtures/sessions/2012.05.bahrain.race.post/session.bin
|
168
|
+
- features/live_f1.feature
|
169
|
+
- features/step_definitions/live_f1_steps.rb
|
170
|
+
- features/support/env.rb
|
171
|
+
- lib/live_f1.rb
|
172
|
+
- lib/live_f1/debug.rb
|
173
|
+
- lib/live_f1/enum.rb
|
174
|
+
- lib/live_f1/event.rb
|
175
|
+
- lib/live_f1/packet.rb
|
176
|
+
- lib/live_f1/packet/car.rb
|
177
|
+
- lib/live_f1/packet/car/best_lap_time.rb
|
178
|
+
- lib/live_f1/packet/car/driver.rb
|
179
|
+
- lib/live_f1/packet/car/gap.rb
|
180
|
+
- lib/live_f1/packet/car/interval.rb
|
181
|
+
- lib/live_f1/packet/car/lap_count.rb
|
182
|
+
- lib/live_f1/packet/car/lap_time.rb
|
183
|
+
- lib/live_f1/packet/car/num_pits.rb
|
184
|
+
- lib/live_f1/packet/car/number.rb
|
185
|
+
- lib/live_f1/packet/car/period_1.rb
|
186
|
+
- lib/live_f1/packet/car/period_2.rb
|
187
|
+
- lib/live_f1/packet/car/period_3.rb
|
188
|
+
- lib/live_f1/packet/car/pit_count.rb
|
189
|
+
- lib/live_f1/packet/car/pit_lap_1.rb
|
190
|
+
- lib/live_f1/packet/car/pit_lap_2.rb
|
191
|
+
- lib/live_f1/packet/car/pit_lap_3.rb
|
192
|
+
- lib/live_f1/packet/car/position.rb
|
193
|
+
- lib/live_f1/packet/car/position_history.rb
|
194
|
+
- lib/live_f1/packet/car/position_update.rb
|
195
|
+
- lib/live_f1/packet/car/sector_1.rb
|
196
|
+
- lib/live_f1/packet/car/sector_2.rb
|
197
|
+
- lib/live_f1/packet/car/sector_3.rb
|
198
|
+
- lib/live_f1/packet/decryptable.rb
|
199
|
+
- lib/live_f1/packet/header.rb
|
200
|
+
- lib/live_f1/packet/sector_time.rb
|
201
|
+
- lib/live_f1/packet/sys.rb
|
202
|
+
- lib/live_f1/packet/sys/commentary.rb
|
203
|
+
- lib/live_f1/packet/sys/copyright.rb
|
204
|
+
- lib/live_f1/packet/sys/key_frame.rb
|
205
|
+
- lib/live_f1/packet/sys/notice.rb
|
206
|
+
- lib/live_f1/packet/sys/reset.rb
|
207
|
+
- lib/live_f1/packet/sys/session_start.rb
|
208
|
+
- lib/live_f1/packet/sys/speed.rb
|
209
|
+
- lib/live_f1/packet/sys/timestamp.rb
|
210
|
+
- lib/live_f1/packet/sys/track_status.rb
|
211
|
+
- lib/live_f1/packet/sys/weather.rb
|
212
|
+
- lib/live_f1/source.rb
|
213
|
+
- lib/live_f1/source/keyframe.rb
|
214
|
+
- lib/live_f1/source/live.rb
|
215
|
+
- lib/live_f1/source/log.rb
|
216
|
+
- lib/live_f1/source/session.rb
|
217
|
+
- lib/live_f1/version.rb
|
218
|
+
- live_f1-core.gemspec
|
219
|
+
- spec/live_f1/event_spec.rb
|
220
|
+
- spec/live_f1/packet/car/best_lap_time_spec.rb
|
221
|
+
- spec/live_f1/packet/car/driver_spec.rb
|
222
|
+
- spec/live_f1/packet/car/gap_spec.rb
|
223
|
+
- spec/live_f1/packet/car/interval_spec.rb
|
224
|
+
- spec/live_f1/packet/car/lap_count_spec.rb
|
225
|
+
- spec/live_f1/packet/car/lap_time_spec.rb
|
226
|
+
- spec/live_f1/packet/car/number_spec.rb
|
227
|
+
- spec/live_f1/packet/car/period_1_spec.rb
|
228
|
+
- spec/live_f1/packet/car/period_2_spec.rb
|
229
|
+
- spec/live_f1/packet/car/period_3_spec.rb
|
230
|
+
- spec/live_f1/packet/car/pit_count_spec.rb
|
231
|
+
- spec/live_f1/packet/car/pit_lap_1_spec.rb
|
232
|
+
- spec/live_f1/packet/car/pit_lap_2_spec.rb
|
233
|
+
- spec/live_f1/packet/car/pit_lap_3_spec.rb
|
234
|
+
- spec/live_f1/packet/car/position_history_spec.rb
|
235
|
+
- spec/live_f1/packet/car/position_spec.rb
|
236
|
+
- spec/live_f1/packet/car/position_update_spec.rb
|
237
|
+
- spec/live_f1/packet/car/sector_1_spec.rb
|
238
|
+
- spec/live_f1/packet/car/sector_2_spec.rb
|
239
|
+
- spec/live_f1/packet/car/sector_3_spec.rb
|
240
|
+
- spec/live_f1/packet/header_spec.rb
|
241
|
+
- spec/live_f1/packet/sys/commentary_spec.rb
|
242
|
+
- spec/live_f1/packet/sys/copyright_spec.rb
|
243
|
+
- spec/live_f1/packet/sys/key_frame_spec.rb
|
244
|
+
- spec/live_f1/packet/sys/notice_spec.rb
|
245
|
+
- spec/live_f1/packet/sys/reset_spec.rb
|
246
|
+
- spec/live_f1/packet/sys/session_start_spec.rb
|
247
|
+
- spec/live_f1/packet/sys/speed_spec.rb
|
248
|
+
- spec/live_f1/packet/sys/timestamp_spec.rb
|
249
|
+
- spec/live_f1/packet/sys/track_status_spec.rb
|
250
|
+
- spec/live_f1/packet/sys/weather_spec.rb
|
251
|
+
- spec/live_f1/packet_spec.rb
|
252
|
+
- spec/live_f1/source/keyframe_spec.rb
|
253
|
+
- spec/live_f1/source/live_spec.rb
|
254
|
+
- spec/live_f1/source/session_spec.rb
|
255
|
+
- spec/live_f1/source_spec.rb
|
256
|
+
- spec/spec_helper.rb
|
257
|
+
- spec/support/packet_type_examples.rb
|
258
|
+
homepage: https://github.com/gareth/live_f1-core
|
259
|
+
licenses: []
|
260
|
+
post_install_message:
|
261
|
+
rdoc_options: []
|
262
|
+
require_paths:
|
263
|
+
- lib
|
264
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
265
|
+
none: false
|
266
|
+
requirements:
|
267
|
+
- - ! '>='
|
268
|
+
- !ruby/object:Gem::Version
|
269
|
+
version: '0'
|
270
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
271
|
+
none: false
|
272
|
+
requirements:
|
273
|
+
- - ! '>='
|
274
|
+
- !ruby/object:Gem::Version
|
275
|
+
version: '0'
|
276
|
+
requirements: []
|
277
|
+
rubyforge_project:
|
278
|
+
rubygems_version: 1.8.24
|
279
|
+
signing_key:
|
280
|
+
specification_version: 3
|
281
|
+
summary: LiveF1 provides an API to receive data from the official live timing servers.
|
282
|
+
It uses the same data that's streamed to the live timing applet at www.formula1.com/live_timing
|
283
|
+
- and needs you to have a corresponding account to decrypt the stream - but enables
|
284
|
+
you to have a more fine-grained access to the numbers
|
285
|
+
test_files:
|
286
|
+
- features/fixtures/sessions/2012.03.china.qualifying/7136/keyframes.yaml
|
287
|
+
- features/fixtures/sessions/2012.03.china.qualifying/7136/session.key
|
288
|
+
- features/fixtures/sessions/2012.03.china.qualifying/session.bin
|
289
|
+
- features/fixtures/sessions/2012.04.bahrain.practice.2/7164/keyframes.yaml
|
290
|
+
- features/fixtures/sessions/2012.04.bahrain.practice.2/7164/session.key
|
291
|
+
- features/fixtures/sessions/2012.04.bahrain.practice.2/session.bin
|
292
|
+
- features/fixtures/sessions/2012.05.bahrain.race.post/7167/keyframes.yaml
|
293
|
+
- features/fixtures/sessions/2012.05.bahrain.race.post/7167/session.key
|
294
|
+
- features/fixtures/sessions/2012.05.bahrain.race.post/session.bin
|
295
|
+
- features/live_f1.feature
|
296
|
+
- features/step_definitions/live_f1_steps.rb
|
297
|
+
- features/support/env.rb
|
298
|
+
- spec/live_f1/event_spec.rb
|
299
|
+
- spec/live_f1/packet/car/best_lap_time_spec.rb
|
300
|
+
- spec/live_f1/packet/car/driver_spec.rb
|
301
|
+
- spec/live_f1/packet/car/gap_spec.rb
|
302
|
+
- spec/live_f1/packet/car/interval_spec.rb
|
303
|
+
- spec/live_f1/packet/car/lap_count_spec.rb
|
304
|
+
- spec/live_f1/packet/car/lap_time_spec.rb
|
305
|
+
- spec/live_f1/packet/car/number_spec.rb
|
306
|
+
- spec/live_f1/packet/car/period_1_spec.rb
|
307
|
+
- spec/live_f1/packet/car/period_2_spec.rb
|
308
|
+
- spec/live_f1/packet/car/period_3_spec.rb
|
309
|
+
- spec/live_f1/packet/car/pit_count_spec.rb
|
310
|
+
- spec/live_f1/packet/car/pit_lap_1_spec.rb
|
311
|
+
- spec/live_f1/packet/car/pit_lap_2_spec.rb
|
312
|
+
- spec/live_f1/packet/car/pit_lap_3_spec.rb
|
313
|
+
- spec/live_f1/packet/car/position_history_spec.rb
|
314
|
+
- spec/live_f1/packet/car/position_spec.rb
|
315
|
+
- spec/live_f1/packet/car/position_update_spec.rb
|
316
|
+
- spec/live_f1/packet/car/sector_1_spec.rb
|
317
|
+
- spec/live_f1/packet/car/sector_2_spec.rb
|
318
|
+
- spec/live_f1/packet/car/sector_3_spec.rb
|
319
|
+
- spec/live_f1/packet/header_spec.rb
|
320
|
+
- spec/live_f1/packet/sys/commentary_spec.rb
|
321
|
+
- spec/live_f1/packet/sys/copyright_spec.rb
|
322
|
+
- spec/live_f1/packet/sys/key_frame_spec.rb
|
323
|
+
- spec/live_f1/packet/sys/notice_spec.rb
|
324
|
+
- spec/live_f1/packet/sys/reset_spec.rb
|
325
|
+
- spec/live_f1/packet/sys/session_start_spec.rb
|
326
|
+
- spec/live_f1/packet/sys/speed_spec.rb
|
327
|
+
- spec/live_f1/packet/sys/timestamp_spec.rb
|
328
|
+
- spec/live_f1/packet/sys/track_status_spec.rb
|
329
|
+
- spec/live_f1/packet/sys/weather_spec.rb
|
330
|
+
- spec/live_f1/packet_spec.rb
|
331
|
+
- spec/live_f1/source/keyframe_spec.rb
|
332
|
+
- spec/live_f1/source/live_spec.rb
|
333
|
+
- spec/live_f1/source/session_spec.rb
|
334
|
+
- spec/live_f1/source_spec.rb
|
335
|
+
- spec/spec_helper.rb
|
336
|
+
- spec/support/packet_type_examples.rb
|
337
|
+
has_rdoc:
|