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 +4 -4
- data/Changes +6 -0
- data/README-en +1 -0
- data/README-ja +1 -1
- data/Rakefile +16 -1
- data/index.en.html +1 -0
- data/index.ja.html +1 -1
- data/lib/ulmul.rb +9 -3
- data/ulmul.gemspec +2 -1
- metadata +5 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '095bd3f2da63df1635c462cf78b8b8e6f6b1fd656062aaec0ab60467c8051933'
|
4
|
+
data.tar.gz: 9f4cbec0d9c56aac924d8631ea7e9dfd4fb342ce4fd67e72c6a82de91b44fdb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 700bd2fa3810f1d9a03e4ec076bd4922a6e915444deb7b07e5200e122684dad59b0fa0b793cbbf3da81523504bcc1c1d130fdd4a60c42606048defce9f5e5e6b
|
7
|
+
data.tar.gz: c85fcb3715f8123641343f2f52397554a06a72e97cbdf973e61ffbc017d441d74090a12fa1339b2c6c66f71fe91ee1b70bf3bfbf0b532d2b8ca4374f56c9f5fe
|
data/Changes
CHANGED
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
|
-
|
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
data/index.ja.html
CHANGED
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
|
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
|
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.
|
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 = '
|
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.
|
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:
|
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
|
-
-
|
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:
|
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.
|
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:
|