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.
@@ -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
@@ -5,4 +5,5 @@ Rake::TestTask.new do |t|
5
5
  t.libs << 'spec'
6
6
  t.test_files = FileList['spec/**/*_spec.rb']
7
7
  t.verbose = false
8
+ t.warning = false
8
9
  end
@@ -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 = ">= 1.9"
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 "codeclimate-test-reporter"
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
@@ -30,7 +30,7 @@ module EfoNelfo
30
30
  end
31
31
  end
32
32
 
33
- refine Fixnum do
33
+ refine Integer do
34
34
  def to_csv
35
35
  to_s
36
36
  end
@@ -1,3 +1,3 @@
1
1
  module EfoNelfo
2
- VERSION = "1.7.0"
2
+ VERSION = "2.0.0"
3
3
  end
@@ -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).must_equal 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("").must_equal nil }
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).must_equal nil }
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
 
@@ -1,5 +1,5 @@
1
- require 'codeclimate-test-reporter'
2
- CodeClimate::TestReporter.start
1
+ require 'simplecov'
2
+ SimpleCov.start
3
3
 
4
4
  require 'efo_nelfo'
5
5
  require 'minitest/autorun'
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: 1.7.0
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: 2016-10-16 00:00:00.000000000 Z
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: '0'
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: '0'
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: '0'
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: '0'
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: '0'
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: '0'
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: '0'
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: '0'
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: '0'
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: '0'
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: '0'
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: '0'
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: '0'
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: '0'
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: '0'
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: '0'
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: '1.9'
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.4.5
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: