ulmul 0.6.0 → 0.7.1

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: ee7c57be35732f321d6726a210d52667214ce64590290e6ea68b9e2dce8c92a3
4
- data.tar.gz: 8e6898709f4212ea232d7a2b28fb19f82eeb39899e6d6b74173997f1507b3d75
3
+ metadata.gz: '095bd3f2da63df1635c462cf78b8b8e6f6b1fd656062aaec0ab60467c8051933'
4
+ data.tar.gz: 9f4cbec0d9c56aac924d8631ea7e9dfd4fb342ce4fd67e72c6a82de91b44fdb7
5
5
  SHA512:
6
- metadata.gz: 39dbcd096b889d6c71135a55e7ae27422b9d02ba9e0a7a1546453f15128fd160dd5bd1cd8632898b4a08dd3de1896dc6dae7da0cd0de278418c370a518824577
7
- data.tar.gz: f29394fd5f9105b183882969467825626a099dc3eb1975bbd847ee13e4a217652ded5324d91216beecacc81a34e7de59a60c981994e8ae4040da6ad8705fc33a
6
+ metadata.gz: 700bd2fa3810f1d9a03e4ec076bd4922a6e915444deb7b07e5200e122684dad59b0fa0b793cbbf3da81523504bcc1c1d130fdd4a60c42606048defce9f5e5e6b
7
+ data.tar.gz: c85fcb3715f8123641343f2f52397554a06a72e97cbdf973e61ffbc017d441d74090a12fa1339b2c6c66f71fe91ee1b70bf3bfbf0b532d2b8ca4374f56c9f5fe
data/Changes CHANGED
@@ -1,4 +1,10 @@
1
1
  = Changes in each version
2
+ == 0.7.1
3
+ * Report illegal indent errors in itemize
4
+
5
+ == 0.7.0
6
+ * Use math_ml 1.0
7
+
2
8
  == 0.5.3
3
9
  * For aasm-4.0.8, :on_transition is replaced by :after
4
10
 
data/README-en CHANGED
@@ -44,6 +44,7 @@ Starting with "= ", "== ", "=== ", "==== ", "===== ", and "====== ".
44
44
  "= " will be used for the title.
45
45
  ==== asterisk
46
46
  Lines starting with asterisks become itemizing list.
47
+ Indent lines by two characters.
47
48
  For example,
48
49
  # Nesting is allowed up to 4th--5th level.
49
50
  * First
@@ -182,9 +183,6 @@ If you do not need the Table of Contents, specify 1.
182
183
  * http://t-nissie.users.sourceforge.net/ULMUL/index.en.html
183
184
  * Its source is http://t-nissie.users.sourceforge.net/ULMUL/README-en (this document)
184
185
 
185
- === ulmul2xhtml is obsolete
186
- ulmul2xhtml will be removed from next version 0.6.x.
187
-
188
186
  == Usage of ulmul2mathjax
189
187
  It uses MathJax http://www.mathjax.org/ to show equations.
190
188
  $ ulmul2mathjax --help
@@ -208,10 +206,10 @@ For more, see TODO file.
208
206
 
209
207
  == Repository in GitHub
210
208
  You can clone the source tree of ULMUL from GitHub with git(1) command:
211
- $ git clone git@github.com:t-nissie/ULMUL.git ulmul
209
+ $ git clone https://github.com/t-nissie/ULMUL.git ulmul
212
210
 
213
211
  == Copying
214
- Copyright © 2008,2009,2010,2011,2012,2013,2014,2015,2017,2022 by Takeshi Nishimatsu
212
+ Copyright © 2008,2009,2010,2011,2012,2013,2014,2015,2017,2022,2024 by Takeshi Nishimatsu
215
213
 
216
214
  ulmul.rb is distributed in the hope that
217
215
  it will be useful, but WITHOUT ANY WARRANTY.
data/README-ja CHANGED
@@ -45,7 +45,7 @@ ulmul.rbは状態遷移 (state machine) ライブラリaasmを使っていて、
45
45
  "= ", "== ", "=== ", "==== ", "===== ", または "====== " で始めてください。
46
46
  「= ABCD EFGH」ならABCD EFGHがタイトルになります。Slidyの表紙にもなります。
47
47
  ==== アスタリスクで始まる行は箇条書きになります (asterisk)
48
- 4〜5段までネストした箇条書きが可能です:
48
+ 2文字づつインデントして、4〜5段までネストした箇条書きが可能です:
49
49
  たとえば、
50
50
  # Nesting is allowed uo to 4th--5th level.
51
51
  * First
@@ -173,9 +173,6 @@ JavaScriptのファイル名を指定します。
173
173
  * http://t-nissie.users.sourceforge.net/ULMUL/index.ja.html
174
174
  * ソースは http://t-nissie.users.sourceforge.net/ULMUL/README-ja (この文章)
175
175
 
176
- === ulmul2xhtmlは消します
177
- 次のバージョン (0.6.x) からulmul2xhtmlは消します。
178
-
179
176
  == ulmul2mathjaxの使用方法
180
177
  数式を MathJax http://www.mathjax.org/ で出力します。
181
178
  $ ulmul2mathjax --help
@@ -193,11 +190,11 @@ ulmul2latexはまだ発展途上です。
193
190
  == 最新のソース・ツリーの入手方法
194
191
  ソース・ツリーはGitHubに置いてあります。
195
192
  git(1)コマンドを使って
196
- $ git clone git@github.com:t-nissie/ULMUL.git ulmul
193
+ $ git clone https://github.com/t-nissie/ULMUL.git ulmul
197
194
  と匿名でcloneできます。
198
195
 
199
196
  == 著作権表示
200
- Copyright © 2008,2009,2010,2011,2012,2013,2014,2015,2017,2022 by Takeshi Nishimatsu
197
+ Copyright © 2008,2009,2010,2011,2012,2013,2014,2015,2017,2022,2024 by Takeshi Nishimatsu
201
198
 
202
199
  ulmul.rb is distributed in the hope that
203
200
  it will be useful, but WITHOUT ANY WARRANTY.
data/Rakefile CHANGED
@@ -1,6 +1,5 @@
1
1
  #! /usr/bin/env rake
2
2
  # -*-Ruby-*-
3
- # Time-stamp: <2017-08-31 06:08:40 takeshi>
4
3
  # Author: Takeshi Nishimatsu
5
4
  ##
6
5
  $LOAD_PATH.unshift('lib')
@@ -30,11 +29,13 @@ end
30
29
  task :default => [ :test ]
31
30
 
32
31
  desc "Run the unit and functional tests"
33
- task :test
32
+ task :test => [ :illegallyIndentedAstariskLineInItemize,
33
+ :illegallyIndentedLineInItemize ]
34
34
  Rake::TestTask.new do |t|
35
35
  t.libs << 'lib' << 'test'
36
36
  t.pattern = 'test/**/*_test.rb'
37
37
  t.verbose = true
38
+ t.warning = false
38
39
  end
39
40
 
40
41
  # Rake::RDocTask.new do |rdoc|
@@ -79,3 +80,17 @@ file "README-en.tex" => ["bin/ulmul2latex", "README-en", "lib/ulmul.rb", "Rakefi
79
80
  -e 's/subs_/subs\\\\_/' -e 's/eim_/eim\\\\_/' -e 's/math_/math\\\\_/' -e 's/ulmul_/ulmul\\\\_/' \
80
81
  -e 's/t_nissie/t\\\\_nissie/' -e 's/\"\\\\Eq/\"$\\\\backslash$Eq/' -e 's/\"\\\\Fig/\"$\\\\backslash$Fig/' -e 's/\"\\\\Table/\"$\\\\backslash$Table/' -e 's/\"\\\\Code/\"$\\\\backslash$Code/' > #{t.name}"
81
82
  end
83
+
84
+ desc "Illegally indented astarisk line in itemize"
85
+ task :illegallyIndentedAstariskLineInItemize =>
86
+ ["bin/ulmul2html5", "test/itemize-astarisk-error.ulmul", "lib/ulmul.rb", "Rakefile"] do |t|
87
+ sh "ruby -I lib #{t.prerequisites[0]} #{t.prerequisites[1]} 2>&1 |\
88
+ grep --color '#{t.prerequisites[1]}:9: Illegally indented astarisk line in itemize:'"
89
+ end
90
+
91
+ desc "Illegally indented line in itemize"
92
+ task :illegallyIndentedLineInItemize =>
93
+ ["bin/ulmul2html5", "test/itemize-indent-error.ulmul", "lib/ulmul.rb", "Rakefile"] do |t|
94
+ sh "ruby -I lib #{t.prerequisites[0]} #{t.prerequisites[1]} 2>&1 |\
95
+ grep --color '#{t.prerequisites[1]}:15: Illegally indented line in itemize:'"
96
+ end
data/index.en.html CHANGED
@@ -54,14 +54,13 @@ Table of Contents:
54
54
  <li><a href="#LABEL-19">Examples</a></li>
55
55
  <li><a href="#LABEL-20">Command options</a></li>
56
56
  <li><a href="#LABEL-27">ULMUL and Slidy examples</a></li>
57
- <li><a href="#LABEL-28">ulmul2xhtml is obsolete</a></li>
58
57
  </ul></li>
59
- <li><a href="#LABEL-29">Usage of ulmul2mathjax</a></li>
60
- <li><a href="#LABEL-30">Usage of ulmul2latex</a></li>
61
- <li><a href="#LABEL-31">TODO</a></li>
62
- <li><a href="#LABEL-32">Repository in GitHub</a></li>
63
- <li><a href="#LABEL-33">Copying</a></li>
64
- <li><a href="#LABEL-34">Author of ULMUL</a></li>
58
+ <li><a href="#LABEL-28">Usage of ulmul2mathjax</a></li>
59
+ <li><a href="#LABEL-29">Usage of ulmul2latex</a></li>
60
+ <li><a href="#LABEL-30">TODO</a></li>
61
+ <li><a href="#LABEL-31">Repository in GitHub</a></li>
62
+ <li><a href="#LABEL-32">Copying</a></li>
63
+ <li><a href="#LABEL-33">Author of ULMUL</a></li>
65
64
  </ul>
66
65
  </div>
67
66
 
@@ -126,6 +125,7 @@ Starting with "= ", "== ", "=== ", "==== ", "===== ", and "====== ".
126
125
  <h4 id="LABEL-8">asterisk</h4>
127
126
  <p>
128
127
  Lines starting with asterisks become itemizing list.
128
+ Indent lines by two characters.
129
129
  For example,
130
130
  </p>
131
131
  <pre>
@@ -353,15 +353,11 @@ If you do not need the Table of Contents, specify 1.
353
353
  <li>Its source is <a href="http://t-nissie.users.sourceforge.net/ULMUL/README-en">http://t-nissie.users.sourceforge.net/ULMUL/README-en</a> (this document)</li>
354
354
  </ul></li>
355
355
  </ul>
356
- <h3 id="LABEL-28">ulmul2xhtml is obsolete</h3>
357
- <p>
358
- ulmul2xhtml will be removed from next version 0.6.x.
359
- </p>
360
356
  </div>
361
357
 
362
358
 
363
359
  <div class="slide">
364
- <h2 id="LABEL-29">Usage of ulmul2mathjax</h2>
360
+ <h2 id="LABEL-28">Usage of ulmul2mathjax</h2>
365
361
  <p>
366
362
  It uses MathJax <a href="http://www.mathjax.org/">http://www.mathjax.org/</a> to show equations.
367
363
  </p>
@@ -374,7 +370,7 @@ $ ulmul2mathjax -s ulmul2html5.css -j https://cdn.rawgit.com/google/code-prettif
374
370
 
375
371
 
376
372
  <div class="slide">
377
- <h2 id="LABEL-30">Usage of ulmul2latex</h2>
373
+ <h2 id="LABEL-29">Usage of ulmul2latex</h2>
378
374
  <pre>
379
375
  $ ulmul2latex --help
380
376
  $ ulmul2latex test.ulmul | tee test.tex
@@ -389,7 +385,7 @@ ulmul2latex is still under development. Sorry.
389
385
 
390
386
 
391
387
  <div class="slide">
392
- <h2 id="LABEL-31">TODO</h2>
388
+ <h2 id="LABEL-30">TODO</h2>
393
389
 
394
390
  <ul>
395
391
  <li>More useful error messages for syntax errors.</li>
@@ -404,20 +400,20 @@ For more, see TODO file.
404
400
 
405
401
 
406
402
  <div class="slide">
407
- <h2 id="LABEL-32">Repository in GitHub</h2>
403
+ <h2 id="LABEL-31">Repository in GitHub</h2>
408
404
  <p>
409
405
  You can clone the source tree of ULMUL from GitHub with git(1) command:
410
406
  </p>
411
407
  <pre>
412
- $ git clone git@github.com:t-nissie/ULMUL.git ulmul
408
+ $ git clone https://github.com/t-nissie/ULMUL.git ulmul
413
409
  </pre>
414
410
  </div>
415
411
 
416
412
 
417
413
  <div class="slide">
418
- <h2 id="LABEL-33">Copying</h2>
414
+ <h2 id="LABEL-32">Copying</h2>
419
415
  <p>
420
- Copyright © 2008,2009,2010,2011,2012,2013,2014,2015,2017,2022 by Takeshi Nishimatsu
416
+ Copyright © 2008,2009,2010,2011,2012,2013,2014,2015,2017,2022,2024 by Takeshi Nishimatsu
421
417
  </p>
422
418
  <p>
423
419
  ulmul.rb is distributed in the hope that
@@ -439,7 +435,7 @@ and <a href="http://www.w3.org/Consortium/Legal/copyright-software">http://www.w
439
435
 
440
436
 
441
437
  <div class="slide">
442
- <h2 id="LABEL-34">Author of ULMUL</h2>
438
+ <h2 id="LABEL-33">Author of ULMUL</h2>
443
439
  <p>
444
440
  Takeshi Nishimatsu (t_nissie{at}yahoo.co.jp) <a href="http://t-nissie.users.sourceforge.net/">http://t-nissie.users.sourceforge.net/</a>
445
441
  </p>
data/index.ja.html CHANGED
@@ -54,13 +54,12 @@ Table of Contents:
54
54
  <li><a href="#LABEL-19">例</a></li>
55
55
  <li><a href="#LABEL-20">コマンド・ライン・オプション</a></li>
56
56
  <li><a href="#LABEL-27">実際の使用例</a></li>
57
- <li><a href="#LABEL-28">ulmul2xhtmlは消します</a></li>
58
57
  </ul></li>
59
- <li><a href="#LABEL-29">ulmul2mathjaxの使用方法</a></li>
60
- <li><a href="#LABEL-30">ulmul2latexの使用方法</a></li>
61
- <li><a href="#LABEL-31">最新のソース・ツリーの入手方法</a></li>
62
- <li><a href="#LABEL-32">著作権表示</a></li>
63
- <li><a href="#LABEL-33">作者</a></li>
58
+ <li><a href="#LABEL-28">ulmul2mathjaxの使用方法</a></li>
59
+ <li><a href="#LABEL-29">ulmul2latexの使用方法</a></li>
60
+ <li><a href="#LABEL-30">最新のソース・ツリーの入手方法</a></li>
61
+ <li><a href="#LABEL-31">著作権表示</a></li>
62
+ <li><a href="#LABEL-32">作者</a></li>
64
63
  </ul>
65
64
  </div>
66
65
 
@@ -124,7 +123,7 @@ ulmul.rbは状態遷移 (state machine) ライブラリaasmを使っていて、
124
123
  </p>
125
124
  <h4 id="LABEL-8">アスタリスクで始まる行は箇条書きになります (asterisk)</h4>
126
125
  <p>
127
- 4〜5段までネストした箇条書きが可能です:
126
+ 2文字づつインデントして、4〜5段までネストした箇条書きが可能です:
128
127
  たとえば、
129
128
  </p>
130
129
  <pre>
@@ -336,15 +335,11 @@ JavaScriptのファイル名を指定します。
336
335
  <li>ソースは <a href="http://t-nissie.users.sourceforge.net/ULMUL/README-ja">http://t-nissie.users.sourceforge.net/ULMUL/README-ja</a> (この文章)</li>
337
336
  </ul></li>
338
337
  </ul>
339
- <h3 id="LABEL-28">ulmul2xhtmlは消します</h3>
340
- <p>
341
- 次のバージョン (0.6.x) からulmul2xhtmlは消します。
342
- </p>
343
338
  </div>
344
339
 
345
340
 
346
341
  <div class="slide">
347
- <h2 id="LABEL-29">ulmul2mathjaxの使用方法</h2>
342
+ <h2 id="LABEL-28">ulmul2mathjaxの使用方法</h2>
348
343
  <p>
349
344
  数式を MathJax <a href="http://www.mathjax.org/">http://www.mathjax.org/</a> で出力します。
350
345
  </p>
@@ -357,7 +352,7 @@ $ ulmul2mathjax -s ulmul2html5.css -j https://cdn.rawgit.com/google/code-prettif
357
352
 
358
353
 
359
354
  <div class="slide">
360
- <h2 id="LABEL-30">ulmul2latexの使用方法</h2>
355
+ <h2 id="LABEL-29">ulmul2latexの使用方法</h2>
361
356
  <pre>
362
357
  $ ulmul2latex --help
363
358
  $ ulmul2latex test.ulmul | tee test.tex
@@ -372,13 +367,13 @@ ulmul2latexはまだ発展途上です。
372
367
 
373
368
 
374
369
  <div class="slide">
375
- <h2 id="LABEL-31">最新のソース・ツリーの入手方法</h2>
370
+ <h2 id="LABEL-30">最新のソース・ツリーの入手方法</h2>
376
371
  <p>
377
372
  ソース・ツリーはGitHubに置いてあります。
378
373
  git(1)コマンドを使って
379
374
  </p>
380
375
  <pre>
381
- $ git clone git@github.com:t-nissie/ULMUL.git ulmul
376
+ $ git clone https://github.com/t-nissie/ULMUL.git ulmul
382
377
  </pre>
383
378
  <p>
384
379
  と匿名でcloneできます。
@@ -387,9 +382,9 @@ $ git clone git@github.com:t-nissie/ULMUL.git ulmul
387
382
 
388
383
 
389
384
  <div class="slide">
390
- <h2 id="LABEL-32">著作権表示</h2>
385
+ <h2 id="LABEL-31">著作権表示</h2>
391
386
  <p>
392
- Copyright © 2008,2009,2010,2011,2012,2013,2014,2015,2017,2022 by Takeshi Nishimatsu
387
+ Copyright © 2008,2009,2010,2011,2012,2013,2014,2015,2017,2022,2024 by Takeshi Nishimatsu
393
388
  </p>
394
389
  <p>
395
390
  ulmul.rb is distributed in the hope that
@@ -411,7 +406,7 @@ and <a href="http://www.w3.org/Consortium/Legal/copyright-software">http://www.w
411
406
 
412
407
 
413
408
  <div class="slide">
414
- <h2 id="LABEL-33">作者</h2>
409
+ <h2 id="LABEL-32">作者</h2>
415
410
  <p>
416
411
  西松タケシ (t_nissie{at}yahoo.co.jp) <a href="http://t-nissie.users.sourceforge.net/">http://t-nissie.users.sourceforge.net/</a>
417
412
  </p>
data/lib/ulmul.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # -*- coding: utf-8 -*-
3
3
  # ulmul.rb
4
- # Time-stamp: <2022-07-13 07:03:30 takeshi>
5
4
  # Author: Takeshi Nishimatsu
6
5
  ##
7
6
  require "rubygems"
@@ -26,7 +25,10 @@ module Itemize
26
25
  when /^ \* (.*)/ then 3
27
26
  when /^ \* (.*)/ then 4
28
27
  when /^ \* (.*)/ then 5
29
- else raise 'Illegal astarisk line for itemize'
28
+ else
29
+ STDERR << filename << ":" << lnumber <<
30
+ ": Illegally indented astarisk line in itemize: \"#{line.chomp}\"\n"
31
+ raise 'Illegally indented astarisk line in itemize'
30
32
  end
31
33
  str = @subs_rules.call(Regexp.last_match[1])
32
34
  if new_level>@level_of_state+1
@@ -54,7 +56,10 @@ module Itemize
54
56
  when /^ (\S.*)/ then 3
55
57
  when /^ (\S.*)/ then 4
56
58
  when /^ (\S.*)/ then 5
57
- else raise 'Illegal astarisk line for itemize'
59
+ else
60
+ STDERR << filename << ":" << lnumber <<
61
+ ": Illegally indented line in itemize: \"#{line.chomp}\"\n"
62
+ raise 'Illegally indented line in itemize'
58
63
  end
59
64
  str = @subs_rules.call(Regexp.last_match[1])
60
65
  (@level_of_state-1).downto(new_level){|i| @body << ITEM_TERMINATOR << "\n" << " "*i << ITEMIZE_TERMINATOR}
@@ -83,7 +88,7 @@ end
83
88
  class Ulmul
84
89
  include AASM
85
90
  include Itemize
86
- VERSION = '0.6.0'
91
+ VERSION = '0.7.1'
87
92
 
88
93
  aasm.initial_state :st_ground
89
94
 
@@ -351,9 +356,12 @@ module HTML
351
356
  @body << "<p id=\"#{@env_label}\" class=\"code caption\">\n"
352
357
  @body << " Code #{@codes.length}: " << @subs_rules.call(@env_caption) << "(download: <a href=\"#{@env_file}\">#{File.basename(@env_file)}</a>)" << "</p>\n"
353
358
  @body << "<pre class=\"prettyprint\">\n"
354
- f = open(@env_file)
355
- @body << f.read.gsub(/&/,'&amp;').gsub(/</,'&lt;').gsub(/>/,'&gt;')
356
- f.close
359
+ begin
360
+ open(@env_file){|f| @body << f.read.gsub(/&/,'&amp;').gsub(/</,'&lt;').gsub(/>/,'&gt;')}
361
+ rescue Errno::ENOENT => ex
362
+ STDERR << ex << "\n"
363
+ exit 1
364
+ end
357
365
  @body << "</pre>\n"
358
366
  end
359
367
 
@@ -477,8 +485,13 @@ module LaTeX
477
485
  def cb_env_end2()
478
486
  case @env_label
479
487
  when /^Fig:/
480
- width = EXIFR::JPEG.new(@env_file).width
481
- height = EXIFR::JPEG.new(@env_file).height
488
+ begin
489
+ width = EXIFR::JPEG.new(@env_file).width
490
+ height = EXIFR::JPEG.new(@env_file).height
491
+ rescue Errno::ENOENT => ex
492
+ STDERR << ex << "\n"
493
+ exit 1
494
+ end
482
495
  @body << "\\begin{figure}\n" << " \\center\n \\includegraphics[width=5cm,bb=0 0 #{width} #{height}]{#{@env_file}}\n"
483
496
  @body << ' \caption{' << @subs_rules.call(@env_caption).strip << "}\n"
484
497
  @body << " \\label{#{@env_label}}\n" << "\\end{figure}\n"
@@ -491,9 +504,12 @@ module LaTeX
491
504
  @body << "\\end{table}\n"
492
505
  when /^Code:/
493
506
  @body << "\\begin{lstlisting}[caption={#{@subs_rules.call(@env_caption).strip}},label=#{@env_label}]\n"
494
- f = open(@env_file)
495
- @body << f.read
496
- f.close
507
+ begin
508
+ open(@env_file){|f| @body << f.read}
509
+ rescue Errno::ENOENT => ex
510
+ STDERR << ex << "\n"
511
+ exit 1
512
+ end
497
513
  @body << "\\end{lstlisting}\n"
498
514
  end
499
515
  end
data/ulmul.gemspec CHANGED
@@ -1,13 +1,11 @@
1
1
  # ulmul.gemspec -*-ruby-*-
2
- # Time-stamp: <2022-07-13 06:53:14 takeshi>
3
2
  # Author: Takeshi Nishimatsu
4
3
  ##
5
4
  Gem::Specification.new do |s|
6
5
  s.name = 'ulmul'
7
6
 
8
7
  s.bindir = 'bin'
9
- s.executables = ['ulmul2html5', 'ulmul2xhtml', 'ulmul2latex', 'ulmul2mathjax']
10
- s.default_executable= 'ulmul2html5'
8
+ s.executables = ['ulmul2html5', 'ulmul2latex', 'ulmul2mathjax']
11
9
 
12
10
  s.summary = 'ULMUL is an Ultra Lightweight Mark-Up Language'
13
11
  s.files = ['lib/ulmul.rb', 'test/unit/ulmul_test.rb',
@@ -26,16 +24,16 @@ Gem::Specification.new do |s|
26
24
  'ulmul-slidy.css']
27
25
  s.author = 'Takeshi Nishimatsu'
28
26
  s.email = 't_nissie@yahoo.co.jp'
29
- s.license = 'GPLv3'
27
+ s.license = 'GPL-3.0-only'
30
28
  s.homepage = 'http://t-nissie.users.sourceforge.net/ULMUL/'
31
29
  s.test_files = ['test/unit/ulmul_test.rb']
30
+ s.required_ruby_version = '>= 3.2.0'
32
31
 
33
- s.has_rdoc = true
34
32
  # s.extra_rdoc_files = %w(README)
35
33
 
36
- s.add_dependency('math_ml', '~> 0.14')
37
- s.add_dependency('aasm', '~> 5.2', '>= 5.2.0')
38
- s.add_dependency('exifr', '~> 1.3', '>= 1.3.9')
34
+ s.add_dependency('math_ml', "~> 1.0", '>= 1.0.0')
35
+ s.add_dependency('aasm', "~> 5.5", '>= 5.5.0')
36
+ s.add_dependency('exifr', "~> 1.4", '>= 1.4.0')
39
37
 
40
38
  s.description = <<-EOF
41
39
  ULMUL is an original Ultra Lightweight MarkUp Language.
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ulmul
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takeshi Nishimatsu
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2022-07-13 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: math_ml
@@ -16,54 +15,60 @@ dependencies:
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: '0.14'
18
+ version: '1.0'
19
+ - - ">="
20
+ - !ruby/object:Gem::Version
21
+ version: 1.0.0
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
23
25
  requirements:
24
26
  - - "~>"
25
27
  - !ruby/object:Gem::Version
26
- version: '0.14'
28
+ version: '1.0'
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: 1.0.0
27
32
  - !ruby/object:Gem::Dependency
28
33
  name: aasm
29
34
  requirement: !ruby/object:Gem::Requirement
30
35
  requirements:
31
36
  - - "~>"
32
37
  - !ruby/object:Gem::Version
33
- version: '5.2'
38
+ version: '5.5'
34
39
  - - ">="
35
40
  - !ruby/object:Gem::Version
36
- version: 5.2.0
41
+ version: 5.5.0
37
42
  type: :runtime
38
43
  prerelease: false
39
44
  version_requirements: !ruby/object:Gem::Requirement
40
45
  requirements:
41
46
  - - "~>"
42
47
  - !ruby/object:Gem::Version
43
- version: '5.2'
48
+ version: '5.5'
44
49
  - - ">="
45
50
  - !ruby/object:Gem::Version
46
- version: 5.2.0
51
+ version: 5.5.0
47
52
  - !ruby/object:Gem::Dependency
48
53
  name: exifr
49
54
  requirement: !ruby/object:Gem::Requirement
50
55
  requirements:
51
56
  - - "~>"
52
57
  - !ruby/object:Gem::Version
53
- version: '1.3'
58
+ version: '1.4'
54
59
  - - ">="
55
60
  - !ruby/object:Gem::Version
56
- version: 1.3.9
61
+ version: 1.4.0
57
62
  type: :runtime
58
63
  prerelease: false
59
64
  version_requirements: !ruby/object:Gem::Requirement
60
65
  requirements:
61
66
  - - "~>"
62
67
  - !ruby/object:Gem::Version
63
- version: '1.3'
68
+ version: '1.4'
64
69
  - - ">="
65
70
  - !ruby/object:Gem::Version
66
- version: 1.3.9
71
+ version: 1.4.0
67
72
  description: |2
68
73
  ULMUL is an original Ultra Lightweight MarkUp Language.
69
74
  You can write TeX-style equations in ULMUL texts.
@@ -76,7 +81,6 @@ description: |2
76
81
  email: t_nissie@yahoo.co.jp
77
82
  executables:
78
83
  - ulmul2html5
79
- - ulmul2xhtml
80
84
  - ulmul2latex
81
85
  - ulmul2mathjax
82
86
  extensions: []
@@ -91,7 +95,6 @@ files:
91
95
  - bin/ulmul2html5
92
96
  - bin/ulmul2latex
93
97
  - bin/ulmul2mathjax
94
- - bin/ulmul2xhtml
95
98
  - favicon.ico
96
99
  - hello.c
97
100
  - index.en.html
@@ -109,9 +112,8 @@ files:
109
112
  - ulmul2xhtml.css
110
113
  homepage: http://t-nissie.users.sourceforge.net/ULMUL/
111
114
  licenses:
112
- - GPLv3
115
+ - GPL-3.0-only
113
116
  metadata: {}
114
- post_install_message:
115
117
  rdoc_options: []
116
118
  require_paths:
117
119
  - lib
@@ -119,15 +121,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
121
  requirements:
120
122
  - - ">="
121
123
  - !ruby/object:Gem::Version
122
- version: '0'
124
+ version: 3.2.0
123
125
  required_rubygems_version: !ruby/object:Gem::Requirement
124
126
  requirements:
125
127
  - - ">="
126
128
  - !ruby/object:Gem::Version
127
129
  version: '0'
128
130
  requirements: []
129
- rubygems_version: 3.3.7
130
- signing_key:
131
+ rubygems_version: 3.6.9
131
132
  specification_version: 4
132
133
  summary: ULMUL is an Ultra Lightweight Mark-Up Language
133
134
  test_files:
data/bin/ulmul2xhtml DELETED
@@ -1,18 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # ulmul2xhtml
3
- # Time-stamp: <2011-03-31 19:29:32 takeshi>
4
- # Author: Takeshi Nishimatsu
5
- ##
6
- =begin
7
- = ulmul2xhtml
8
- == Usage
9
- === Examples
10
- % ulmul2xhtml foo.txt
11
- % ulmul2xhtml --style=style.css --name="John Smith" foo.ulmul > foo.html
12
- % ulmul2xhtml --style=ulmul-slidy.css --javascript=ulmul-slidy.js \
13
- --name="Takeshi Nishimatsu" presentation.txt > presentation.xhtml
14
- =end
15
- require "ulmul"
16
- # Local variables:
17
- # compile-command: "ruby -I ../lib ulmul2xhtml -s ../ulmul2xhtml.css -s ../google-code-prettify/src/prettify.css -j ../google-code-prettify/src/prettify.js ../lib/test.ulmul | tee test.html"
18
- # End: