ulmul 0.7.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: 9469aef4ee259ab561a295f22afb77330c35b3ef04039e02b7fd1358173c624a
4
- data.tar.gz: 5482744fa00f4c6dce080ef33e16cd3694249862d7f03d69d380c0ce8054f784
3
+ metadata.gz: '095bd3f2da63df1635c462cf78b8b8e6f6b1fd656062aaec0ab60467c8051933'
4
+ data.tar.gz: 9f4cbec0d9c56aac924d8631ea7e9dfd4fb342ce4fd67e72c6a82de91b44fdb7
5
5
  SHA512:
6
- metadata.gz: 6d34b32788ab26251dfa22778fc661d8958c47bd7de43dc9761ae34324e39cbffb822d000b25273438aa68f339d7291bf57abcc393df188bbdb1e570e5f222ef
7
- data.tar.gz: 7af15b88c56bfe38b1ac6d6ed413569698cea5223521591be6e4e3cbb82901649ca01ba9ecf528b9d995e6d92170a3aa9f8254a37492a9dfa2b222f12caf139e
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
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
data/Rakefile CHANGED
@@ -29,7 +29,8 @@ end
29
29
  task :default => [ :test ]
30
30
 
31
31
  desc "Run the unit and functional tests"
32
- task :test
32
+ task :test => [ :illegallyIndentedAstariskLineInItemize,
33
+ :illegallyIndentedLineInItemize ]
33
34
  Rake::TestTask.new do |t|
34
35
  t.libs << 'lib' << 'test'
35
36
  t.pattern = 'test/**/*_test.rb'
@@ -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
@@ -125,6 +125,7 @@ Starting with "= ", "== ", "=== ", "==== ", "===== ", and "====== ".
125
125
  <h4 id="LABEL-8">asterisk</h4>
126
126
  <p>
127
127
  Lines starting with asterisks become itemizing list.
128
+ Indent lines by two characters.
128
129
  For example,
129
130
  </p>
130
131
  <pre>
data/index.ja.html CHANGED
@@ -123,7 +123,7 @@ ulmul.rbは状態遷移 (state machine) ライブラリaasmを使っていて、
123
123
  </p>
124
124
  <h4 id="LABEL-8">アスタリスクで始まる行は箇条書きになります (asterisk)</h4>
125
125
  <p>
126
- 4〜5段までネストした箇条書きが可能です:
126
+ 2文字づつインデントして、4〜5段までネストした箇条書きが可能です:
127
127
  たとえば、
128
128
  </p>
129
129
  <pre>
data/lib/ulmul.rb CHANGED
@@ -25,7 +25,10 @@ module Itemize
25
25
  when /^ \* (.*)/ then 3
26
26
  when /^ \* (.*)/ then 4
27
27
  when /^ \* (.*)/ then 5
28
- 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'
29
32
  end
30
33
  str = @subs_rules.call(Regexp.last_match[1])
31
34
  if new_level>@level_of_state+1
@@ -53,7 +56,10 @@ module Itemize
53
56
  when /^ (\S.*)/ then 3
54
57
  when /^ (\S.*)/ then 4
55
58
  when /^ (\S.*)/ then 5
56
- 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'
57
63
  end
58
64
  str = @subs_rules.call(Regexp.last_match[1])
59
65
  (@level_of_state-1).downto(new_level){|i| @body << ITEM_TERMINATOR << "\n" << " "*i << ITEMIZE_TERMINATOR}
@@ -82,7 +88,7 @@ end
82
88
  class Ulmul
83
89
  include AASM
84
90
  include Itemize
85
- VERSION = '0.7.0'
91
+ VERSION = '0.7.1'
86
92
 
87
93
  aasm.initial_state :st_ground
88
94
 
data/ulmul.gemspec CHANGED
@@ -24,9 +24,10 @@ Gem::Specification.new do |s|
24
24
  'ulmul-slidy.css']
25
25
  s.author = 'Takeshi Nishimatsu'
26
26
  s.email = 't_nissie@yahoo.co.jp'
27
- s.license = 'GPLv3'
27
+ s.license = 'GPL-3.0-only'
28
28
  s.homepage = 'http://t-nissie.users.sourceforge.net/ULMUL/'
29
29
  s.test_files = ['test/unit/ulmul_test.rb']
30
+ s.required_ruby_version = '>= 3.2.0'
30
31
 
31
32
  # s.extra_rdoc_files = %w(README)
32
33
 
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.7.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: 2024-08-04 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
@@ -113,9 +112,8 @@ files:
113
112
  - ulmul2xhtml.css
114
113
  homepage: http://t-nissie.users.sourceforge.net/ULMUL/
115
114
  licenses:
116
- - GPLv3
115
+ - GPL-3.0-only
117
116
  metadata: {}
118
- post_install_message:
119
117
  rdoc_options: []
120
118
  require_paths:
121
119
  - lib
@@ -123,15 +121,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
121
  requirements:
124
122
  - - ">="
125
123
  - !ruby/object:Gem::Version
126
- version: '0'
124
+ version: 3.2.0
127
125
  required_rubygems_version: !ruby/object:Gem::Requirement
128
126
  requirements:
129
127
  - - ">="
130
128
  - !ruby/object:Gem::Version
131
129
  version: '0'
132
130
  requirements: []
133
- rubygems_version: 3.5.10
134
- signing_key:
131
+ rubygems_version: 3.6.9
135
132
  specification_version: 4
136
133
  summary: ULMUL is an Ultra Lightweight Mark-Up Language
137
134
  test_files: