fit_parser 0.0.6 → 0.0.7

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: 26a162b17897f536d316acc8e36dad49d36a3a72
4
- data.tar.gz: 597240fbd8ee2fef1a95e1165e9a1fcb95f1948d
3
+ metadata.gz: cb9599a60175921b88fda7f9f332dfdb0bf716d1
4
+ data.tar.gz: 0e26b5d6f3b54578253a5444cdb619cecd410038
5
5
  SHA512:
6
- metadata.gz: 67a8ee06d504f0a96a7a3a3b1619692b287192830fdeb252c701dad9f7eb7dfb8dc1084ab36d7ef640ce2955110c099a6f29e16699c9734f9b8a77d2b729f829
7
- data.tar.gz: 7c4795cb5492141343f2f6c50dc3b866b6a3101bfc6b05a56ec5cc6403adaf5befaf0bb14644c2d0df4ca52172094893f7f2ba3f963b0bb9bde68073a39d61de
6
+ metadata.gz: 562b048d514ffa30a524097b89c4c3513e722c91d35d127087486e4350813bdf7d17a4c412c6212484307d9ac00be263485a5e252de352a24a838e0de047ca87
7
+ data.tar.gz: e67e7f5bdd96b6ac2266c5cd331e7a1a954868e4fd87ee0b9b30f7b7d3a1d6d145dfa28cf7d6e5f17e90d6aafc67c97516626ccdfd7c23a189baf049f02222b5
@@ -18,7 +18,7 @@ module FitParser
18
18
  end
19
19
  RUBY
20
20
 
21
- definition.fields.each do |field|
21
+ definition.fields_arr.each do |field|
22
22
  code = ''
23
23
 
24
24
  # in case the field size is a multiple of the field length, we must build an array
@@ -103,7 +103,7 @@ module FitParser
103
103
  uint16be 1
104
104
  end
105
105
  bit8 :field_count
106
- array :fields, type: Field, initial_length: :field_count
106
+ array :fields_arr, type: Field, initial_length: :field_count
107
107
 
108
108
  def endianness
109
109
  architecture.snapshot == 0 ? :little : :big
@@ -1,3 +1,3 @@
1
1
  module FitParser
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
@@ -10,16 +10,16 @@ describe FitParser::File::Definition do
10
10
  its(:architecture) { should == 0 }
11
11
  its(:global_message_number) { should == 0 }
12
12
  its(:field_count) { should == 6 }
13
- it { expect(subject.fields.size).to eq(subject.field_count) }
13
+ it { expect(subject.fields_arr.size).to eq(subject.field_count) }
14
14
 
15
15
  its(:record_type) { should == :definition }
16
16
  it 'returns the real type for fields' do
17
- expect(subject.fields[0].real_type).to be == :uint32z
18
- expect(subject.fields[1].real_type).to be == :date_time
19
- expect(subject.fields[2].real_type).to be == :manufacturer
20
- expect(subject.fields[3].real_type).to be == :uint16 # product
21
- expect(subject.fields[4].real_type).to be == :uint16 # number
22
- expect(subject.fields[5].real_type).to be == :file
17
+ expect(subject.fields_arr[0].real_type).to be == :uint32z
18
+ expect(subject.fields_arr[1].real_type).to be == :date_time
19
+ expect(subject.fields_arr[2].real_type).to be == :manufacturer
20
+ expect(subject.fields_arr[3].real_type).to be == :uint16 # product
21
+ expect(subject.fields_arr[4].real_type).to be == :uint16 # number
22
+ expect(subject.fields_arr[5].real_type).to be == :file
23
23
  end
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,139 +1,139 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fit_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
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-03-07 00:00:00.000000000 Z
11
+ date: 2016-08-29 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.2.0
19
+ version: 2.3.1
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.2.0
26
+ version: 2.3.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.10'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.10'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '10.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '10.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rspec-its
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: warder
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: pry
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: simplecov
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  description: handles FIT files
@@ -193,12 +193,12 @@ require_paths:
193
193
  - lib
194
194
  required_ruby_version: !ruby/object:Gem::Requirement
195
195
  requirements:
196
- - - '>='
196
+ - - ">="
197
197
  - !ruby/object:Gem::Version
198
198
  version: '0'
199
199
  required_rubygems_version: !ruby/object:Gem::Requirement
200
200
  requirements:
201
- - - '>='
201
+ - - ">="
202
202
  - !ruby/object:Gem::Version
203
203
  version: '0'
204
204
  requirements: []
@@ -208,4 +208,3 @@ signing_key:
208
208
  specification_version: 4
209
209
  summary: ''
210
210
  test_files: []
211
- has_rdoc: