RbST 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +4 -3
- data/Gemfile.lock +26 -22
- data/README.markdown +1 -1
- data/Rakefile +1 -15
- data/RbST.gemspec +2 -7
- data/lib/rbst.rb +13 -13
- data/lib/rst2parts/rst2latex.py +0 -1
- data/lib/rst2parts/transform.py +7 -7
- data/test/files/test.latex +13 -13
- data/test/files/test.rst +1 -1
- data/test/helper.rb +3 -2
- data/test/test_rbst.rb +10 -10
- metadata +13 -41
- data/VERSION +0 -1
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 0280eb7dba5780504efdeaa0669e8050a20a6cec
|
4
|
+
data.tar.gz: 3d550b0ff2e56e6af1b53417e96fb3be3e0c70b1
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e9423d17d8c6feb9ba003f6c0eba0ea2fc374b2c155a6e7a8d73be15ff1d4e062394a73492b50dfaa34da5d5f920bfd3fbfa3d1afbd7e0240bffabf64db233e4
|
7
|
+
data.tar.gz: 83584b9acd84d67710169af5a3fcb9fe909055d29be054fc26c2c00a916c4276203b734d9cd9ac6e3a00f033f2f7f6c92212a2805381362feea9120f5139c7bd
|
data/Gemfile
CHANGED
@@ -6,8 +6,9 @@ source "http://rubygems.org"
|
|
6
6
|
# Add dependencies to develop your gem here.
|
7
7
|
# Include everything needed to run rake, tests, features, etc.
|
8
8
|
group :development, :test do
|
9
|
-
gem "
|
10
|
-
gem "mocha", ">= 0"
|
9
|
+
gem "mocha"
|
11
10
|
gem "rdoc", "~> 3.12"
|
12
|
-
gem "
|
11
|
+
gem "rake"
|
12
|
+
gem "shoulda"
|
13
|
+
gem "test-unit"
|
13
14
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,36 +1,40 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
activesupport (
|
5
|
-
i18n (~> 0.
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
metaclass (0.0.1)
|
16
|
-
mocha (0.12.7)
|
4
|
+
activesupport (4.2.0)
|
5
|
+
i18n (~> 0.7)
|
6
|
+
json (~> 1.7, >= 1.7.7)
|
7
|
+
minitest (~> 5.1)
|
8
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
9
|
+
tzinfo (~> 1.1)
|
10
|
+
i18n (0.7.0)
|
11
|
+
json (1.8.2)
|
12
|
+
metaclass (0.0.4)
|
13
|
+
minitest (5.5.1)
|
14
|
+
mocha (1.1.0)
|
17
15
|
metaclass (~> 0.0.1)
|
18
|
-
|
19
|
-
rake (
|
20
|
-
rdoc (3.12)
|
16
|
+
power_assert (0.2.2)
|
17
|
+
rake (10.4.2)
|
18
|
+
rdoc (3.12.2)
|
21
19
|
json (~> 1.4)
|
22
|
-
shoulda (3.
|
23
|
-
shoulda-context (~> 1.0)
|
24
|
-
shoulda-matchers (
|
25
|
-
shoulda-context (1.
|
26
|
-
shoulda-matchers (
|
20
|
+
shoulda (3.5.0)
|
21
|
+
shoulda-context (~> 1.0, >= 1.0.1)
|
22
|
+
shoulda-matchers (>= 1.4.1, < 3.0)
|
23
|
+
shoulda-context (1.2.1)
|
24
|
+
shoulda-matchers (2.8.0)
|
27
25
|
activesupport (>= 3.0.0)
|
26
|
+
test-unit (3.0.9)
|
27
|
+
power_assert
|
28
|
+
thread_safe (0.3.4)
|
29
|
+
tzinfo (1.2.2)
|
30
|
+
thread_safe (~> 0.1)
|
28
31
|
|
29
32
|
PLATFORMS
|
30
33
|
ruby
|
31
34
|
|
32
35
|
DEPENDENCIES
|
33
|
-
jeweler (~> 1.8.4)
|
34
36
|
mocha
|
37
|
+
rake
|
35
38
|
rdoc (~> 3.12)
|
36
39
|
shoulda
|
40
|
+
test-unit
|
data/README.markdown
CHANGED
data/Rakefile
CHANGED
@@ -11,20 +11,6 @@ rescue Bundler::BundlerError => e
|
|
11
11
|
end
|
12
12
|
require 'rake'
|
13
13
|
|
14
|
-
require 'jeweler'
|
15
|
-
Jeweler::Tasks.new do |gem|
|
16
|
-
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
|
17
|
-
gem.name = "RbST"
|
18
|
-
gem.homepage = "http://github.com/alphabetum/rbst"
|
19
|
-
gem.license = "MIT"
|
20
|
-
gem.summary = %Q{A simple Ruby wrapper for processing reStructuredText via Python's Docutils}
|
21
|
-
gem.description = %Q{A simple Ruby wrapper for processing reStructuredText via Python's Docutils}
|
22
|
-
gem.email = "hi@williammelody.com"
|
23
|
-
gem.authors = ["William Melody"]
|
24
|
-
# dependencies defined in Gemfile
|
25
|
-
end
|
26
|
-
Jeweler::RubygemsDotOrgTasks.new
|
27
|
-
|
28
14
|
require 'rake/testtask'
|
29
15
|
Rake::TestTask.new(:test) do |test|
|
30
16
|
test.libs << 'lib' << 'test'
|
@@ -42,4 +28,4 @@ Rake::RDocTask.new do |rdoc|
|
|
42
28
|
rdoc.title = "RbST #{version}"
|
43
29
|
rdoc.rdoc_files.include('README*')
|
44
30
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
45
|
-
end
|
31
|
+
end
|
data/RbST.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "RbST"
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.4.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["William Melody"]
|
12
|
-
s.date = "
|
12
|
+
s.date = "2015-02-08"
|
13
13
|
s.description = "A simple Ruby wrapper for processing reStructuredText via Python's Docutils"
|
14
14
|
s.email = "hi@williammelody.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -24,7 +24,6 @@ Gem::Specification.new do |s|
|
|
24
24
|
"README.markdown",
|
25
25
|
"Rakefile",
|
26
26
|
"RbST.gemspec",
|
27
|
-
"VERSION",
|
28
27
|
"lib/rbst.rb",
|
29
28
|
"lib/rst2parts/__init__.py",
|
30
29
|
"lib/rst2parts/rst2html.py",
|
@@ -46,21 +45,17 @@ Gem::Specification.new do |s|
|
|
46
45
|
s.specification_version = 3
|
47
46
|
|
48
47
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
49
|
-
s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
|
50
48
|
s.add_development_dependency(%q<mocha>, [">= 0"])
|
51
49
|
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
52
50
|
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
53
51
|
else
|
54
|
-
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
55
52
|
s.add_dependency(%q<mocha>, [">= 0"])
|
56
53
|
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
57
54
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
58
55
|
end
|
59
56
|
else
|
60
|
-
s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
|
61
57
|
s.add_dependency(%q<mocha>, [">= 0"])
|
62
58
|
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
63
59
|
s.add_dependency(%q<shoulda>, [">= 0"])
|
64
60
|
end
|
65
61
|
end
|
66
|
-
|
data/lib/rbst.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
|
3
3
|
class RbST
|
4
|
-
|
4
|
+
|
5
5
|
@@executable_path = File.expand_path(File.join(File.dirname(__FILE__), "rst2parts"))
|
6
6
|
@@executables = {
|
7
7
|
:html => File.join(@@executable_path, "rst2html.py"),
|
@@ -12,17 +12,17 @@ class RbST
|
|
12
12
|
def self.convert(*args)
|
13
13
|
new(*args).convert
|
14
14
|
end
|
15
|
-
|
15
|
+
|
16
16
|
# Print LaTeX-Specific Options, General Docutils Options and reStructuredText Parser Options.
|
17
17
|
def self.latex_options
|
18
18
|
new.print_options(:latex)
|
19
19
|
end
|
20
|
-
|
20
|
+
|
21
21
|
# Print HTML-Specific Options, General Docutils Options and reStructuredText Parser Options.
|
22
22
|
def self.html_options
|
23
23
|
new.print_options(:html)
|
24
24
|
end
|
25
|
-
|
25
|
+
|
26
26
|
# Specify custom executables to use instead of the default rst2latex.py and
|
27
27
|
# rst2html.py scripts. Takes a hash with two possible keys, :html and :latex,
|
28
28
|
# which should contain a full path to the alternative executable.
|
@@ -34,7 +34,7 @@ class RbST
|
|
34
34
|
end
|
35
35
|
# Return the executable hash.
|
36
36
|
def self.executables; @@executables end
|
37
|
-
|
37
|
+
|
38
38
|
# Takes a string or file path plus any additional options and creates a new converter object.
|
39
39
|
def initialize(*args)
|
40
40
|
target = args.shift
|
@@ -47,21 +47,21 @@ class RbST
|
|
47
47
|
execute "python #{@@executables[@output_format]}" + convert_options
|
48
48
|
end
|
49
49
|
alias_method :to_s, :convert
|
50
|
-
|
50
|
+
|
51
51
|
# Converts the object's input to HTML.
|
52
52
|
def to_html(*args)
|
53
53
|
@output_format = :html
|
54
54
|
@options += args
|
55
55
|
convert
|
56
56
|
end
|
57
|
-
|
57
|
+
|
58
58
|
# Converts the object's input to LaTeX.
|
59
59
|
def to_latex(*args)
|
60
60
|
@output_format = :latex
|
61
61
|
@options += args
|
62
62
|
convert
|
63
63
|
end
|
64
|
-
|
64
|
+
|
65
65
|
# Formats and prints the options from the docutils help in the way they'd be specified in RbST: strings, symbols and hashes.
|
66
66
|
def print_options(format)
|
67
67
|
help = execute("python #{@@executables[format]} --help")
|
@@ -77,13 +77,13 @@ class RbST
|
|
77
77
|
help.gsub!(/(:\w) </, '\1 => <')
|
78
78
|
puts help
|
79
79
|
end
|
80
|
-
|
80
|
+
|
81
81
|
protected
|
82
|
-
|
82
|
+
|
83
83
|
def execute(command)
|
84
84
|
output = ''
|
85
|
-
IO.popen(command, "w+") do |f|
|
86
|
-
f.puts @target
|
85
|
+
IO.popen(command, "w+") do |f|
|
86
|
+
f.puts @target
|
87
87
|
f.close_write
|
88
88
|
output = f.read
|
89
89
|
end
|
@@ -99,7 +99,7 @@ protected
|
|
99
99
|
end
|
100
100
|
end
|
101
101
|
end
|
102
|
-
|
102
|
+
|
103
103
|
def convert_opts_with_args(opt)
|
104
104
|
opt.inject('') do |string, (flag, val)|
|
105
105
|
flag = flag.to_s.gsub(/_/, '-')
|
data/lib/rst2parts/rst2latex.py
CHANGED
data/lib/rst2parts/transform.py
CHANGED
@@ -6,21 +6,21 @@ from docutils.parsers.rst import Parser
|
|
6
6
|
|
7
7
|
def transform(writer=None, part=None):
|
8
8
|
p = OptionParser(add_help_option=False)
|
9
|
-
|
9
|
+
|
10
10
|
# Collect all the command line options
|
11
11
|
docutils_parser = DocutilsOptionParser(components=(writer, Parser()))
|
12
12
|
for group in docutils_parser.option_groups:
|
13
13
|
p.add_option_group(group.title, None).add_options(group.option_list)
|
14
|
-
|
14
|
+
|
15
15
|
p.add_option('--part', default=part)
|
16
|
-
|
16
|
+
|
17
17
|
opts, args = p.parse_args()
|
18
|
-
|
18
|
+
|
19
19
|
settings = dict({
|
20
20
|
'file_insertion_enabled': False,
|
21
21
|
'raw_enabled': False,
|
22
22
|
}, **opts.__dict__)
|
23
|
-
|
23
|
+
|
24
24
|
if len(args) == 1:
|
25
25
|
try:
|
26
26
|
content = open(args[0], 'r').read()
|
@@ -28,13 +28,13 @@ def transform(writer=None, part=None):
|
|
28
28
|
content = args[0]
|
29
29
|
else:
|
30
30
|
content = sys.stdin.read()
|
31
|
-
|
31
|
+
|
32
32
|
parts = publish_parts(
|
33
33
|
source=content,
|
34
34
|
settings_overrides=settings,
|
35
35
|
writer=writer,
|
36
36
|
)
|
37
|
-
|
37
|
+
|
38
38
|
if opts.part in parts:
|
39
39
|
return parts[opts.part].encode(parts["encoding"])
|
40
40
|
return ''
|
data/test/files/test.latex
CHANGED
@@ -118,7 +118,7 @@ See <\url{http://docutils.sf.net/rst.html}> for introductory docs.
|
|
118
118
|
\textbf{Revision}: &
|
119
119
|
4321 \\
|
120
120
|
\textbf{Description}: &
|
121
|
-
This is a
|
121
|
+
This is a \textquotedbl{}docinfo block\textquotedbl{}, or bibliographic field list
|
122
122
|
\\
|
123
123
|
\end{tabularx}
|
124
124
|
\end{center}
|
@@ -150,7 +150,7 @@ Block quotes are indented.
|
|
150
150
|
|
151
151
|
\end{quote}
|
152
152
|
& \multirow{2}{0.42\DUtablewidth}{%
|
153
|
-
Literal block, preceded by
|
153
|
+
Literal block, preceded by \textquotedbl{}::\textquotedbl{}:
|
154
154
|
|
155
155
|
{\ttfamily \raggedright \noindent
|
156
156
|
Indented
|
@@ -211,7 +211,7 @@ Bullet list
|
|
211
211
|
& %
|
212
212
|
\begin{itemize}
|
213
213
|
|
214
|
-
\item items begin with
|
214
|
+
\item items begin with \textquotedbl{}-\textquotedbl{}, \textquotedbl{}+\textquotedbl{}, or \textquotedbl{}*\textquotedbl{}
|
215
215
|
|
216
216
|
\end{itemize}
|
217
217
|
\\
|
@@ -225,7 +225,7 @@ Enumerated list
|
|
225
225
|
\setlength{\rightmargin}{\leftmargin}
|
226
226
|
}
|
227
227
|
|
228
|
-
\item items use any variation of
|
228
|
+
\item items use any variation of \textquotedbl{}1.\textquotedbl{}, \textquotedbl{}A)\textquotedbl{}, and \textquotedbl{}(i)\textquotedbl{}
|
229
229
|
|
230
230
|
\item also auto-enumerated
|
231
231
|
\end{list}
|
@@ -310,7 +310,7 @@ Anonymous Target
|
|
310
310
|
& \\
|
311
311
|
\hline
|
312
312
|
|
313
|
-
Directive (
|
313
|
+
Directive (\textquotedbl{}::\textquotedbl{})
|
314
314
|
&
|
315
315
|
\includegraphics{images/biohazard.png}
|
316
316
|
\\
|
@@ -328,7 +328,7 @@ Comment
|
|
328
328
|
|
329
329
|
Empty Comment
|
330
330
|
&
|
331
|
-
(
|
331
|
+
(\textquotedbl{}..\textquotedbl{} on a line by itself, with blank lines before \& after,
|
332
332
|
used to separate indentation contexts)
|
333
333
|
\\
|
334
334
|
\hline
|
@@ -377,8 +377,8 @@ Description (Docutils version added to, in {[}brackets{]})
|
|
377
377
|
|
378
378
|
attention
|
379
379
|
&
|
380
|
-
Specific admonition; also
|
381
|
-
|
380
|
+
Specific admonition; also \textquotedbl{}caution\textquotedbl{}, \textquotedbl{}danger\textquotedbl{},
|
381
|
+
\textquotedbl{}error\textquotedbl{}, \textquotedbl{}hint\textquotedbl{}, \textquotedbl{}important\textquotedbl{}, \textquotedbl{}note\textquotedbl{}, \textquotedbl{}tip\textquotedbl{}, \textquotedbl{}warning\textquotedbl{}
|
382
382
|
\\
|
383
383
|
\hline
|
384
384
|
|
@@ -396,7 +396,7 @@ image
|
|
396
396
|
|
397
397
|
figure
|
398
398
|
&
|
399
|
-
Like
|
399
|
+
Like \textquotedbl{}image\textquotedbl{}, but with optional caption and legend
|
400
400
|
\\
|
401
401
|
\hline
|
402
402
|
|
@@ -426,19 +426,19 @@ rubric
|
|
426
426
|
|
427
427
|
epigraph
|
428
428
|
&
|
429
|
-
Block quote with class
|
429
|
+
Block quote with class=\textquotedbl{}epigraph\textquotedbl{}
|
430
430
|
\\
|
431
431
|
\hline
|
432
432
|
|
433
433
|
highlights
|
434
434
|
&
|
435
|
-
Block quote with class
|
435
|
+
Block quote with class=\textquotedbl{}highlights\textquotedbl{}
|
436
436
|
\\
|
437
437
|
\hline
|
438
438
|
|
439
439
|
pull-quote
|
440
440
|
&
|
441
|
-
Block quote with class
|
441
|
+
Block quote with class=\textquotedbl{}pull-quote\textquotedbl{}
|
442
442
|
\\
|
443
443
|
\hline
|
444
444
|
|
@@ -534,7 +534,7 @@ Generates today's date; for substitution defs
|
|
534
534
|
|
535
535
|
class
|
536
536
|
&
|
537
|
-
Set a
|
537
|
+
Set a \textquotedbl{}class\textquotedbl{} attribute on the next element
|
538
538
|
\\
|
539
539
|
\hline
|
540
540
|
|
data/test/files/test.rst
CHANGED
@@ -124,4 +124,4 @@ strong Equivalent to **strong**
|
|
124
124
|
sub Subscript
|
125
125
|
sup Superscript
|
126
126
|
title Title reference (book, etc.); standard default role
|
127
|
-
================ ============================================================
|
127
|
+
================ ============================================================
|
data/test/helper.rb
CHANGED
@@ -9,11 +9,12 @@ rescue Bundler::BundlerError => e
|
|
9
9
|
end
|
10
10
|
require 'test/unit'
|
11
11
|
require 'shoulda'
|
12
|
-
require 'mocha'
|
12
|
+
require 'mocha/setup'
|
13
13
|
|
14
14
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
15
15
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
16
16
|
require 'rbst'
|
17
17
|
|
18
18
|
class Test::Unit::TestCase
|
19
|
-
end
|
19
|
+
end
|
20
|
+
|
data/test/test_rbst.rb
CHANGED
@@ -13,13 +13,13 @@ class TestRbST < Test::Unit::TestCase
|
|
13
13
|
end
|
14
14
|
@rst2parts_path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'rst2parts'))
|
15
15
|
end
|
16
|
-
|
16
|
+
|
17
17
|
should "call bare rest2parts when passed no options" do
|
18
18
|
converter = RbST.new(@rst_file)
|
19
19
|
converter.expects(:execute).with("python #{@rst2parts_path}/rst2html.py").returns(true)
|
20
20
|
assert converter.convert
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
should "convert with custom executable" do
|
24
24
|
executables = {:html => "/some/path/2html.py"}
|
25
25
|
default_executables = RbST.executables
|
@@ -29,7 +29,7 @@ class TestRbST < Test::Unit::TestCase
|
|
29
29
|
assert converter.to_html
|
30
30
|
RbST.executables = default_executables
|
31
31
|
end
|
32
|
-
|
32
|
+
|
33
33
|
should "raise error when passed bad executable key" do
|
34
34
|
executables = {:markdown => "/some/path/2markdown.py"}
|
35
35
|
begin
|
@@ -39,17 +39,17 @@ class TestRbST < Test::Unit::TestCase
|
|
39
39
|
assert true
|
40
40
|
end
|
41
41
|
end
|
42
|
-
|
42
|
+
|
43
43
|
should "convert ReST to html" do
|
44
44
|
html = RbST.new(@rst_file).to_html
|
45
45
|
assert_equal html, File.read(@html_file)
|
46
46
|
end
|
47
|
-
|
47
|
+
|
48
48
|
should "convert ReST to LaTeX" do
|
49
49
|
latex = RbST.new(@rst_file).to_latex
|
50
50
|
assert_equal latex, File.read(@latex_file)
|
51
51
|
end
|
52
|
-
|
52
|
+
|
53
53
|
[:html, :latex].each do |f|
|
54
54
|
should "accept options on #to_#{f}" do
|
55
55
|
converter = RbST.new(@rst_file)
|
@@ -57,21 +57,21 @@ class TestRbST < Test::Unit::TestCase
|
|
57
57
|
assert converter.send("to_#{f}", :raw_enabled)
|
58
58
|
end
|
59
59
|
end
|
60
|
-
|
60
|
+
|
61
61
|
should "recognize strip_comments option" do
|
62
62
|
html_with_comment = RbST.convert(".. comment")
|
63
63
|
assert_equal html_with_comment, %Q{<div class=\"document\">\n<!-- comment -->\n</div>\n}
|
64
64
|
html_without_comment = RbST.convert(".. comment", 'strip-comments')
|
65
65
|
assert_equal html_without_comment, %Q{<div class=\"document\">\n</div>\n}
|
66
66
|
end
|
67
|
-
|
67
|
+
|
68
68
|
should "recognize cloak_email_addresses option" do
|
69
69
|
html_with_uncloaked_email = RbST.convert("steve@mac.com")
|
70
70
|
assert_equal %Q{<div class=\"document\">\n<p><a class=\"reference external\" href=\"mailto:steve@mac.com\">steve@mac.com</a></p>\n</div>\n}, html_with_uncloaked_email
|
71
71
|
html_with_cloaked_email = RbST.convert("steve@mac.com", 'cloak-email-addresses')
|
72
72
|
assert_equal %Q{<div class=\"document\">\n<p><a class=\"reference external\" href=\"mailto:steve%40mac.com\">steve<span>@</span>mac<span>.</span>com</a></p>\n</div>\n}, html_with_cloaked_email
|
73
73
|
end
|
74
|
-
|
74
|
+
|
75
75
|
should "recognize part option" do
|
76
76
|
html_body = RbST.convert("hello world", :part => :html_body)
|
77
77
|
assert_equal %Q{<div class=\"document\">\n<p>hello world</p>\n</div>\n}, html_body
|
@@ -83,5 +83,5 @@ class TestRbST < Test::Unit::TestCase
|
|
83
83
|
output = RbST.convert("Hello ☃", :part => :fragment)
|
84
84
|
assert_equal %Q{<p>Hello ☃</p>\n}, output
|
85
85
|
end
|
86
|
-
|
86
|
+
|
87
87
|
end
|
metadata
CHANGED
@@ -1,78 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: RbST
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.4.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- William Melody
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-02-08 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: jeweler
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 1.8.4
|
22
|
-
type: :development
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ~>
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: 1.8.4
|
30
13
|
- !ruby/object:Gem::Dependency
|
31
14
|
name: mocha
|
32
15
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
16
|
requirements:
|
35
|
-
- -
|
17
|
+
- - ">="
|
36
18
|
- !ruby/object:Gem::Version
|
37
19
|
version: '0'
|
38
20
|
type: :development
|
39
21
|
prerelease: false
|
40
22
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
23
|
requirements:
|
43
|
-
- -
|
24
|
+
- - ">="
|
44
25
|
- !ruby/object:Gem::Version
|
45
26
|
version: '0'
|
46
27
|
- !ruby/object:Gem::Dependency
|
47
28
|
name: rdoc
|
48
29
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
30
|
requirements:
|
51
|
-
- - ~>
|
31
|
+
- - "~>"
|
52
32
|
- !ruby/object:Gem::Version
|
53
33
|
version: '3.12'
|
54
34
|
type: :development
|
55
35
|
prerelease: false
|
56
36
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
37
|
requirements:
|
59
|
-
- - ~>
|
38
|
+
- - "~>"
|
60
39
|
- !ruby/object:Gem::Version
|
61
40
|
version: '3.12'
|
62
41
|
- !ruby/object:Gem::Dependency
|
63
42
|
name: shoulda
|
64
43
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
44
|
requirements:
|
67
|
-
- -
|
45
|
+
- - ">="
|
68
46
|
- !ruby/object:Gem::Version
|
69
47
|
version: '0'
|
70
48
|
type: :development
|
71
49
|
prerelease: false
|
72
50
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
51
|
requirements:
|
75
|
-
- -
|
52
|
+
- - ">="
|
76
53
|
- !ruby/object:Gem::Version
|
77
54
|
version: '0'
|
78
55
|
description: A simple Ruby wrapper for processing reStructuredText via Python's Docutils
|
@@ -83,14 +60,13 @@ extra_rdoc_files:
|
|
83
60
|
- LICENSE
|
84
61
|
- README.markdown
|
85
62
|
files:
|
86
|
-
- .document
|
63
|
+
- ".document"
|
87
64
|
- Gemfile
|
88
65
|
- Gemfile.lock
|
89
66
|
- LICENSE
|
90
67
|
- README.markdown
|
91
68
|
- Rakefile
|
92
69
|
- RbST.gemspec
|
93
|
-
- VERSION
|
94
70
|
- lib/rbst.rb
|
95
71
|
- lib/rst2parts/__init__.py
|
96
72
|
- lib/rst2parts/rst2html.py
|
@@ -104,28 +80,24 @@ files:
|
|
104
80
|
homepage: http://github.com/alphabetum/rbst
|
105
81
|
licenses:
|
106
82
|
- MIT
|
83
|
+
metadata: {}
|
107
84
|
post_install_message:
|
108
85
|
rdoc_options: []
|
109
86
|
require_paths:
|
110
87
|
- lib
|
111
88
|
required_ruby_version: !ruby/object:Gem::Requirement
|
112
|
-
none: false
|
113
89
|
requirements:
|
114
|
-
- -
|
90
|
+
- - ">="
|
115
91
|
- !ruby/object:Gem::Version
|
116
92
|
version: '0'
|
117
|
-
segments:
|
118
|
-
- 0
|
119
|
-
hash: 2317176860731085124
|
120
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
94
|
requirements:
|
123
|
-
- -
|
95
|
+
- - ">="
|
124
96
|
- !ruby/object:Gem::Version
|
125
97
|
version: '0'
|
126
98
|
requirements: []
|
127
99
|
rubyforge_project:
|
128
|
-
rubygems_version:
|
100
|
+
rubygems_version: 2.4.5
|
129
101
|
signing_key:
|
130
102
|
specification_version: 3
|
131
103
|
summary: A simple Ruby wrapper for processing reStructuredText via Python's Docutils
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.3.0
|