rubyfit 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/rubyfit/rubyfit.c +13 -0
- data/lib/rubyfit/version.rb +1 -1
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 105f4f3b3bf24cf21007a2bf83e2b2d09119f575
|
4
|
+
data.tar.gz: 2486ded9e5f267ea18c455048a789f0c7c948a3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33ffdd1af14d01745ed3f8c118f27d888693fb4b9692a26db99546c98855f058c7ea05e8b45811b456be50255368e6dc69ccd6eb13f0f1087a62fee648a51fad
|
7
|
+
data.tar.gz: db5a2fec83c9b6217d4365afbf48a57e19e347f67f37a5e86b6ce97a007ff90ffd6e0f63c461a5106e166bc6c209af7761a25786e4821e5d575b1de520261e06
|
data/ext/rubyfit/rubyfit.c
CHANGED
@@ -131,6 +131,19 @@ static void pass_record(const FIT_RECORD_MESG *mesg) {
|
|
131
131
|
if(mesg->temperature != FIT_SINT8_INVALID)
|
132
132
|
rb_hash_aset(rh, rb_str_new2("temperature"), INT2FIX(mesg->temperature));
|
133
133
|
|
134
|
+
if(mesg->left_right_balance != FIT_UINT8_INVALID)
|
135
|
+
rb_hash_aset(rh, rb_str_new2("left_right_balance"), UINT2NUM(mesg->left_right_balance & FIT_LEFT_RIGHT_BALANCE_MASK));
|
136
|
+
if(mesg->left_torque_effectiveness != FIT_UINT8_INVALID)
|
137
|
+
rb_hash_aset(rh, rb_str_new2("left_torque_effectiveness"), UINT2NUM(mesg->left_torque_effectiveness));
|
138
|
+
if(mesg->right_torque_effectiveness != FIT_UINT8_INVALID)
|
139
|
+
rb_hash_aset(rh, rb_str_new2("right_torque_effectiveness"), UINT2NUM(mesg->right_torque_effectiveness));
|
140
|
+
if(mesg->left_pedal_smoothness != FIT_UINT8_INVALID)
|
141
|
+
rb_hash_aset(rh, rb_str_new2("left_pedal_smoothness"), UINT2NUM(mesg->left_pedal_smoothness));
|
142
|
+
if(mesg->right_pedal_smoothness != FIT_UINT8_INVALID)
|
143
|
+
rb_hash_aset(rh, rb_str_new2("right_pedal_smoothness"), UINT2NUM(mesg->right_pedal_smoothness));
|
144
|
+
if(mesg->combined_pedal_smoothness != FIT_UINT8_INVALID)
|
145
|
+
rb_hash_aset(rh, rb_str_new2("combined_pedal_smoothness"), UINT2NUM(mesg->combined_pedal_smoothness));
|
146
|
+
|
134
147
|
rb_funcall(cFitHandler, cFitHandlerRecordFun, 1, rh);
|
135
148
|
}
|
136
149
|
|
data/lib/rubyfit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubyfit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cullen King
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: FIT files are binary, and as a result, are a pain to parse. This is
|
14
14
|
a wrapper around the FIT SDK, which makes creating a stream based parser simple.
|
@@ -19,21 +19,21 @@ extensions:
|
|
19
19
|
- ext/rubyfit/extconf.rb
|
20
20
|
extra_rdoc_files: []
|
21
21
|
files:
|
22
|
-
-
|
23
|
-
- lib/rubyfit.rb
|
22
|
+
- ext/rubyfit/extconf.rb
|
24
23
|
- ext/rubyfit/fit.c
|
25
|
-
- ext/rubyfit/fit_convert.c
|
26
|
-
- ext/rubyfit/fit_crc.c
|
27
|
-
- ext/rubyfit/fit_example.c
|
28
|
-
- ext/rubyfit/fit_ram.c
|
29
|
-
- ext/rubyfit/rubyfit.c
|
30
24
|
- ext/rubyfit/fit.h
|
31
25
|
- ext/rubyfit/fit_config.h
|
26
|
+
- ext/rubyfit/fit_convert.c
|
32
27
|
- ext/rubyfit/fit_convert.h
|
28
|
+
- ext/rubyfit/fit_crc.c
|
33
29
|
- ext/rubyfit/fit_crc.h
|
30
|
+
- ext/rubyfit/fit_example.c
|
34
31
|
- ext/rubyfit/fit_example.h
|
32
|
+
- ext/rubyfit/fit_ram.c
|
35
33
|
- ext/rubyfit/fit_ram.h
|
36
|
-
- ext/rubyfit/
|
34
|
+
- ext/rubyfit/rubyfit.c
|
35
|
+
- lib/rubyfit.rb
|
36
|
+
- lib/rubyfit/version.rb
|
37
37
|
homepage: http://cullenking.com
|
38
38
|
licenses: []
|
39
39
|
metadata: {}
|
@@ -44,17 +44,17 @@ require_paths:
|
|
44
44
|
- ext
|
45
45
|
required_ruby_version: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
|
-
- -
|
47
|
+
- - ">="
|
48
48
|
- !ruby/object:Gem::Version
|
49
49
|
version: '0'
|
50
50
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
requirements: []
|
56
56
|
rubyforge_project: rubyfit
|
57
|
-
rubygems_version: 2.
|
57
|
+
rubygems_version: 2.2.2
|
58
58
|
signing_key:
|
59
59
|
specification_version: 4
|
60
60
|
summary: A stream based parser for FIT files.
|