docbook_xsl_wrapper 0.1.2 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +2 -0
- data/CHANGELOG +41 -0
- data/README.md +9 -17
- data/bin/docbook_xsl_wrapper +9 -14
- data/docbook_xsl_wrapper.gemspec +8 -7
- data/lib/docbook_xsl_wrapper.rb +24 -1
- data/lib/docbook_xsl_wrapper/epub.rb +124 -122
- data/lib/docbook_xsl_wrapper/options.rb +1 -1
- data/lib/docbook_xsl_wrapper/validate.rb +22 -0
- data/lib/docbook_xsl_wrapper/version.rb +1 -1
- data/schema/docbookxi.rng +18654 -0
- data/spec/docbook_xsl_wrapper/validate_spec.rb +64 -0
- data/xsl/AUTHORS +4 -0
- data/xsl/COPYING +48 -0
- data/xsl/REVISION +1 -0
- data/xsl/VERSION.xsl +115 -0
- data/xsl/common/addns.xsl +124 -0
- data/xsl/common/af.xml +1272 -0
- data/xsl/common/am.xml +1272 -0
- data/xsl/common/ar.xml +1272 -0
- data/xsl/common/as.xml +703 -0
- data/xsl/common/ast.xml +703 -0
- data/xsl/common/autoidx-kimber.xsl +45 -0
- data/xsl/common/autoidx-kosek.xsl +155 -0
- data/xsl/common/az.xml +715 -0
- data/xsl/common/bg.xml +767 -0
- data/xsl/common/bn.xml +1272 -0
- data/xsl/common/bn_in.xml +703 -0
- data/xsl/common/bs.xml +705 -0
- data/xsl/common/ca.xml +703 -0
- data/xsl/common/charmap.xsl +222 -0
- data/xsl/common/common.xsl +2129 -0
- data/xsl/common/cs.xml +743 -0
- data/xsl/common/cy.xml +1288 -0
- data/xsl/common/da.xml +707 -0
- data/xsl/common/de.xml +709 -0
- data/xsl/common/el.xml +772 -0
- data/xsl/common/en.xml +1272 -0
- data/xsl/common/entities.ent +67 -0
- data/xsl/common/eo.xml +1272 -0
- data/xsl/common/es.xml +719 -0
- data/xsl/common/et.xml +1272 -0
- data/xsl/common/eu.xml +1272 -0
- data/xsl/common/fa.xml +703 -0
- data/xsl/common/fi.xml +713 -0
- data/xsl/common/fr.xml +733 -0
- data/xsl/common/ga.xml +1272 -0
- data/xsl/common/gentext.xsl +855 -0
- data/xsl/common/gl.xml +1272 -0
- data/xsl/common/gu.xml +703 -0
- data/xsl/common/he.xml +1272 -0
- data/xsl/common/hi.xml +703 -0
- data/xsl/common/hr.xml +705 -0
- data/xsl/common/hu.xml +721 -0
- data/xsl/common/id.xml +1272 -0
- data/xsl/common/insertfile.xsl +113 -0
- data/xsl/common/is.xml +715 -0
- data/xsl/common/it.xml +1272 -0
- data/xsl/common/ja.xml +703 -0
- data/xsl/common/ka.xml +743 -0
- data/xsl/common/kn.xml +1272 -0
- data/xsl/common/ko.xml +1272 -0
- data/xsl/common/ky.xml +775 -0
- data/xsl/common/l10n.dtd +64 -0
- data/xsl/common/l10n.xml +78 -0
- data/xsl/common/l10n.xsl +598 -0
- data/xsl/common/la.xml +1272 -0
- data/xsl/common/labels.xsl +933 -0
- data/xsl/common/lt.xml +721 -0
- data/xsl/common/lv.xml +1272 -0
- data/xsl/common/ml.xml +703 -0
- data/xsl/common/mn.xml +773 -0
- data/xsl/common/mr.xml +703 -0
- data/xsl/common/nb.xml +1272 -0
- data/xsl/common/nds.xml +709 -0
- data/xsl/common/nl.xml +703 -0
- data/xsl/common/nn.xml +1272 -0
- data/xsl/common/olink.xsl +1284 -0
- data/xsl/common/or.xml +1272 -0
- data/xsl/common/pa.xml +703 -0
- data/xsl/common/pi.xml +168 -0
- data/xsl/common/pi.xsl +347 -0
- data/xsl/common/pl.xml +721 -0
- data/xsl/common/pt.xml +1272 -0
- data/xsl/common/pt_br.xml +1272 -0
- data/xsl/common/refentry.xsl +1353 -0
- data/xsl/common/ro.xml +1272 -0
- data/xsl/common/ru.xml +769 -0
- data/xsl/common/sk.xml +1272 -0
- data/xsl/common/sl.xml +1272 -0
- data/xsl/common/sq.xml +1272 -0
- data/xsl/common/sr.xml +763 -0
- data/xsl/common/sr_Latn.xml +722 -0
- data/xsl/common/subtitles.xsl +181 -0
- data/xsl/common/sv.xml +707 -0
- data/xsl/common/ta.xml +703 -0
- data/xsl/common/table.xsl +515 -0
- data/xsl/common/targetdatabase.dtd +49 -0
- data/xsl/common/targets.xsl +338 -0
- data/xsl/common/te.xml +703 -0
- data/xsl/common/th.xml +1272 -0
- data/xsl/common/titles.xsl +850 -0
- data/xsl/common/tl.xml +1272 -0
- data/xsl/common/tr.xml +709 -0
- data/xsl/common/uk.xml +769 -0
- data/xsl/common/ur.xml +705 -0
- data/xsl/common/utility.xsl +291 -0
- data/xsl/common/vi.xml +1272 -0
- data/xsl/common/xh.xml +1272 -0
- data/xsl/common/zh.xml +703 -0
- data/xsl/common/zh_cn.xml +703 -0
- data/xsl/common/zh_tw.xml +703 -0
- data/xsl/epub/docbook.xsl +1769 -0
- data/xsl/epub3/chunk.xsl +30 -0
- data/xsl/epub3/docbook-epub.css.xml +142 -0
- data/xsl/epub3/docbook.xsl +20 -0
- data/xsl/epub3/epub3-chunk-mods.xsl +52 -0
- data/xsl/epub3/epub3-element-mods.xsl +2533 -0
- data/xsl/epub3/titlepage.templates.xml +712 -0
- data/xsl/epub3/titlepage.templates.xsl +3842 -0
- data/xsl/lib/lib.xsl +533 -0
- data/xsl/xhtml/admon.xsl +142 -0
- data/xsl/xhtml/annotations.xsl +160 -0
- data/xsl/xhtml/autoidx.xsl +831 -0
- data/xsl/xhtml/autotoc.xsl +706 -0
- data/xsl/xhtml/biblio-iso690.xsl +1302 -0
- data/xsl/xhtml/biblio.xsl +1371 -0
- data/xsl/xhtml/block.xsl +584 -0
- data/xsl/xhtml/callout.xsl +210 -0
- data/xsl/xhtml/chunk-code.xsl +675 -0
- data/xsl/xhtml/chunk-common.xsl +1627 -0
- data/xsl/xhtml/chunker.xsl +317 -0
- data/xsl/xhtml/component.xsl +440 -0
- data/xsl/xhtml/division.xsl +214 -0
- data/xsl/xhtml/ebnf.xsl +331 -0
- data/xsl/xhtml/footnote.xsl +346 -0
- data/xsl/xhtml/formal.xsl +496 -0
- data/xsl/xhtml/glossary.xsl +602 -0
- data/xsl/xhtml/graphics.xsl +1537 -0
- data/xsl/xhtml/html-rtf.xsl +321 -0
- data/xsl/xhtml/html.xsl +690 -0
- data/xsl/xhtml/htmltbl.xsl +102 -0
- data/xsl/xhtml/index.xsl +264 -0
- data/xsl/xhtml/info.xsl +48 -0
- data/xsl/xhtml/inline.xsl +1508 -0
- data/xsl/xhtml/its.xsl +109 -0
- data/xsl/xhtml/keywords.xsl +38 -0
- data/xsl/xhtml/lists.xsl +1227 -0
- data/xsl/xhtml/math.xsl +286 -0
- data/xsl/xhtml/param.xsl +449 -0
- data/xsl/xhtml/pi.xsl +1237 -0
- data/xsl/xhtml/qandaset.xsl +440 -0
- data/xsl/xhtml/refentry.xsl +307 -0
- data/xsl/xhtml/sections.xsl +564 -0
- data/xsl/xhtml/synop.xsl +1623 -0
- data/xsl/xhtml/table.xsl +1179 -0
- data/xsl/xhtml/task.xsl +76 -0
- data/xsl/xhtml/titlepage.templates.xsl +4005 -0
- data/xsl/xhtml/titlepage.xsl +1108 -0
- data/xsl/xhtml/toc.xsl +334 -0
- data/xsl/xhtml/verbatim.xsl +389 -0
- data/xsl/xhtml/xref.xsl +1268 -0
- data/xsl/xhtml5/docbook.xsl +22 -0
- data/xsl/xhtml5/html5-chunk-mods.xsl +112 -0
- data/xsl/xhtml5/html5-element-mods.xsl +791 -0
- data/xsl/xhtml5/xhtml-docbook.xsl +531 -0
- metadata +207 -27
- data/.rvmrc +0 -48
- data/xslt/obfuscate.xsl +0 -12
metadata
CHANGED
@@ -1,44 +1,67 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docbook_xsl_wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.5.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
|
-
-
|
7
|
+
- Michael R. Cook
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2018-10-09 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: nokogiri
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.6'
|
20
|
+
- - ">="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.6.1
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.6'
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.6.1
|
14
33
|
- !ruby/object:Gem::Dependency
|
15
34
|
name: rspec
|
16
35
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
36
|
requirements:
|
19
|
-
- - ~>
|
37
|
+
- - "~>"
|
20
38
|
- !ruby/object:Gem::Version
|
21
|
-
version: 2.
|
39
|
+
version: '2.14'
|
40
|
+
- - ">="
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: 2.14.1
|
22
43
|
type: :development
|
23
44
|
prerelease: false
|
24
45
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
46
|
requirements:
|
27
|
-
- - ~>
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '2.14'
|
50
|
+
- - ">="
|
28
51
|
- !ruby/object:Gem::Version
|
29
|
-
version: 2.
|
30
|
-
description: DocBook XSL Wrapper let's you easily convert DocBook
|
31
|
-
the official DocBook XSL stylesheets.
|
52
|
+
version: 2.14.1
|
53
|
+
description: DocBook XSL Wrapper let's you easily validate then convert DocBook 5.x
|
54
|
+
XML documents to EPUB using the official DocBook XSL stylesheets.
|
32
55
|
email:
|
33
|
-
-
|
56
|
+
- git@mrcook.uk
|
34
57
|
executables:
|
35
58
|
- docbook_xsl_wrapper
|
36
59
|
extensions: []
|
37
60
|
extra_rdoc_files: []
|
38
61
|
files:
|
39
|
-
- .gitignore
|
40
|
-
- .rspec
|
41
|
-
-
|
62
|
+
- ".gitignore"
|
63
|
+
- ".rspec"
|
64
|
+
- CHANGELOG
|
42
65
|
- Gemfile
|
43
66
|
- LICENSE.txt
|
44
67
|
- README.md
|
@@ -48,34 +71,191 @@ files:
|
|
48
71
|
- lib/docbook_xsl_wrapper.rb
|
49
72
|
- lib/docbook_xsl_wrapper/epub.rb
|
50
73
|
- lib/docbook_xsl_wrapper/options.rb
|
74
|
+
- lib/docbook_xsl_wrapper/validate.rb
|
51
75
|
- lib/docbook_xsl_wrapper/version.rb
|
76
|
+
- schema/docbookxi.rng
|
52
77
|
- spec/docbook_xsl_wrapper/options_spec.rb
|
78
|
+
- spec/docbook_xsl_wrapper/validate_spec.rb
|
53
79
|
- spec/spec_helper.rb
|
54
|
-
-
|
55
|
-
|
56
|
-
|
80
|
+
- xsl/AUTHORS
|
81
|
+
- xsl/COPYING
|
82
|
+
- xsl/REVISION
|
83
|
+
- xsl/VERSION.xsl
|
84
|
+
- xsl/common/addns.xsl
|
85
|
+
- xsl/common/af.xml
|
86
|
+
- xsl/common/am.xml
|
87
|
+
- xsl/common/ar.xml
|
88
|
+
- xsl/common/as.xml
|
89
|
+
- xsl/common/ast.xml
|
90
|
+
- xsl/common/autoidx-kimber.xsl
|
91
|
+
- xsl/common/autoidx-kosek.xsl
|
92
|
+
- xsl/common/az.xml
|
93
|
+
- xsl/common/bg.xml
|
94
|
+
- xsl/common/bn.xml
|
95
|
+
- xsl/common/bn_in.xml
|
96
|
+
- xsl/common/bs.xml
|
97
|
+
- xsl/common/ca.xml
|
98
|
+
- xsl/common/charmap.xsl
|
99
|
+
- xsl/common/common.xsl
|
100
|
+
- xsl/common/cs.xml
|
101
|
+
- xsl/common/cy.xml
|
102
|
+
- xsl/common/da.xml
|
103
|
+
- xsl/common/de.xml
|
104
|
+
- xsl/common/el.xml
|
105
|
+
- xsl/common/en.xml
|
106
|
+
- xsl/common/entities.ent
|
107
|
+
- xsl/common/eo.xml
|
108
|
+
- xsl/common/es.xml
|
109
|
+
- xsl/common/et.xml
|
110
|
+
- xsl/common/eu.xml
|
111
|
+
- xsl/common/fa.xml
|
112
|
+
- xsl/common/fi.xml
|
113
|
+
- xsl/common/fr.xml
|
114
|
+
- xsl/common/ga.xml
|
115
|
+
- xsl/common/gentext.xsl
|
116
|
+
- xsl/common/gl.xml
|
117
|
+
- xsl/common/gu.xml
|
118
|
+
- xsl/common/he.xml
|
119
|
+
- xsl/common/hi.xml
|
120
|
+
- xsl/common/hr.xml
|
121
|
+
- xsl/common/hu.xml
|
122
|
+
- xsl/common/id.xml
|
123
|
+
- xsl/common/insertfile.xsl
|
124
|
+
- xsl/common/is.xml
|
125
|
+
- xsl/common/it.xml
|
126
|
+
- xsl/common/ja.xml
|
127
|
+
- xsl/common/ka.xml
|
128
|
+
- xsl/common/kn.xml
|
129
|
+
- xsl/common/ko.xml
|
130
|
+
- xsl/common/ky.xml
|
131
|
+
- xsl/common/l10n.dtd
|
132
|
+
- xsl/common/l10n.xml
|
133
|
+
- xsl/common/l10n.xsl
|
134
|
+
- xsl/common/la.xml
|
135
|
+
- xsl/common/labels.xsl
|
136
|
+
- xsl/common/lt.xml
|
137
|
+
- xsl/common/lv.xml
|
138
|
+
- xsl/common/ml.xml
|
139
|
+
- xsl/common/mn.xml
|
140
|
+
- xsl/common/mr.xml
|
141
|
+
- xsl/common/nb.xml
|
142
|
+
- xsl/common/nds.xml
|
143
|
+
- xsl/common/nl.xml
|
144
|
+
- xsl/common/nn.xml
|
145
|
+
- xsl/common/olink.xsl
|
146
|
+
- xsl/common/or.xml
|
147
|
+
- xsl/common/pa.xml
|
148
|
+
- xsl/common/pi.xml
|
149
|
+
- xsl/common/pi.xsl
|
150
|
+
- xsl/common/pl.xml
|
151
|
+
- xsl/common/pt.xml
|
152
|
+
- xsl/common/pt_br.xml
|
153
|
+
- xsl/common/refentry.xsl
|
154
|
+
- xsl/common/ro.xml
|
155
|
+
- xsl/common/ru.xml
|
156
|
+
- xsl/common/sk.xml
|
157
|
+
- xsl/common/sl.xml
|
158
|
+
- xsl/common/sq.xml
|
159
|
+
- xsl/common/sr.xml
|
160
|
+
- xsl/common/sr_Latn.xml
|
161
|
+
- xsl/common/subtitles.xsl
|
162
|
+
- xsl/common/sv.xml
|
163
|
+
- xsl/common/ta.xml
|
164
|
+
- xsl/common/table.xsl
|
165
|
+
- xsl/common/targetdatabase.dtd
|
166
|
+
- xsl/common/targets.xsl
|
167
|
+
- xsl/common/te.xml
|
168
|
+
- xsl/common/th.xml
|
169
|
+
- xsl/common/titles.xsl
|
170
|
+
- xsl/common/tl.xml
|
171
|
+
- xsl/common/tr.xml
|
172
|
+
- xsl/common/uk.xml
|
173
|
+
- xsl/common/ur.xml
|
174
|
+
- xsl/common/utility.xsl
|
175
|
+
- xsl/common/vi.xml
|
176
|
+
- xsl/common/xh.xml
|
177
|
+
- xsl/common/zh.xml
|
178
|
+
- xsl/common/zh_cn.xml
|
179
|
+
- xsl/common/zh_tw.xml
|
180
|
+
- xsl/epub/docbook.xsl
|
181
|
+
- xsl/epub3/chunk.xsl
|
182
|
+
- xsl/epub3/docbook-epub.css.xml
|
183
|
+
- xsl/epub3/docbook.xsl
|
184
|
+
- xsl/epub3/epub3-chunk-mods.xsl
|
185
|
+
- xsl/epub3/epub3-element-mods.xsl
|
186
|
+
- xsl/epub3/titlepage.templates.xml
|
187
|
+
- xsl/epub3/titlepage.templates.xsl
|
188
|
+
- xsl/lib/lib.xsl
|
189
|
+
- xsl/xhtml/admon.xsl
|
190
|
+
- xsl/xhtml/annotations.xsl
|
191
|
+
- xsl/xhtml/autoidx.xsl
|
192
|
+
- xsl/xhtml/autotoc.xsl
|
193
|
+
- xsl/xhtml/biblio-iso690.xsl
|
194
|
+
- xsl/xhtml/biblio.xsl
|
195
|
+
- xsl/xhtml/block.xsl
|
196
|
+
- xsl/xhtml/callout.xsl
|
197
|
+
- xsl/xhtml/chunk-code.xsl
|
198
|
+
- xsl/xhtml/chunk-common.xsl
|
199
|
+
- xsl/xhtml/chunker.xsl
|
200
|
+
- xsl/xhtml/component.xsl
|
201
|
+
- xsl/xhtml/division.xsl
|
202
|
+
- xsl/xhtml/ebnf.xsl
|
203
|
+
- xsl/xhtml/footnote.xsl
|
204
|
+
- xsl/xhtml/formal.xsl
|
205
|
+
- xsl/xhtml/glossary.xsl
|
206
|
+
- xsl/xhtml/graphics.xsl
|
207
|
+
- xsl/xhtml/html-rtf.xsl
|
208
|
+
- xsl/xhtml/html.xsl
|
209
|
+
- xsl/xhtml/htmltbl.xsl
|
210
|
+
- xsl/xhtml/index.xsl
|
211
|
+
- xsl/xhtml/info.xsl
|
212
|
+
- xsl/xhtml/inline.xsl
|
213
|
+
- xsl/xhtml/its.xsl
|
214
|
+
- xsl/xhtml/keywords.xsl
|
215
|
+
- xsl/xhtml/lists.xsl
|
216
|
+
- xsl/xhtml/math.xsl
|
217
|
+
- xsl/xhtml/param.xsl
|
218
|
+
- xsl/xhtml/pi.xsl
|
219
|
+
- xsl/xhtml/qandaset.xsl
|
220
|
+
- xsl/xhtml/refentry.xsl
|
221
|
+
- xsl/xhtml/sections.xsl
|
222
|
+
- xsl/xhtml/synop.xsl
|
223
|
+
- xsl/xhtml/table.xsl
|
224
|
+
- xsl/xhtml/task.xsl
|
225
|
+
- xsl/xhtml/titlepage.templates.xsl
|
226
|
+
- xsl/xhtml/titlepage.xsl
|
227
|
+
- xsl/xhtml/toc.xsl
|
228
|
+
- xsl/xhtml/verbatim.xsl
|
229
|
+
- xsl/xhtml/xref.xsl
|
230
|
+
- xsl/xhtml5/docbook.xsl
|
231
|
+
- xsl/xhtml5/html5-chunk-mods.xsl
|
232
|
+
- xsl/xhtml5/html5-element-mods.xsl
|
233
|
+
- xsl/xhtml5/xhtml-docbook.xsl
|
234
|
+
homepage: https://mrcook.uk
|
235
|
+
licenses:
|
236
|
+
- MIT
|
237
|
+
metadata: {}
|
57
238
|
post_install_message:
|
58
239
|
rdoc_options: []
|
59
240
|
require_paths:
|
60
241
|
- lib
|
61
242
|
required_ruby_version: !ruby/object:Gem::Requirement
|
62
|
-
none: false
|
63
243
|
requirements:
|
64
|
-
- -
|
244
|
+
- - ">="
|
65
245
|
- !ruby/object:Gem::Version
|
66
|
-
version:
|
246
|
+
version: '0'
|
67
247
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
|
-
none: false
|
69
248
|
requirements:
|
70
|
-
- -
|
249
|
+
- - ">="
|
71
250
|
- !ruby/object:Gem::Version
|
72
251
|
version: '0'
|
73
252
|
requirements: []
|
74
253
|
rubyforge_project:
|
75
|
-
rubygems_version:
|
254
|
+
rubygems_version: 2.7.6
|
76
255
|
signing_key:
|
77
|
-
specification_version:
|
78
|
-
summary:
|
256
|
+
specification_version: 4
|
257
|
+
summary: 'DocBook XSL Wrapper: validate/transform DocBook 5.x XML documents'
|
79
258
|
test_files:
|
80
259
|
- spec/docbook_xsl_wrapper/options_spec.rb
|
260
|
+
- spec/docbook_xsl_wrapper/validate_spec.rb
|
81
261
|
- spec/spec_helper.rb
|
data/.rvmrc
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
|
3
|
-
# This is an RVM Project .rvmrc file, used to automatically load the ruby
|
4
|
-
# development environment upon cd'ing into the directory
|
5
|
-
|
6
|
-
# First we specify our desired <ruby>[@<gemset>], the @gemset name is optional,
|
7
|
-
# Only full ruby name is supported here, for short names use:
|
8
|
-
# echo "rvm use 1.9.3" > .rvmrc
|
9
|
-
environment_id="ruby-1.9.3-p374@docbook"
|
10
|
-
|
11
|
-
# Uncomment the following lines if you want to verify rvm version per project
|
12
|
-
# rvmrc_rvm_version="1.18.5 (stable)" # 1.10.1 seams as a safe start
|
13
|
-
# eval "$(echo ${rvm_version}.${rvmrc_rvm_version} | awk -F. '{print "[[ "$1*65536+$2*256+$3" -ge "$4*65536+$5*256+$6" ]]"}' )" || {
|
14
|
-
# echo "This .rvmrc file requires at least RVM ${rvmrc_rvm_version}, aborting loading."
|
15
|
-
# return 1
|
16
|
-
# }
|
17
|
-
|
18
|
-
# First we attempt to load the desired environment directly from the environment
|
19
|
-
# file. This is very fast and efficient compared to running through the entire
|
20
|
-
# CLI and selector. If you want feedback on which environment was used then
|
21
|
-
# insert the word 'use' after --create as this triggers verbose mode.
|
22
|
-
if [[ -d "${rvm_path:-$HOME/.rvm}/environments"
|
23
|
-
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
|
24
|
-
then
|
25
|
-
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
|
26
|
-
[[ -s "${rvm_path:-$HOME/.rvm}/hooks/after_use" ]] &&
|
27
|
-
\. "${rvm_path:-$HOME/.rvm}/hooks/after_use" || true
|
28
|
-
else
|
29
|
-
# If the environment file has not yet been created, use the RVM CLI to select.
|
30
|
-
rvm --create "$environment_id" || {
|
31
|
-
echo "Failed to create RVM environment '${environment_id}'."
|
32
|
-
return 1
|
33
|
-
}
|
34
|
-
fi
|
35
|
-
|
36
|
-
# If you use bundler, this might be useful to you:
|
37
|
-
# if [[ -s Gemfile ]] && {
|
38
|
-
# ! builtin command -v bundle >/dev/null ||
|
39
|
-
# builtin command -v bundle | GREP_OPTIONS= \grep $rvm_path/bin/bundle >/dev/null
|
40
|
-
# }
|
41
|
-
# then
|
42
|
-
# printf "%b" "The rubygem 'bundler' is not installed. Installing it now.\n"
|
43
|
-
# gem install bundler
|
44
|
-
# fi
|
45
|
-
# if [[ -s Gemfile ]] && builtin command -v bundle >/dev/null
|
46
|
-
# then
|
47
|
-
# bundle install | GREP_OPTIONS= \grep -vE '^Using|Your bundle is complete'
|
48
|
-
# fi
|
data/xslt/obfuscate.xsl
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
<?xml version="1.0"?>
|
2
|
-
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
|
3
|
-
<xsl:output method="xml" omit-xml-declaration="no" doctype-public="-//OASIS//DTD DocBook XML V4.4//EN" doctype-system="http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" indent="no"/>
|
4
|
-
<xsl:template match="@*|*|comment()|processing-instruction()">
|
5
|
-
<xsl:copy>
|
6
|
-
<xsl:apply-templates select="@*|node()"/>
|
7
|
-
</xsl:copy>
|
8
|
-
</xsl:template>
|
9
|
-
<xsl:template match="text()">
|
10
|
-
<xsl:value-of select="replace(replace(., '[a-z]', 'x'), '[0-9]', 'd')"/>
|
11
|
-
</xsl:template>
|
12
|
-
</xsl:stylesheet>
|