prophecy 0.2.2 → 0.2.3
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/lib/prophecy.rb +1 -0
- data/lib/prophecy/assets/latex_template/anecdote.cls +7 -7
- data/lib/prophecy/assets/latex_template/book-core-first.sty +53 -14
- data/lib/prophecy/assets/sass/_byronic.sass +6 -0
- data/lib/prophecy/book.rb +3 -1
- data/lib/prophecy/chapter.rb +66 -4
- data/lib/prophecy/generators/book/book.yml.tt +3 -3
- data/lib/prophecy/generators/book/example-book.yml +3 -3
- data/lib/prophecy/generators/book/manuscript/{further-comments.markdown → markdown/further-comments.markdown} +0 -0
- data/lib/prophecy/generators/book/manuscript/{glossary.md → markdown/glossary.md} +0 -0
- data/lib/prophecy/generators/book/manuscript/{like-a-boat.md → markdown/like-a-boat.md} +0 -0
- data/lib/prophecy/generators/book/manuscript/{nameless-labyrinth.markdown → markdown/nameless-labyrinth.markdown} +0 -0
- data/lib/prophecy/generators/book/manuscript/{preface.md → markdown/preface.md} +0 -0
- data/lib/prophecy/generators/book/manuscript/{time-machine.markdown → markdown/time-machine.markdown} +0 -0
- data/lib/prophecy/generators/book/manuscript/tex/glossary.tex +3 -0
- data/lib/prophecy/version.rb +1 -1
- data/prophecy.gemspec +1 -0
- metadata +23 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d94416dc531a6b666bba8e24b6316becfbedbdf
|
4
|
+
data.tar.gz: 680d253fa6cac2afc3d4b7aec576938b044c189a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a555e2fa1b562ab655c1d16331e86c7c711f45e6f3bc7e218d18329165a3934be90e69a27f45257d0945b9b4081f90bbf047f462851cba3382a2ae409af1b8d
|
7
|
+
data.tar.gz: 6014ac84dfb00c0a5f7be055f8ff47de82e574ec8c4188ed5979b34552e8446a441a02837e6fa32458b7e6e47d49547379764218f336d7ff89124ad339ad9463
|
data/lib/prophecy.rb
CHANGED
@@ -17,7 +17,7 @@
|
|
17
17
|
% ==============
|
18
18
|
|
19
19
|
\NeedsTeXFormat{LaTeX2e}
|
20
|
-
\ProvidesClass{anecdote}[2013/08/19 v0.5 A
|
20
|
+
\ProvidesClass{anecdote}[2013/08/19 v0.5 A memoir-based documentclass with a contemporary style for books with a lighter content.]
|
21
21
|
|
22
22
|
% ========================
|
23
23
|
% Preliminary Declarations
|
@@ -31,11 +31,11 @@
|
|
31
31
|
\RequirePackage{calc}
|
32
32
|
|
33
33
|
\pgfkeys{
|
34
|
-
/
|
34
|
+
/BOOK/.cd,
|
35
35
|
pagePreset/.default=largepage,% "largepage": 6x9in, "smallpage": 5.25x8in
|
36
|
-
pagePreset/.store in=\
|
36
|
+
pagePreset/.store in=\BOOK@pagePreset,
|
37
37
|
babelLanguage/.default=british,
|
38
|
-
babelLanguage/.store in=\
|
38
|
+
babelLanguage/.store in=\BOOK@babelLanguage,
|
39
39
|
}
|
40
40
|
|
41
41
|
% Pass all unknown options to memoir
|
@@ -43,7 +43,7 @@
|
|
43
43
|
\PassOptionsToClass{\CurrentOption}{memoir}
|
44
44
|
}
|
45
45
|
|
46
|
-
\ProcessPgfOptions{/
|
46
|
+
\ProcessPgfOptions{/BOOK}
|
47
47
|
\ProcessOptions\relax
|
48
48
|
|
49
49
|
% ======================
|
@@ -64,7 +64,7 @@
|
|
64
64
|
% m = text width
|
65
65
|
% d = text height
|
66
66
|
|
67
|
-
\ifthenelse{\equal{\
|
67
|
+
\ifthenelse{\equal{\BOOK@pagePreset}{largepage}}{
|
68
68
|
|
69
69
|
% Large page size
|
70
70
|
%
|
@@ -110,7 +110,7 @@
|
|
110
110
|
\checkandfixthelayout
|
111
111
|
|
112
112
|
}{
|
113
|
-
\ifthenelse{\equal{\
|
113
|
+
\ifthenelse{\equal{\BOOK@pagePreset}{smallpage}}{
|
114
114
|
|
115
115
|
% Small page size
|
116
116
|
%
|
@@ -1,13 +1,13 @@
|
|
1
1
|
\ProvidesPackage{book-core-first}
|
2
2
|
|
3
|
-
\RequirePackage[\
|
3
|
+
\RequirePackage[\BOOK@babelLanguage]{babel}
|
4
4
|
\RequirePackage{nag}
|
5
5
|
\RequirePackage{xparse}
|
6
6
|
\RequirePackage{soul}
|
7
7
|
\RequirePackage{textcomp}
|
8
8
|
\RequirePackage[cmyk]{xcolor}
|
9
9
|
\RequirePackage{graphicx}
|
10
|
-
\graphicspath
|
10
|
+
% Add your \graphicspath declaration to your local style.
|
11
11
|
\RequirePackage{eso-pic}
|
12
12
|
\RequirePackage{ccicons}
|
13
13
|
\RequirePackage{multicol}
|
@@ -40,7 +40,9 @@
|
|
40
40
|
\newcommand\crimsonRomanFont{}
|
41
41
|
\newcommand\crimsonRomanFontOldNum{}
|
42
42
|
\newcommand\gentiumFont{}
|
43
|
+
\newcommand\headerFont{}
|
43
44
|
\newcommand\footFont{}
|
45
|
+
\newcommand\pageNumFont{}
|
44
46
|
\newcommand\partTitleFont{}
|
45
47
|
\newcommand\chapterNameFont{}
|
46
48
|
\newcommand\chapterTitleFont{}
|
@@ -53,6 +55,8 @@
|
|
53
55
|
% Renderer = Basic
|
54
56
|
% http://tex.stackexchange.com/questions/20580/how-to-enable-ligatures-for-emdash-endash-in-luatex
|
55
57
|
|
58
|
+
%% by filename:
|
59
|
+
|
56
60
|
%\setmainfont[
|
57
61
|
% Path = {./fonts/},
|
58
62
|
% SmallCapsFont = Crimson-Roman.otf,
|
@@ -77,14 +81,37 @@
|
|
77
81
|
%\newfontfamily\gentiumFont[
|
78
82
|
% Path = {./fonts/},
|
79
83
|
%]{GentiumPlus-R.ttf}
|
80
|
-
|
81
|
-
%%
|
82
|
-
|
84
|
+
|
85
|
+
%% or by name:
|
86
|
+
|
87
|
+
%\setmainfont[
|
88
|
+
% SmallCapsFont = Crimson Roman,
|
89
|
+
% SmallCapsFeatures= { Ligatures = TeX, Letters = SmallCaps },
|
90
|
+
% BoldFont = Gentium Book Basic Bold,
|
91
|
+
%]{Gentium}
|
92
|
+
|
93
|
+
%\newfontfamily\crimsonRomanFont[
|
94
|
+
% BoldFont = Crimson Semibold,
|
95
|
+
% ItalicFont = Crimson Italic,
|
96
|
+
%]{Crimson Roman}
|
97
|
+
%\newfontfamily\crimsonRomanFontOldNum[
|
98
|
+
% Numbers = OldStyle,
|
99
|
+
%]{Crimson Roman}
|
100
|
+
%\newfontfamily\gentiumFont{Gentium}
|
101
|
+
|
102
|
+
% header and footer
|
103
|
+
|
104
|
+
%% by filename:
|
105
|
+
|
83
106
|
%\newfontfamily\footFont[
|
84
107
|
% Path = {./fonts/},
|
85
108
|
% %Renderer = Basic,
|
86
109
|
%]{Crimson-Roman.otf}
|
87
110
|
|
111
|
+
%% or by name:
|
112
|
+
|
113
|
+
%\newfontfamily\footFont[Renderer = Basic]{Shaker Pali}
|
114
|
+
|
88
115
|
\newcommand{\footSize}
|
89
116
|
{\@setfontsize\footSize{9}{9}}
|
90
117
|
|
@@ -104,6 +131,8 @@
|
|
104
131
|
% ItalicFont = Crimson Italic,
|
105
132
|
%]{Crimson Roman}
|
106
133
|
|
134
|
+
% Some default font sizes, use \renewcommand to adjust
|
135
|
+
|
107
136
|
\newcommand{\chapterNameSize}
|
108
137
|
{\@setfontsize\chapterNameSize{22}{24}}
|
109
138
|
\newcommand{\chapterNumberSize}
|
@@ -114,6 +143,8 @@
|
|
114
143
|
{\@setfontsize\chapterAuthorSize{12}{14}}
|
115
144
|
\newcommand{\chapterNoteSize}
|
116
145
|
{\@setfontsize\chapterNoteSize{10}{13}}
|
146
|
+
\newcommand{\pageNumSize}
|
147
|
+
{\@setfontsize\pageNumSize{10}{12}}
|
117
148
|
|
118
149
|
% section
|
119
150
|
|
@@ -302,16 +333,14 @@ philo-sophical munindo amaravati thai-land}
|
|
302
333
|
|
303
334
|
% === Renewing package macros ===
|
304
335
|
|
305
|
-
\
|
306
|
-
\renewcommand{\mainmatter}{%
|
307
|
-
\mainmatterOrig%
|
336
|
+
\addtodef{\mainmatter}{}{%
|
308
337
|
\addtocontents{toc}{\addvspace{10pt}}%
|
338
|
+
\setcounter{chapter}{0}%
|
309
339
|
}
|
310
340
|
|
311
|
-
\
|
312
|
-
\renewcommand{\backmatter}{%
|
313
|
-
\backmatterOrig%
|
341
|
+
\addtodef{\backmatter}{}{%
|
314
342
|
\addtocontents{toc}{\addvspace{15pt}}%
|
343
|
+
\bookmarksetup{startatroot}%
|
315
344
|
}
|
316
345
|
|
317
346
|
\renewenvironment{quote}%
|
@@ -672,10 +701,20 @@ philo-sophical munindo amaravati thai-land}
|
|
672
701
|
\setlength{\chapterTitleLeftSkip}{6pc}
|
673
702
|
}
|
674
703
|
|
675
|
-
% alias the "fantasy" names into semantic chapter names
|
676
704
|
|
677
|
-
%
|
678
|
-
|
705
|
+
% Commands to assign the chapter styles to book parts. Use \renewcommand
|
706
|
+
% to adjust.
|
707
|
+
|
708
|
+
\newcommand\frontmatterChapterStyle{\chapterstyle{hightitle}}
|
709
|
+
\newcommand\mainmatterChapterStyle{\chapterstyle{lowtitle}}
|
710
|
+
\newcommand\appendixChapterStyle{\chapterstyle{hightitle}}
|
711
|
+
\newcommand\backmatterChapterStyle{\chapterstyle{hightitle}}
|
712
|
+
|
713
|
+
% append them to the macros
|
714
|
+
\addtodef{\frontmatter}{}{\frontmatterChapterStyle}
|
715
|
+
\addtodef{\mainmatter}{}{\mainmatterChapterStyle}
|
716
|
+
\addtodef{\appendix}{}{\appendixChapterStyle}
|
717
|
+
\addtodef{\backmatter}{}{\backmatterChapterStyle}
|
679
718
|
|
680
719
|
% === Section styles ===
|
681
720
|
|
@@ -13,6 +13,9 @@
|
|
13
13
|
|
14
14
|
$contentFontFamily: 'SourceSansPro', 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', 'Tahoma', 'Palatino', 'Caecilia', sans-serif !default
|
15
15
|
$contentHeaderFontFamily: 'SourceSansPro', 'Lucida Grande', 'DejaVu Sans', 'Bitstream Vera Sans', 'Tahoma', 'Palatino', 'Caecilia', sans-serif !default
|
16
|
+
// Specify font for emphasis. This may be a different typeface from a
|
17
|
+
// 'slanted' italics.
|
18
|
+
$emphasisFontFamily: $contentFontFamily
|
16
19
|
$titlePageHeaderFontFamily: 'ExistenceLight' !default
|
17
20
|
|
18
21
|
// 1px wide 60% gray (#999) is just about visible on Kindle. Using 55%
|
@@ -34,6 +37,9 @@ $titlePageRuleWidth: 40px !default
|
|
34
37
|
//color: $textColor
|
35
38
|
//background-color: $textBgColor
|
36
39
|
|
40
|
+
em, i
|
41
|
+
font-family: $emphasisFontFamily
|
42
|
+
|
37
43
|
h1, h2, h3, h4, h5, h6
|
38
44
|
font-weight: normal
|
39
45
|
font-family: $contentHeaderFontFamily
|
data/lib/prophecy/book.rb
CHANGED
@@ -11,7 +11,7 @@ module Prophecy
|
|
11
11
|
:assets_dir, :tex_dir, :markdown_dir, :xhtml_dir, :chapter_layout,
|
12
12
|
:include_assets, :exclude_assets, :toc, :output_format, :bookid,
|
13
13
|
:rights, :creator, :subject, :source, :contributors, :cover_image,
|
14
|
-
:date, :compile_name
|
14
|
+
:date, :compile_name, :show_chapter_name, :chapter_number_format
|
15
15
|
|
16
16
|
def initialize(config)
|
17
17
|
@config = config.clone
|
@@ -51,6 +51,8 @@ module Prophecy
|
|
51
51
|
@contributors = c['contributors'] || nil
|
52
52
|
@cover_image = c['cover_image'] || nil
|
53
53
|
@date = c['date'] || Time.now.strftime("%Y-%m-%d")
|
54
|
+
@show_chapter_name = c['show_chapter_name'] || nil
|
55
|
+
@chapter_number_format = c['chapter_number_format'] || nil
|
54
56
|
|
55
57
|
@compile_name = "#{self.author}-#{self.title}-#{Time.now.strftime("%FT%T")}".gsub(/[^a-zA-Z0-9-]/, '-').gsub(/--*/, '-')
|
56
58
|
|
data/lib/prophecy/chapter.rb
CHANGED
@@ -122,6 +122,8 @@ module Prophecy
|
|
122
122
|
@prefix = config['prefix'] || nil
|
123
123
|
@postfix = config['postfix'] || nil
|
124
124
|
@insert = config['insert'] || nil
|
125
|
+
@show_chapter_name = config['show_chapter_name'] || self.book.show_chapter_name || nil
|
126
|
+
@chapter_number_format = config['chapter_number_format'] || self.book.chapter_number_format || nil
|
125
127
|
|
126
128
|
if config['section_name']
|
127
129
|
@@section_name[@level] = config['section_name']
|
@@ -183,12 +185,18 @@ module Prophecy
|
|
183
185
|
end
|
184
186
|
|
185
187
|
def first_header_text
|
186
|
-
|
188
|
+
return nil unless @path
|
189
|
+
format ||= File.extname(@path)
|
190
|
+
case format
|
191
|
+
when '.tex'
|
192
|
+
str = IO.read(@path)
|
193
|
+
m = str.match(/\\chapter\*{,1}[{]([^}]+)[}]/)
|
194
|
+
m[1] if m
|
195
|
+
else
|
187
196
|
doc = Nokogiri::HTML(self.to_html)
|
188
|
-
h = doc.xpath("
|
197
|
+
h = doc.xpath("//h1").first
|
198
|
+
#h = doc.xpath("//*[name()='h1' or name()='h2' or name()='h3' or name()='h4']").first
|
189
199
|
h.text.strip if h
|
190
|
-
else
|
191
|
-
nil
|
192
200
|
end
|
193
201
|
end
|
194
202
|
|
@@ -236,6 +244,10 @@ module Prophecy
|
|
236
244
|
raise "Error while rendering chapter"
|
237
245
|
end
|
238
246
|
|
247
|
+
if @show_chapter_name && self.mainmatter?
|
248
|
+
ret = "<h2 class=\"chapter-name\">#{self.chapter_name}</h2>\n" + ret
|
249
|
+
end
|
250
|
+
|
239
251
|
unless layout_path.nil?
|
240
252
|
template = ERB.new(IO.read(layout_path))
|
241
253
|
content = ret
|
@@ -333,6 +345,21 @@ module Prophecy
|
|
333
345
|
ret
|
334
346
|
end
|
335
347
|
|
348
|
+
def chapter_name
|
349
|
+
n = ''
|
350
|
+
case @chapter_number_format
|
351
|
+
when 'word'
|
352
|
+
n = itow(@section_number)
|
353
|
+
when 'arabic'
|
354
|
+
n = @section_number
|
355
|
+
when 'roman'
|
356
|
+
n = RomanNumerals.to_roman(@section_number)
|
357
|
+
else
|
358
|
+
n = @section_number
|
359
|
+
end
|
360
|
+
"Chapter #{n}"
|
361
|
+
end
|
362
|
+
|
336
363
|
def frontmatter?
|
337
364
|
@the_matter == 'frontmatter'
|
338
365
|
end
|
@@ -380,6 +407,41 @@ module Prophecy
|
|
380
407
|
def to_s
|
381
408
|
[@title, @path].join(", ")
|
382
409
|
end
|
410
|
+
|
411
|
+
# Opinionated conversion: over 100, chapter titles would be too
|
412
|
+
# long. It's also a good excuse for using a simple array.
|
413
|
+
def itow(i)
|
414
|
+
return i.to_s if i > 100
|
415
|
+
|
416
|
+
a = [ "Zero", "One", "Two", "Three", "Four", "Five", "Six",
|
417
|
+
"Seven", "Eight", "Nine", "Ten", "Eleven", "Twelve",
|
418
|
+
"Thirteen", "Fourteen", "Fifteen", "Sixteen", "Seventeen",
|
419
|
+
"Eighteen", "Nineteen", "Twenty", "Twenty-one",
|
420
|
+
"Twenty-two", "Twenty-three", "Twenty-four", "Twenty-five",
|
421
|
+
"Twenty-six", "Twenty-seven", "Twenty-eight", "Twenty-nine",
|
422
|
+
"Thirty", "Thirty-one", "Thirty-two", "Thirty-three",
|
423
|
+
"Thirty-four", "Thirty-five", "Thirty-six", "Thirty-seven",
|
424
|
+
"Thirty-eight", "Thirty-nine", "Fourty", "Fourty-one",
|
425
|
+
"Fourty-two", "Fourty-three", "Fourty-four", "Fourty-five",
|
426
|
+
"Fourty-six", "Fourty-seven", "Fourty-eight", "Fourty-nine",
|
427
|
+
"Fifty", "Fifty-one", "Fifty-two", "Fifty-three",
|
428
|
+
"Fifty-four", "Fifty-five", "Fifty-six", "Fifty-seven",
|
429
|
+
"Fifty-eight", "Fifty-nine", "Sixty", "Sixty-one",
|
430
|
+
"Sixty-two", "Sixty-three", "Sixty-four", "Sixty-five",
|
431
|
+
"Sixty-six", "Sixty-seven", "Sixty-eight", "Sixty-nine",
|
432
|
+
"Seventy", "Seventy-one", "Seventy-two", "Seventy-three",
|
433
|
+
"Seventy-four", "Seventy-five", "Seventy-six",
|
434
|
+
"Seventy-seven", "Seventy-eight", "Seventy-nine", "Eighty",
|
435
|
+
"Eighty-one", "Eighty-two", "Eighty-three", "Eighty-four",
|
436
|
+
"Eighty-five", "Eighty-six", "Eighty-seven", "Eighty-eight",
|
437
|
+
"Eighty-nine", "Ninety", "Ninety-one", "Ninety-two",
|
438
|
+
"Ninety-three", "Ninety-four", "Ninety-five", "Ninety-six",
|
439
|
+
"Ninety-seven", "Ninety-eight", "Ninety-nine",
|
440
|
+
"One-hundred", ]
|
441
|
+
|
442
|
+
a[i.to_i]
|
443
|
+
end
|
444
|
+
|
383
445
|
end
|
384
446
|
|
385
447
|
end
|
@@ -25,7 +25,7 @@ date: <%= Time.now.strftime("%Y-%m-%d") %>
|
|
25
25
|
|
26
26
|
toc:
|
27
27
|
- { the_matter: frontmatter }
|
28
|
-
- { insert:
|
28
|
+
- { insert: '\frontmatter', target: latex }
|
29
29
|
- { title: "Cover", src: 'cover.xhtml.erb', target: epub, layout: none, type: cover, linear: no }
|
30
30
|
- { title: "Title Page", src: 'titlepage.xhtml.erb', target: epub, type: title-page }
|
31
31
|
- { title: "Contents", src: 'toc.xhtml.erb', target: epub, type: toc }
|
@@ -34,7 +34,7 @@ toc:
|
|
34
34
|
- { title: "Title Page", src: 'titlepage.xhtml.erb', target: mobi, type: text, class: title-page }
|
35
35
|
- { title: "Contents", src: 'toc.xhtml.erb', target: mobi, type: toc }
|
36
36
|
- { the_matter: mainmatter, section_number: 1 }
|
37
|
-
- { insert: "\\mainmatter
|
37
|
+
- { insert: "\\mainmatter\n\\book{\\thetitle}", target: latex }
|
38
38
|
- like-a-boat.md
|
39
39
|
- nameless-labyrinth.markdown
|
40
40
|
- time-machine.markdown
|
@@ -42,7 +42,7 @@ toc:
|
|
42
42
|
- { section_name: "Appendix", section_number: 1 }
|
43
43
|
- further-comments.markdown
|
44
44
|
- { the_matter: backmatter }
|
45
|
-
- { insert:
|
45
|
+
- { insert: '\backmatter', target: latex }
|
46
46
|
- glossary.md
|
47
47
|
|
48
48
|
cover_image: "cover.jpg"
|
@@ -30,7 +30,7 @@ section_names: [ "Part", "Chapter", "Section" ]
|
|
30
30
|
|
31
31
|
toc:
|
32
32
|
- { the_matter: frontmatter }
|
33
|
-
- { insert:
|
33
|
+
- { insert: '\frontmatter', target: latex }
|
34
34
|
- { title: "Cover", src: 'cover.xhtml.erb', target: epub, layout: none, type: cover, linear: no }
|
35
35
|
- { title: "Title Page", src: 'titlepage.xhtml.erb', target: epub, type: title-page }
|
36
36
|
- { title: "Title Page", src: "titlepage.tex", target: latex }
|
@@ -45,7 +45,7 @@ toc:
|
|
45
45
|
- { title: "Title Page", src: 'titlepage.xhtml.erb', target: mobi, type: text, class: title-page }
|
46
46
|
- { title: "Contents", src: 'toc.xhtml.erb', target: mobi, type: toc }
|
47
47
|
- { the_matter: mainmatter, section_number: 3 }
|
48
|
-
- { insert: "\\mainmatter*\n\\book{\\thetitle}
|
48
|
+
- { insert: "\\mainmatter*\n\\book{\\thetitle}", target: latex }
|
49
49
|
- { title: "Waiting for Death", src: 'book3.html', target: [ epub, mobi ], class: part-page }
|
50
50
|
- { level: 2, title: "Text Samples", src: 'text-samples.md' }
|
51
51
|
- { title: "The Dead Hand", src: 'book5.html', target: [ epub, mobi ], class: part-page }
|
@@ -56,7 +56,7 @@ toc:
|
|
56
56
|
- { level: 1, section_name: "Appendix", section_number: 1 }
|
57
57
|
- { title: "Further Comments", src: 'further-comments.tex' }
|
58
58
|
- { the_matter: backmatter }
|
59
|
-
- { insert:
|
59
|
+
- { insert: '\backmatter', target: latex }
|
60
60
|
- { title: "Glossary", src: 'glossary.md', target: [ epub, mobi ], type: glossary }
|
61
61
|
- { title: "Glossary", src: 'glossary.tex', target: latex }
|
62
62
|
- { title: "Acknowledgements", src: 'acknowledgements.tex', type: acknowledgements }
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/prophecy/version.rb
CHANGED
data/prophecy.gemspec
CHANGED
@@ -32,6 +32,7 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.add_runtime_dependency "compass", ">= 0.12.2"
|
33
33
|
spec.add_runtime_dependency "kramdown", ">= 1.2.0"
|
34
34
|
spec.add_runtime_dependency "nokogiri", ">= 1.6.0"
|
35
|
+
spec.add_runtime_dependency "roman-numerals", ">= 0.3.1"
|
35
36
|
spec.add_runtime_dependency "mime-types", ">= 1.25"
|
36
37
|
spec.add_runtime_dependency "thor", "~> 0.18"
|
37
38
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prophecy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gambhiro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -164,6 +164,20 @@ dependencies:
|
|
164
164
|
- - '>='
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: 1.6.0
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: roman-numerals
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 0.3.1
|
174
|
+
type: :runtime
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - '>='
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 0.3.1
|
167
181
|
- !ruby/object:Gem::Dependency
|
168
182
|
name: mime-types
|
169
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -336,12 +350,13 @@ files:
|
|
336
350
|
- lib/prophecy/generators/book/images/cover.jpg
|
337
351
|
- lib/prophecy/generators/book/images/cover.xcf
|
338
352
|
- lib/prophecy/generators/book/images/publisher-logo.jpg
|
339
|
-
- lib/prophecy/generators/book/manuscript/further-comments.markdown
|
340
|
-
- lib/prophecy/generators/book/manuscript/glossary.md
|
341
|
-
- lib/prophecy/generators/book/manuscript/like-a-boat.md
|
342
|
-
- lib/prophecy/generators/book/manuscript/nameless-labyrinth.markdown
|
343
|
-
- lib/prophecy/generators/book/manuscript/preface.md
|
344
|
-
- lib/prophecy/generators/book/manuscript/time-machine.markdown
|
353
|
+
- lib/prophecy/generators/book/manuscript/markdown/further-comments.markdown
|
354
|
+
- lib/prophecy/generators/book/manuscript/markdown/glossary.md
|
355
|
+
- lib/prophecy/generators/book/manuscript/markdown/like-a-boat.md
|
356
|
+
- lib/prophecy/generators/book/manuscript/markdown/nameless-labyrinth.markdown
|
357
|
+
- lib/prophecy/generators/book/manuscript/markdown/preface.md
|
358
|
+
- lib/prophecy/generators/book/manuscript/markdown/time-machine.markdown
|
359
|
+
- lib/prophecy/generators/book/manuscript/tex/glossary.tex
|
345
360
|
- lib/prophecy/generators/book/manuscript/xhtml/.gitkeep
|
346
361
|
- lib/prophecy/generators/book/manuscript/xhtml/cover.xhtml.erb
|
347
362
|
- lib/prophecy/generators/book/manuscript/xhtml/titlepage.xhtml.erb
|