fit4ruby 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fit4ruby/EPO_Data.rb +31 -0
- data/lib/fit4ruby/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f403fc735e7bda18d7d23d3105ed5c0b2d5ca32f
|
4
|
+
data.tar.gz: 12b973174eff309b24595ebce9651a6d1d2bfc1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1d98b48933b07c13ec0f50221c8de28512e29a1844c9cbdfd8f39f77ee955e9af4e5876d4883654991453e97d6220e4cc0fc01322051912d5ed9ade5904ec57
|
7
|
+
data.tar.gz: cb795dad345888c54bf55f8fbe486191a2b5832cafb64a0bc641e7a2c8a99b9d5261f88c0df3b4dafe585fd94d9dac232647506f066542db3737a8c2a115f896
|
@@ -0,0 +1,31 @@
|
|
1
|
+
#!/usr/bin/env ruby -w
|
2
|
+
# encoding: UTF-8
|
3
|
+
#
|
4
|
+
# = EPO_Data.rb -- Fit4Ruby - FIT file processing library for Ruby
|
5
|
+
#
|
6
|
+
# Copyright (c) 2014, 2016 by Chris Schlaeger <cs@taskjuggler.org>
|
7
|
+
#
|
8
|
+
# This program is free software; you can redistribute it and/or modify
|
9
|
+
# it under the terms of version 2 of the GNU General Public License as
|
10
|
+
# published by the Free Software Foundation.
|
11
|
+
#
|
12
|
+
|
13
|
+
require 'fit4ruby/FitDataRecord'
|
14
|
+
|
15
|
+
module Fit4Ruby
|
16
|
+
|
17
|
+
class EPO_Data < FitDataRecord
|
18
|
+
|
19
|
+
def initialize(field_values = {})
|
20
|
+
super('epo_data')
|
21
|
+
# Ignore the sub-seconds to avoid problems when comparing records.
|
22
|
+
@time_created = Time.at(Time.now.to_i)
|
23
|
+
|
24
|
+
set_field_values(field_values)
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
|
31
|
+
|
data/lib/fit4ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fit4ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Schlaeger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bindata
|
@@ -86,6 +86,7 @@ files:
|
|
86
86
|
- lib/fit4ruby/Converters.rb
|
87
87
|
- lib/fit4ruby/DataSources.rb
|
88
88
|
- lib/fit4ruby/DeviceInfo.rb
|
89
|
+
- lib/fit4ruby/EPO_Data.rb
|
89
90
|
- lib/fit4ruby/Event.rb
|
90
91
|
- lib/fit4ruby/FileCreator.rb
|
91
92
|
- lib/fit4ruby/FileId.rb
|