asciimath 2.0.5 → 2.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86018ef6bb3e96fddebb125bf2d246b847378dd686cfa720398c09970ad00696
4
- data.tar.gz: 6347a679a01a6fbfa1b56cfa366e43f80bf195a763efe9150f69067dbaf0c227
3
+ metadata.gz: d4da40c3a56b887d58b43530f970f23ade2ec058019c3e5c4d7e656ac87cebf7
4
+ data.tar.gz: ac10cfdfbb9c82993407155dc0f7c8725d79b83a788638c21a1d31084f8edf63
5
5
  SHA512:
6
- metadata.gz: 9886f869eafa972e926c0103fc13c56a67203d2a71eaa607489169d7695225cfe3cdbf216ef325153e9d24f7ea8f57c26482a71752a9713992d866826b08a879
7
- data.tar.gz: 985c445a620542eb3d6f851ce1c832b2c8b89c9aa1d3a2258c64d23456cddb7b36b7953de5f954c3fbbfd9769f113edc499881b88206b4bfc67137ea3cfbaf03
6
+ metadata.gz: 27b8428ddbd14cf6463b72bd4549d4f507a23d626a8a5920297f2b83d1318d7360684b482b9f82ba5ae8107554d7dfe2c16e04b4804c46793f5f0581747900bf
7
+ data.tar.gz: e075905541d6e76f84a92bcb03f567ecd927b2ef9ef3365aa548b601e6e383a37aa6e66e73490753ea9dfab1245d19916d9880279070846933541ff754e0cd9f
@@ -4,12 +4,18 @@ jobs:
4
4
  test:
5
5
  strategy:
6
6
  matrix:
7
- ruby: [jruby, 2.3, 2.4, 2.5, 2.6, 2.7]
8
- os: [ubuntu-latest, macos-latest, windows-latest]
7
+ ruby: [jruby, 2.3, 2.4, 2.5, 2.6, 2.7, 3.2]
8
+ os: [ubuntu-latest]
9
+ rubyopt: [""]
10
+ include:
11
+ - ruby: 2.7
12
+ os: ubuntu-latest
13
+ rubyopt: "--enable-frozen-string-literal --debug-frozen-string-literal"
14
+
9
15
  runs-on: ${{ matrix.os }}
10
16
  steps:
11
17
  - name: Checkout
12
- uses: actions/checkout@v2
18
+ uses: actions/checkout@v4
13
19
  - name: Set up Ruby
14
20
  uses: ruby/setup-ruby@v1
15
21
  with:
@@ -17,4 +23,6 @@ jobs:
17
23
  - name: Build
18
24
  run: bundle install --jobs 4 --retry 3
19
25
  - name: Test
26
+ env:
27
+ RUBYOPT: ${{ matrix.rubyopt }}
20
28
  run: bundle exec rake test
data/asciimath.gemspec CHANGED
@@ -11,9 +11,16 @@ Gem::Specification.new do |spec|
11
11
  spec.email = ["pepijn@vaneeckhoudt.net", "pablo-ecobar@riseup.net"]
12
12
  spec.summary = %q{AsciiMath parser and converter}
13
13
  spec.description = %q{A pure Ruby AsciiMath parsing and conversion library.}
14
- spec.homepage = ""
14
+ spec.homepage = "https://asciidoctor.org/"
15
15
  spec.license = "MIT"
16
16
 
17
+ spec.metadata = {
18
+ "bug_tracker_uri" => "https://github.com/asciidoctor/asciimath/issues",
19
+ "changelog_uri" => "https://github.com/asciidoctor/asciimath/blob/HEAD/CHANGELOG.adoc",
20
+ "mailing_list_uri" => "https://chat.asciidoctor.org",
21
+ "source_code_uri" => "https://github.com/asciidoctor/asciimath"
22
+ }
23
+
17
24
  spec.files = `git ls-files -z`.split("\x0")
18
25
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
26
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
@@ -8,7 +8,7 @@ module AsciiMath
8
8
  @prefix = opts[:prefifx] || ''
9
9
  @inline = opts[:inline]
10
10
  @escape_non_ascii = opts.fetch(:escape_non_ascii, true)
11
- @html = ''
11
+ @html = ''.dup
12
12
  end
13
13
 
14
14
  def to_s
@@ -5,7 +5,7 @@ module AsciiMath
5
5
  attr_reader :symbol_table
6
6
 
7
7
  def initialize(symbol_table = nil)
8
- @latex = ''
8
+ @latex = ''.dup
9
9
  @symbol_table = symbol_table.nil? ? DEFAULT_DISPLAY_SYMBOL_TABLE : symbol_table
10
10
  end
11
11
 
@@ -7,7 +7,7 @@ module AsciiMath
7
7
  def initialize(opts = {})
8
8
  super(opts[:symbol_table] || ::AsciiMath::MarkupBuilder.default_display_symbol_table(fix_phi: opts.fetch(:fix_phi, true)))
9
9
  @prefix = opts[:prefix] || ''
10
- @mathml = ''
10
+ @mathml = ''.dup
11
11
  if opts[:msword]
12
12
  @row_mode = :force
13
13
  @fence_mode = :fenced
@@ -753,7 +753,7 @@ module AsciiMath
753
753
  end
754
754
 
755
755
  def convert_to_color(color_expression)
756
- s = ""
756
+ s = "".dup
757
757
  append_color_text(s, color_expression)
758
758
 
759
759
  case s
@@ -1,3 +1,3 @@
1
1
  module AsciiMath
2
- VERSION = "2.0.5"
2
+ VERSION = "2.0.6"
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciimath
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pepijn Van Eeckhoudt
8
8
  - Gark Garcia
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-04-09 00:00:00.000000000 Z
12
+ date: 2025-03-11 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A pure Ruby AsciiMath parsing and conversion library.
15
15
  email:
@@ -81,11 +81,15 @@ files:
81
81
  - spec/schema/mathml3/mathml3-strict-content.xsd
82
82
  - spec/schema/mathml3/mathml3.xsd
83
83
  - style/math.css
84
- homepage: ''
84
+ homepage: https://asciidoctor.org/
85
85
  licenses:
86
86
  - MIT
87
- metadata: {}
88
- post_install_message:
87
+ metadata:
88
+ bug_tracker_uri: https://github.com/asciidoctor/asciimath/issues
89
+ changelog_uri: https://github.com/asciidoctor/asciimath/blob/HEAD/CHANGELOG.adoc
90
+ mailing_list_uri: https://chat.asciidoctor.org
91
+ source_code_uri: https://github.com/asciidoctor/asciimath
92
+ post_install_message:
89
93
  rdoc_options: []
90
94
  require_paths:
91
95
  - lib
@@ -100,8 +104,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
104
  - !ruby/object:Gem::Version
101
105
  version: '0'
102
106
  requirements: []
103
- rubygems_version: 3.0.3.1
104
- signing_key:
107
+ rubygems_version: 3.2.22
108
+ signing_key:
105
109
  specification_version: 4
106
110
  summary: AsciiMath parser and converter
107
111
  test_files: