asciimath2unitsml 0.3.2 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_helper.rb CHANGED
@@ -1,13 +1,13 @@
1
- require 'simplecov'
2
-
3
- SimpleCov.profiles.define 'gem' do
4
- add_filter '/spec/'
5
- add_filter '/autotest/'
6
- add_group 'Libraries', '/lib/'
1
+ require "simplecov"
2
+
3
+ SimpleCov.profiles.define "gem" do
4
+ add_filter "/spec/"
5
+ add_filter "/autotest/"
6
+ add_group "Libraries", "/lib/"
7
7
  end
8
- SimpleCov.start 'gem'
8
+ SimpleCov.start "gem"
9
9
 
10
- require 'asciimath2unitsml'
10
+ require "asciimath2unitsml"
11
11
  require "rspec/matchers"
12
12
  require "equivalent-xml/rspec_matchers"
13
13
  require "rexml/document"
@@ -24,10 +24,10 @@ RSpec.configure do |config|
24
24
  end
25
25
  end
26
26
 
27
- def xmlpp(x)
27
+ def xmlpp(xml)
28
28
  s = ""
29
29
  f = REXML::Formatters::Pretty.new(2)
30
30
  f.compact = true
31
- f.write(REXML::Document.new(x),s)
31
+ f.write(REXML::Document.new(xml), s)
32
32
  s
33
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciimath2unitsml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-25 00:00:00.000000000 Z
11
+ date: 2021-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciimath
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.10.4
47
+ version: '1.12'
48
48
  type: :runtime
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: 1.10.4
54
+ version: '1.12'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rsec
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -81,19 +81,19 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: byebug
84
+ name: debug
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '9.1'
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
- version: '9.1'
96
+ version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: equivalent-xml
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -150,6 +150,20 @@ dependencies:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
152
  version: '12.0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rexml
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
153
167
  - !ruby/object:Gem::Dependency
154
168
  name: rspec
155
169
  requirement: !ruby/object:Gem::Requirement
@@ -206,20 +220,6 @@ dependencies:
206
220
  - - "~>"
207
221
  - !ruby/object:Gem::Version
208
222
  version: '0.9'
209
- - !ruby/object:Gem::Dependency
210
- name: rexml
211
- requirement: !ruby/object:Gem::Requirement
212
- requirements:
213
- - - ">="
214
- - !ruby/object:Gem::Version
215
- version: '0'
216
- type: :development
217
- prerelease: false
218
- version_requirements: !ruby/object:Gem::Requirement
219
- requirements:
220
- - - ">="
221
- - !ruby/object:Gem::Version
222
- version: '0'
223
223
  description: 'Convert Asciimath via MathML to UnitsML
224
224
 
225
225
  '
@@ -232,6 +232,7 @@ files:
232
232
  - ".github/workflows/rake.yml"
233
233
  - ".gitignore"
234
234
  - ".gitmodules"
235
+ - ".hound.yml"
235
236
  - ".rubocop.yml"
236
237
  - Gemfile
237
238
  - LICENSE
@@ -241,7 +242,9 @@ files:
241
242
  - bin/rspec
242
243
  - lib/asciimath2unitsml.rb
243
244
  - lib/asciimath2unitsml/conv.rb
245
+ - lib/asciimath2unitsml/dimensions.rb
244
246
  - lib/asciimath2unitsml/parse.rb
247
+ - lib/asciimath2unitsml/read.rb
245
248
  - lib/asciimath2unitsml/render.rb
246
249
  - lib/asciimath2unitsml/string.rb
247
250
  - lib/asciimath2unitsml/unit.rb
@@ -267,14 +270,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
267
270
  requirements:
268
271
  - - ">="
269
272
  - !ruby/object:Gem::Version
270
- version: 2.4.0
273
+ version: 2.5.0
271
274
  required_rubygems_version: !ruby/object:Gem::Requirement
272
275
  requirements:
273
276
  - - ">="
274
277
  - !ruby/object:Gem::Version
275
278
  version: '0'
276
279
  requirements: []
277
- rubygems_version: 3.1.4
280
+ rubygems_version: 3.2.22
278
281
  signing_key:
279
282
  specification_version: 4
280
283
  summary: Convert Asciimath via MathML to UnitsML