fit_parser 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b926237d4722760d9f6db42ee3d5ca36c3f9fde
4
- data.tar.gz: 190778cbdf6486afb791202e1bd87abed08ba096
3
+ metadata.gz: 06e763340f365fc8b014a1d0631d572441f80b97
4
+ data.tar.gz: 73e1389249adaae256dff949c5319fc4831c1438
5
5
  SHA512:
6
- metadata.gz: d2e0a3dca3f622c7d69900e10eb438fbf088900bce6881a4d2c08cb4451efb11265fd814e418cadb61ee03f2a9cd080d2fe3c7e5d40ae600648d74c267b8164d
7
- data.tar.gz: 73266458980e8197032f119fe6f6a63fd18218851965cc6d72b91ac6d04254ee8a0007c4d9c93f5070fdeb5e53d5c4beee2a68edbccf8b923e06fe555b72a6d5
6
+ metadata.gz: 2e668fe09baecda65ed99fbd8d9468350a19b84df7324e3a50d06d1303d7d41664ab6cc609a91f4afa7d30814709a5dc2e8375efa00cb374ee75bdb992a6f06b
7
+ data.tar.gz: 5726f8cc8edde5b60a3ad7c90ef9156a6e7bbe3d79ab37c9b5a5f0f52c605adfb05cd65d7f91000247e029870833ca0e719c605f24052627864595d457043979
@@ -73,14 +73,14 @@ module FitParser
73
73
  code << "array :#{field.raw_name}, :type => :#{field.type}, :initial_length => #{field.field_size/field.length}\n"
74
74
  else
75
75
  # string are not null terminated when they have exactly the lenght of the field
76
- code << "#{field.type} :#{field.raw_name.gsub('/', '_')}"
76
+ code << "#{field.type} :#{field.raw_name.gsub('/', '_').gsub('+', '')}"
77
77
  if field.type == 'string'
78
78
  code << ", :read_length => #{field.field_size}, :trim_padding => true"
79
79
  end
80
80
  code << "\n"
81
81
  end
82
82
 
83
- code << "def #{field.name.gsub('/', '_')}\n"
83
+ code << "def #{field.name.gsub('/', '_').gsub('+', '')}\n"
84
84
 
85
85
  if field.scale && field.scale != 1
86
86
  scale = field.scale
@@ -1,3 +1,3 @@
1
1
  module FitParser
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.5'
3
3
  end
@@ -121,4 +121,10 @@ describe FitParser do
121
121
  data = FitParser.load_file(path)
122
122
  expect(data.records).to_not be_nil
123
123
  end
124
+
125
+ it 'works 18119560227.fit' do
126
+ path = 'spec/support/examples/file/18119560227.fit'
127
+ data = FitParser.load_file(path)
128
+ expect(data.records).to_not be_nil
129
+ end
124
130
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fit_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dima Mescheryakov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-17 00:00:00.000000000 Z
11
+ date: 2018-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bindata
@@ -171,6 +171,7 @@ files:
171
171
  - spec/support/examples/1426768070-2.fit
172
172
  - spec/support/examples/6AUI5200.FIT
173
173
  - spec/support/examples/file/16050359900.fit
174
+ - spec/support/examples/file/18119560227.fit
174
175
  - spec/support/examples/file/3110334490
175
176
  - spec/support/examples/file/3863374146
176
177
  - spec/support/examples/file/598363e9-3121-4f24-8b6f-b1368a269e8f.