fit_parser 0.0.7 → 0.0.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ce4c1fb626d5bb6a55bb391a1e7866d3ebd1731
|
4
|
+
data.tar.gz: 1c3c23c7559acfd7a53b60e89444770fc08768e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66c26eab5d161cd18e02d9d47732614ba61ee84a681df341e6837440deb13fb758c3d7485d202f3bd5da901b4f9946934a010f0f1c4f3752a46d3cdb3e30d7c8
|
7
|
+
data.tar.gz: dd7968418eed7a3cc97c5aeea89ded49b45ea72f7f066e9e669003529c9d958eb63299fe30a7858dac9aa238d5f0476e41c7b60b6e3632030180d1e2a5b75b0e
|
data/lib/fit_parser/version.rb
CHANGED
data/spec/fit_parser_spec.rb
CHANGED
@@ -9,6 +9,20 @@ describe FitParser do
|
|
9
9
|
end
|
10
10
|
|
11
11
|
describe '.load_file' do
|
12
|
+
it 'works with threads' do
|
13
|
+
threads = []
|
14
|
+
%w(
|
15
|
+
be470628-c34a-4189-aae3-42bef36436ce.fit
|
16
|
+
fc84b277-68af-4d63-ac8d-fb8e162ab2a2.fit
|
17
|
+
).each do |file|
|
18
|
+
threads << Thread.new(file) do |el|
|
19
|
+
data = FitParser.load_file("spec/support/examples/file/#{el}")
|
20
|
+
expect(data.records).to_not be_nil
|
21
|
+
end
|
22
|
+
end
|
23
|
+
threads.each { |thread| thread.join }
|
24
|
+
end
|
25
|
+
|
12
26
|
it 'works with threads' do
|
13
27
|
threads = []
|
14
28
|
%w(3863374146 3110334490).each do |file|
|
@@ -20,4 +34,10 @@ describe FitParser do
|
|
20
34
|
threads.each { |thread| thread.join }
|
21
35
|
end
|
22
36
|
end
|
37
|
+
|
38
|
+
it 'works without threads' do
|
39
|
+
path = 'spec/support/examples/file/fc84b277-68af-4d63-ac8d-fb8e162ab2a2.fit'
|
40
|
+
data = FitParser.load_file(path)
|
41
|
+
expect(data.records).to_not be_nil
|
42
|
+
end
|
23
43
|
end
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fit_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dima Mescheryakov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bindata
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
26
|
+
version: 2.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -167,6 +167,8 @@ files:
|
|
167
167
|
- spec/spec_helper.rb
|
168
168
|
- spec/support/examples/file/3110334490
|
169
169
|
- spec/support/examples/file/3863374146
|
170
|
+
- spec/support/examples/file/be470628-c34a-4189-aae3-42bef36436ce.fit
|
171
|
+
- spec/support/examples/file/fc84b277-68af-4d63-ac8d-fb8e162ab2a2.fit
|
170
172
|
- spec/support/examples/file/full_file_with_wrong_crc.fit
|
171
173
|
- spec/support/examples/file/header
|
172
174
|
- spec/support/examples/file/header_14b.fit
|
@@ -203,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
203
205
|
version: '0'
|
204
206
|
requirements: []
|
205
207
|
rubyforge_project:
|
206
|
-
rubygems_version: 2.
|
208
|
+
rubygems_version: 2.5.1
|
207
209
|
signing_key:
|
208
210
|
specification_version: 4
|
209
211
|
summary: ''
|