math_ml 0.11 → 0.12.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/Rakefile.utirake +19 -1
- data/spec/util.rb +7 -2
- metadata +16 -15
data/Rakefile
CHANGED
data/Rakefile.utirake
CHANGED
@@ -5,10 +5,22 @@
|
|
5
5
|
|
6
6
|
require "rake/clean"
|
7
7
|
require "rake/testtask"
|
8
|
-
require "rdoc/task"
|
9
8
|
require "rake/contrib/rubyforgepublisher"
|
10
9
|
require "rubygems/package_task"
|
11
10
|
|
11
|
+
if File.exist?("Gemfile")
|
12
|
+
begin
|
13
|
+
require "bundler"
|
14
|
+
Bundler.setup
|
15
|
+
rescue LoadError
|
16
|
+
if $!.message =~ / bundler\z/
|
17
|
+
warn "Warning: Bundler is not found."
|
18
|
+
else
|
19
|
+
raise
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
12
24
|
class UtiRake
|
13
25
|
include Rake::DSL
|
14
26
|
|
@@ -157,6 +169,12 @@ class UtiRake
|
|
157
169
|
def external?; @external; end
|
158
170
|
|
159
171
|
def define_rdoc_task
|
172
|
+
begin
|
173
|
+
require "rdoc/task"
|
174
|
+
rescue LoadError
|
175
|
+
return
|
176
|
+
end
|
177
|
+
|
160
178
|
Rake::RDocTask.new(:rdoc) do |rdoc|
|
161
179
|
rdoc.options << "-S"
|
162
180
|
rdoc.options << "-w" << "3"
|
data/spec/util.rb
CHANGED
@@ -3,7 +3,12 @@ module MathML
|
|
3
3
|
module Spec
|
4
4
|
module Util
|
5
5
|
def raise_parse_error(message, done, rest)
|
6
|
-
|
6
|
+
begin
|
7
|
+
matcher_class = RSpec::Matchers::DSL::Matcher
|
8
|
+
rescue NameError
|
9
|
+
matcher_class = RSpec::Matchers::Matcher
|
10
|
+
end
|
11
|
+
matcher_class.new(:raise_parse_error){
|
7
12
|
match do |given|
|
8
13
|
begin
|
9
14
|
given.call
|
@@ -14,7 +19,7 @@ module MathML
|
|
14
19
|
@error.is_a?(MathML::LaTeX::ParseError) &&
|
15
20
|
[@error.message, @error.done, @error.rest] == [message, done, rest]
|
16
21
|
end
|
17
|
-
|
22
|
+
}.for_expected
|
18
23
|
end
|
19
24
|
|
20
25
|
def new_parser
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: math_ml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 43
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
|
8
|
+
- 12
|
9
|
+
- 2
|
10
|
+
version: 0.12.2
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- KURODA Hiraku
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date:
|
18
|
+
date: 2012-03-25 00:00:00 Z
|
18
19
|
dependencies:
|
19
20
|
- !ruby/object:Gem::Dependency
|
20
21
|
name: eim_xml
|
@@ -39,26 +40,26 @@ extensions: []
|
|
39
40
|
extra_rdoc_files: []
|
40
41
|
|
41
42
|
files:
|
42
|
-
- Rakefile.utirake
|
43
43
|
- Rakefile
|
44
|
-
-
|
44
|
+
- Rakefile.utirake
|
45
45
|
- lib/math_ml/string.rb
|
46
|
+
- lib/math_ml/element.rb
|
47
|
+
- lib/math_ml/latex/builtin.rb
|
48
|
+
- lib/math_ml/latex/builtin/symbol.rb
|
46
49
|
- lib/math_ml/util.rb
|
47
|
-
- lib/math_ml/symbol/entity_reference.rb
|
48
50
|
- lib/math_ml/symbol/utf8.rb
|
49
51
|
- lib/math_ml/symbol/character_reference.rb
|
50
|
-
- lib/math_ml/
|
51
|
-
- lib/math_ml/latex/builtin.rb
|
52
|
+
- lib/math_ml/symbol/entity_reference.rb
|
52
53
|
- lib/math_ml/latex.rb
|
53
|
-
- lib/math_ml
|
54
|
-
- spec/util.rb
|
54
|
+
- lib/math_ml.rb
|
55
55
|
- spec/math_ml_spec.rb
|
56
|
-
- spec/
|
57
|
-
- spec/math_ml/string_spec.rb
|
58
|
-
- spec/math_ml/latex/scanner_spec.rb
|
56
|
+
- spec/util.rb
|
59
57
|
- spec/math_ml/latex/parser_spec.rb
|
58
|
+
- spec/math_ml/latex/scanner_spec.rb
|
60
59
|
- spec/math_ml/latex/macro_spec.rb
|
60
|
+
- spec/math_ml/string_spec.rb
|
61
61
|
- spec/math_ml/util_spec.rb
|
62
|
+
- spec/math_ml/element_spec.rb
|
62
63
|
homepage: http://mathml.rubyforge.org/
|
63
64
|
licenses: []
|
64
65
|
|
@@ -90,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
91
|
requirements: []
|
91
92
|
|
92
93
|
rubyforge_project: mathml
|
93
|
-
rubygems_version: 1.8.
|
94
|
+
rubygems_version: 1.8.18
|
94
95
|
signing_key:
|
95
96
|
specification_version: 3
|
96
97
|
summary: MathML Library
|