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: cb9599a60175921b88fda7f9f332dfdb0bf716d1
4
- data.tar.gz: 0e26b5d6f3b54578253a5444cdb619cecd410038
3
+ metadata.gz: 0ce4c1fb626d5bb6a55bb391a1e7866d3ebd1731
4
+ data.tar.gz: 1c3c23c7559acfd7a53b60e89444770fc08768e7
5
5
  SHA512:
6
- metadata.gz: 562b048d514ffa30a524097b89c4c3513e722c91d35d127087486e4350813bdf7d17a4c412c6212484307d9ac00be263485a5e252de352a24a838e0de047ca87
7
- data.tar.gz: e67e7f5bdd96b6ac2266c5cd331e7a1a954868e4fd87ee0b9b30f7b7d3a1d6d145dfa28cf7d6e5f17e90d6aafc67c97516626ccdfd7c23a189baf049f02222b5
6
+ metadata.gz: 66c26eab5d161cd18e02d9d47732614ba61ee84a681df341e6837440deb13fb758c3d7485d202f3bd5da901b4f9946934a010f0f1c4f3752a46d3cdb3e30d7c8
7
+ data.tar.gz: dd7968418eed7a3cc97c5aeea89ded49b45ea72f7f066e9e669003529c9d958eb63299fe30a7858dac9aa238d5f0476e41c7b60b6e3632030180d1e2a5b75b0e
@@ -1,3 +1,3 @@
1
1
  module FitParser
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
@@ -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
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.7
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-08-29 00:00:00.000000000 Z
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.3.1
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.3.1
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.4.8
208
+ rubygems_version: 2.5.1
207
209
  signing_key:
208
210
  specification_version: 4
209
211
  summary: ''