asciidoctor-html5ruby 0.0.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.
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2014, Pasberth
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.adoc ADDED
@@ -0,0 +1,22 @@
1
+ = asciidoctor-html5ruby
2
+
3
+ This package provides a macro of the ruby element of html5 for asciidoctor.
4
+
5
+ == Installation
6
+
7
+ ----
8
+ gem install asciidoctor-html5ruby
9
+ ----
10
+
11
+ == Quick Usage
12
+
13
+ The following code is rendered as +<ruby>楽聖少女<rt>がくせいしょうじょ</rt></ruby>+
14
+
15
+ .sample.adoc
16
+ ----
17
+ html5ruby:楽聖少女[がくせいしょうじょ]
18
+ ----
19
+
20
+ ----
21
+ ruby -rasciidoctor-html5ruby -S asciidoctor sample.adoc
22
+ ----
@@ -0,0 +1,15 @@
1
+ require 'asciidoctor'
2
+ require 'asciidoctor/extensions'
3
+
4
+ include ::Asciidoctor
5
+
6
+ class HTML5RubyMacro < Extensions::InlineMacroProcessor
7
+ option :pos_attrs, ['rt']
8
+
9
+ def process parent, target, attributes
10
+ rt = attributes['rt']
11
+ rt ||= ""
12
+
13
+ %(<ruby>#{target}<rt>#{rt}</rt></ruby>)
14
+ end
15
+ end
@@ -0,0 +1 @@
1
+ html5ruby:楽聖少女[がくせいしょうじょ]
@@ -0,0 +1,5 @@
1
+ require File.join File.dirname(__FILE__), File.basename(__FILE__, '.rb'), 'extension'
2
+
3
+ Extensions.register do
4
+ inline_macro :html5ruby, HTML5RubyMacro
5
+ end
metadata ADDED
@@ -0,0 +1,67 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: asciidoctor-html5ruby
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Pasberth
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2014-03-10 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: asciidoctor
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ description: This package provides a macro of the ruby element of html5 for asciidoctor.
31
+ email: pasberth@gmail.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/asciidoctor-html5ruby.rb
37
+ - lib/asciidoctor-html5ruby/extension.rb
38
+ - lib/asciidoctor-html5ruby/sample.adoc
39
+ - README.adoc
40
+ - LICENSE
41
+ homepage: https://github.com/pasberth/asciidoctor-html5ruby
42
+ licenses:
43
+ - MIT
44
+ post_install_message:
45
+ rdoc_options: []
46
+ require_paths:
47
+ - lib
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ required_rubygems_version: !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ! '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project:
62
+ rubygems_version: 1.8.24
63
+ signing_key:
64
+ specification_version: 3
65
+ summary: First release for me.
66
+ test_files: []
67
+ has_rdoc: