efo_nelfo 1.7.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +20 -0
- data/.rubocop.yml +1156 -0
- data/.travis.yml +14 -0
- data/README.md +4 -0
- data/Rakefile +1 -0
- data/efo_nelfo.gemspec +13 -12
- data/lib/efo_nelfo/property_types.rb +1 -1
- data/lib/efo_nelfo/version.rb +1 -1
- data/spec/property_spec.rb +3 -3
- data/spec/spec_helper.rb +2 -2
- metadata +65 -49
data/.travis.yml
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 2.2.5
|
4
|
+
- 2.4.0
|
5
|
+
cache: bundler
|
6
|
+
sudo: false
|
7
|
+
script:
|
8
|
+
- bundle exec rake test
|
9
|
+
after_success:
|
10
|
+
- bundle exec codeclimate-test-reporter
|
11
|
+
addons:
|
12
|
+
code_climate:
|
13
|
+
repo_token:
|
14
|
+
secure: mx5SVAoJ6ZS3YeMLYtttC6fyg3+8VnJ8PVfQZrtWVJGi+7q4uPo6D9Et0PVDMDYv2LswueUxKfQ5t1TycmMUSaycDFKRaUye5SXUzmzXrNm99gg05KZX0+5w9ppqLILxQCHm6Ez7UWbbIp/yAuoik3MLnZea+rihIuJv6033bR4YA9LXMLTfIhcnG0VHgTN6GKqZl3ayG5sf5Yf+rRdLEgxuFoVeJC23/V0ctkSKjTq2DmZUpE5Geu+H8VjcqsJTpTX31WwiV0xQ1QKAZ75okdjOMSvF4sN62BpSr4rL8w08tZvR+iulU7TUkpWdW3K5yAFzw08ILCWUbk8gasYx0a6/xz0CtX1+8pZru6IvCbOKKZSd9aV+mGrNBMPsVEFDjr2la/0mlRFzzQabeGFy7vg8ZCOwlHkUR3bRyq8TQEFqRulds0QYv5rTe1bI5d5UAB4VW/9rVh58mL75DVnyaWbCiBPs0ZWqNjxBONI+rX8DQeH01+UGYk/CXuo7i4YGGml6L9As3VqBKcI+xhGaHTSuPYWzEHIwK9qs3buYKUGpBARHLTUJdf6bsx7qHOdhO0t+L9mwB8RhbdYGp3C3ZVtG1Y3riULnVZctjVLUvVy472wB2k4XikgW/VZU1EJpbs4ZwYr6/Ccr9Mpejq+BaklOYx/D8+ZueLz1y26p7lk=
|
data/README.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# EfoNelfo
|
2
2
|
|
3
|
+
[![Code Climate](https://codeclimate.com/github/rorkjop/efonelfo/badges/gpa.svg)](https://codeclimate.com/github/rorkjop/efonelfo)
|
4
|
+
[![Test Coverage](https://codeclimate.com/github/rorkjop/efonelfo/badges/coverage.svg)](https://codeclimate.com/github/rorkjop/efonelfo/coverage)
|
5
|
+
[![Build Status](https://travis-ci.org/rorkjop/efonelfo.svg?branch=master)](https://travis-ci.org/rorkjop/efonelfo)
|
6
|
+
|
3
7
|
Gem for parsing and writing EfoNelfo documents.
|
4
8
|
|
5
9
|
Supported EfoNelfo versions:
|
data/Rakefile
CHANGED
data/efo_nelfo.gemspec
CHANGED
@@ -18,17 +18,18 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.required_ruby_version = ">=
|
21
|
+
spec.required_ruby_version = ">= 2.2.5"
|
22
22
|
|
23
|
-
spec.add_development_dependency "bundler"
|
24
|
-
spec.add_development_dependency "rake"
|
25
|
-
spec.add_development_dependency "awesome_print"
|
26
|
-
spec.add_development_dependency "guard"
|
27
|
-
spec.add_development_dependency "guard-minitest"
|
28
|
-
spec.add_development_dependency "minitest"
|
29
|
-
spec.add_development_dependency "minitest-reporters"
|
30
|
-
spec.add_development_dependency "rb-fsevent"
|
31
|
-
spec.add_development_dependency "terminal-notifier"
|
32
|
-
spec.add_development_dependency "terminal-notifier-guard"
|
33
|
-
spec.add_development_dependency "
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.13"
|
24
|
+
spec.add_development_dependency "rake", "~> 12.0"
|
25
|
+
spec.add_development_dependency "awesome_print", "~> 1.7"
|
26
|
+
spec.add_development_dependency "guard", "~> 2.14"
|
27
|
+
spec.add_development_dependency "guard-minitest", "~> 2.4"
|
28
|
+
spec.add_development_dependency "minitest", "~> 5.10"
|
29
|
+
spec.add_development_dependency "minitest-reporters", "~> 1.1"
|
30
|
+
spec.add_development_dependency "rb-fsevent", "~> 0.9"
|
31
|
+
spec.add_development_dependency "terminal-notifier", "~> 1.7"
|
32
|
+
spec.add_development_dependency "terminal-notifier-guard", "~> 1.7"
|
33
|
+
spec.add_development_dependency "simplecov", "~> 0.13"
|
34
|
+
spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0"
|
34
35
|
end
|
data/lib/efo_nelfo/version.rb
CHANGED
data/spec/property_spec.rb
CHANGED
@@ -155,16 +155,16 @@ describe EfoNelfo::Property do
|
|
155
155
|
describe "type is :string" do
|
156
156
|
let(:type) { :string }
|
157
157
|
it { make_property("A string").must_equal "A string" }
|
158
|
-
it { make_property(nil).
|
158
|
+
it { make_property(nil).must_be_nil }
|
159
159
|
it { make_property("Sjøhest").encoding.must_equal Encoding::ISO_8859_1 }
|
160
|
-
it { make_property("").
|
160
|
+
it { make_property("").must_be_nil }
|
161
161
|
end
|
162
162
|
|
163
163
|
describe "type is :integer" do
|
164
164
|
let(:type) { :integer }
|
165
165
|
it { make_property(2).must_equal "2" }
|
166
166
|
it { make_property(100, type: :integer, decimals: 4).must_equal "100" }
|
167
|
-
it { make_property(nil, type: :integer, decimals: 2).
|
167
|
+
it { make_property(nil, type: :integer, decimals: 2).must_be_nil }
|
168
168
|
it { make_property(nil, type: :integer, required: true).must_equal "0" }
|
169
169
|
end
|
170
170
|
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,169 +1,183 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: efo_nelfo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gudleik Rasch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '1.13'
|
20
20
|
type: :development
|
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: '
|
26
|
+
version: '1.13'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
33
|
+
version: '12.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
40
|
+
version: '12.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: awesome_print
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '1.7'
|
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
|
-
version: '
|
54
|
+
version: '1.7'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: guard
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '2.14'
|
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
|
-
version: '
|
68
|
+
version: '2.14'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: guard-minitest
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '2.4'
|
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
|
-
version: '
|
82
|
+
version: '2.4'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: minitest
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '5.10'
|
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
|
-
version: '
|
96
|
+
version: '5.10'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: minitest-reporters
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '1.1'
|
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
|
-
version: '
|
110
|
+
version: '1.1'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: rb-fsevent
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
117
|
+
version: '0.9'
|
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
|
-
version: '0'
|
124
|
+
version: '0.9'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: terminal-notifier
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- - "
|
129
|
+
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
131
|
+
version: '1.7'
|
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
|
-
version: '
|
138
|
+
version: '1.7'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: terminal-notifier-guard
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
|
-
- - "
|
143
|
+
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
145
|
+
version: '1.7'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
|
-
- - "
|
150
|
+
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
152
|
+
version: '1.7'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: simplecov
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0.13'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0.13'
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
168
|
name: codeclimate-test-reporter
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
156
170
|
requirements:
|
157
|
-
- - "
|
171
|
+
- - "~>"
|
158
172
|
- !ruby/object:Gem::Version
|
159
|
-
version: '0'
|
173
|
+
version: '1.0'
|
160
174
|
type: :development
|
161
175
|
prerelease: false
|
162
176
|
version_requirements: !ruby/object:Gem::Requirement
|
163
177
|
requirements:
|
164
|
-
- - "
|
178
|
+
- - "~>"
|
165
179
|
- !ruby/object:Gem::Version
|
166
|
-
version: '0'
|
180
|
+
version: '1.0'
|
167
181
|
description: Parser for EFONELFO format
|
168
182
|
email:
|
169
183
|
- gr@skalar.no
|
@@ -171,7 +185,10 @@ executables: []
|
|
171
185
|
extensions: []
|
172
186
|
extra_rdoc_files: []
|
173
187
|
files:
|
188
|
+
- ".codeclimate.yml"
|
174
189
|
- ".gitignore"
|
190
|
+
- ".rubocop.yml"
|
191
|
+
- ".travis.yml"
|
175
192
|
- Gemfile
|
176
193
|
- Guardfile
|
177
194
|
- LICENSE.txt
|
@@ -243,7 +260,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
243
260
|
requirements:
|
244
261
|
- - ">="
|
245
262
|
- !ruby/object:Gem::Version
|
246
|
-
version:
|
263
|
+
version: 2.2.5
|
247
264
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
248
265
|
requirements:
|
249
266
|
- - ">="
|
@@ -251,7 +268,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
251
268
|
version: '0'
|
252
269
|
requirements: []
|
253
270
|
rubyforge_project:
|
254
|
-
rubygems_version: 2.
|
271
|
+
rubygems_version: 2.6.8
|
255
272
|
signing_key:
|
256
273
|
specification_version: 4
|
257
274
|
summary: Parser for EFONELFO format
|
@@ -283,4 +300,3 @@ test_files:
|
|
283
300
|
- spec/spec_helper.rb
|
284
301
|
- spec/va_spec.rb
|
285
302
|
- spec/vl_spec.rb
|
286
|
-
has_rdoc:
|