asciimath2unitsml 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rake.yml +1 -3
- data/.github/workflows/release.yml +22 -0
- data/README.adoc +2 -0
- data/asciimath2unitsml.gemspec +1 -2
- data/lib/asciimath2unitsml/version.rb +1 -1
- data/spec/spec_helper.rb +11 -6
- metadata +11 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96f1193072c84d3f588227986d47fa20e157d8572ed2b58b6715afe3d40b78ab
|
4
|
+
data.tar.gz: 47f8cbce9ba6100125875a9194252ac87cc63218003696408b6e5e4f816ba34d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9411d05915f2f7099d7c62f9d0399037d3f0745abe5ee40292f255ce64b646c16d8e399aba9fac2b81d9314d45c5090066d4de7a0203b3cd9c77ba4e6a21572
|
7
|
+
data.tar.gz: a4fb89ae095f78e5120fa5c8f131e469beee871709dd2aaa037880eab5689388541be6459af606f84914cbdfeed694842b5f25b0a88338f05a7edf074a8ee720
|
data/.github/workflows/rake.yml
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
# Auto-generated by Cimas: Do not edit it manually!
|
2
|
+
# See https://github.com/metanorma/cimas
|
3
|
+
name: release
|
4
|
+
|
5
|
+
on:
|
6
|
+
workflow_dispatch:
|
7
|
+
inputs:
|
8
|
+
next_version:
|
9
|
+
description: |
|
10
|
+
Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
|
11
|
+
required: true
|
12
|
+
default: 'skip'
|
13
|
+
push:
|
14
|
+
tags: [ v* ]
|
15
|
+
|
16
|
+
jobs:
|
17
|
+
release:
|
18
|
+
uses: metanorma/ci/.github/workflows/rubygems-release.yml@main
|
19
|
+
with:
|
20
|
+
next_version: ${{ github.event.inputs.next_version }}
|
21
|
+
secrets:
|
22
|
+
rubygems-api-key: ${{ secrets.PLURIMATH_CI_RUBYGEMS_API_KEY }}
|
data/README.adoc
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
## DEPRECATION NOTICE: This repository is no longer maintained. Please visit link:https://github.com/plurimath/plurimath[Plurimath] for the latest updates and features.
|
2
|
+
|
1
3
|
image:https://img.shields.io/gem/v/asciimath2unitsml.svg["Gem Version", link="https://rubygems.org/gems/asciimath2unitsml"]
|
2
4
|
image:https://github.com/plurimath/asciimath2unitsml/workflows/rake/badge.svg["Build Status", link="https://github.com/plurimath/asciimath2unitsml/actions?workflow=rake"]
|
3
5
|
// image:https://codeclimate.com/github/plurimath/asciimath2unitsml/badges/gpa.svg["Code Climate", link="https://codeclimate.com/github/plurimath/asciimath2unitsml"]
|
data/asciimath2unitsml.gemspec
CHANGED
@@ -45,7 +45,7 @@ Gem::Specification.new do |spec|
|
|
45
45
|
|
46
46
|
spec.add_dependency "asciimath"
|
47
47
|
spec.add_dependency "htmlentities"
|
48
|
-
spec.add_dependency "nokogiri", "
|
48
|
+
spec.add_dependency "nokogiri", "<= 1.16.8"
|
49
49
|
spec.add_dependency "rsec", "~> 1.0.0"
|
50
50
|
|
51
51
|
spec.add_development_dependency "bundler"
|
@@ -54,7 +54,6 @@ Gem::Specification.new do |spec|
|
|
54
54
|
spec.add_development_dependency "guard", "~> 2.14"
|
55
55
|
spec.add_development_dependency "guard-rspec", "~> 4.7"
|
56
56
|
spec.add_development_dependency "rake", "~> 12.0"
|
57
|
-
spec.add_development_dependency "rexml"
|
58
57
|
spec.add_development_dependency "rspec", "~> 3.6"
|
59
58
|
spec.add_development_dependency "rubocop", "~> 1.5.2"
|
60
59
|
spec.add_development_dependency "simplecov", "~> 0.15"
|
data/spec/spec_helper.rb
CHANGED
@@ -10,7 +10,6 @@ SimpleCov.start "gem"
|
|
10
10
|
require "asciimath2unitsml"
|
11
11
|
require "rspec/matchers"
|
12
12
|
require "equivalent-xml/rspec_matchers"
|
13
|
-
require "rexml/document"
|
14
13
|
|
15
14
|
RSpec.configure do |config|
|
16
15
|
# Enable flags like --only-failures and --next-failure
|
@@ -25,9 +24,15 @@ RSpec.configure do |config|
|
|
25
24
|
end
|
26
25
|
|
27
26
|
def xmlpp(xml)
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
27
|
+
xsl = <<~XSL
|
28
|
+
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
29
|
+
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
|
30
|
+
<xsl:strip-space elements="*"/>
|
31
|
+
<xsl:template match="/">
|
32
|
+
<xsl:copy-of select="."/>
|
33
|
+
</xsl:template>
|
34
|
+
</xsl:stylesheet>
|
35
|
+
XSL
|
36
|
+
Nokogiri::XSLT(xsl).transform(Nokogiri::XML(xml, &:noblanks))
|
37
|
+
.to_xml(indent: 2, encoding: "UTF-8")
|
33
38
|
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.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: asciimath
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: nokogiri
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "<="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.16.8
|
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:
|
54
|
+
version: 1.16.8
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rsec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,20 +150,6 @@ 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'
|
167
153
|
- !ruby/object:Gem::Dependency
|
168
154
|
name: rspec
|
169
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -230,6 +216,7 @@ extensions: []
|
|
230
216
|
extra_rdoc_files: []
|
231
217
|
files:
|
232
218
|
- ".github/workflows/rake.yml"
|
219
|
+
- ".github/workflows/release.yml"
|
233
220
|
- ".gitignore"
|
234
221
|
- ".gitmodules"
|
235
222
|
- ".hound.yml"
|
@@ -262,7 +249,7 @@ homepage: https://github.com/plurimath/asciimath2unitsml
|
|
262
249
|
licenses:
|
263
250
|
- BSD-2-Clause
|
264
251
|
metadata: {}
|
265
|
-
post_install_message:
|
252
|
+
post_install_message:
|
266
253
|
rdoc_options: []
|
267
254
|
require_paths:
|
268
255
|
- lib
|
@@ -277,8 +264,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
277
264
|
- !ruby/object:Gem::Version
|
278
265
|
version: '0'
|
279
266
|
requirements: []
|
280
|
-
rubygems_version: 3.3.
|
281
|
-
signing_key:
|
267
|
+
rubygems_version: 3.3.27
|
268
|
+
signing_key:
|
282
269
|
specification_version: 4
|
283
270
|
summary: Convert Asciimath via MathML to UnitsML
|
284
271
|
test_files: []
|