nora_mark_htmlbook 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 403414959bbd4bf8b12cef8aa17a1061a65819cd
4
- data.tar.gz: d578f9279eed2e7449bb37d8823af5d488904db3
3
+ metadata.gz: 5bd0b0513b2873bf227c55951d74cf27f839b06f
4
+ data.tar.gz: bfba64add17ad7ed8a6aec89e24a1d7bf6f7e3a2
5
5
  SHA512:
6
- metadata.gz: dfaf59d0d286891453acd711dfa3d78548c89498fd7e58c7d3eafc43cb2834a4c7a1e1b4ad66fbf14f6296948d8c8d8db38c9197f69db0e5d1445789a03c8c0a
7
- data.tar.gz: 3892e9b97b2cdc2bde71c3e0b5d83289a218f0aa6825b40e9b6611ed427840ef2adef5583acee5d7f22816e8bcfde6cee4a5a5b1df8154f7cee7caec5649421a
6
+ metadata.gz: 410977b4ea9988ff36d67ae9cfc295094a250fcbb1f93bc733b5a729f39597e76ffaba4825522037c80b755ee4930f1cb48e57de5ca6d82319d635257d149761
7
+ data.tar.gz: 1b95b8f8917b63a31d4d1ed6e2988be7cd01ec308cf1e69a4b79bdfdfffe9109b00c61796869044af540ef481dabfbd91ed00bca2aa92ead118908c02d8f484a
data/.travis.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.0.0
4
- - 2.1.0
3
+ - 2.4.1
4
+ - 2.3.4
5
5
  script: bundle exec rake spec
data/LICENSE.txt CHANGED
@@ -1,22 +1,29 @@
1
- Copyright (c) 2014 Satoshi KOJIMA
1
+ # LICENSE:
2
2
 
3
- MIT License
3
+ (The New BSD License)
4
4
 
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
5
+ Copyright (c) 2014, KOJIMA Satoshi
6
+ All rights reserved.
12
7
 
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
8
+ Redistribution and use in source and binary forms, with or without
9
+ modification, are permitted provided that the following conditions are met:
15
10
 
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11
+ * Redistributions of source code must retain the above copyright
12
+ notice, this list of conditions and the following disclaimer.
13
+ * Redistributions in binary form must reproduce the above copyright
14
+ notice, this list of conditions and the following disclaimer in the
15
+ documentation and/or other materials provided with the distribution.
16
+ * Neither the name of the <organization> nor the
17
+ names of its contributors may be used to endorse or promote products
18
+ derived from this software without specific prior written permission.
19
+
20
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
21
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23
+ DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
24
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
25
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
26
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
27
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/README.md CHANGED
@@ -23,6 +23,10 @@ Or install it yourself as:
23
23
 
24
24
  ## Usage
25
25
 
26
+ ### From command line
27
+
28
+ $ nora2htmlbook < text.nora > result.html
29
+
26
30
  ### Explicitly load your code
27
31
 
28
32
  ```ruby
@@ -0,0 +1,31 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
3
+ <head>
4
+ <title>NoraMark generated document</title>
5
+ </head>
6
+ <body data-type="book">
7
+ <h1 id="heading_index_1">Sample document of noramark htmlbook</h1>
8
+ <section data-type="titlepage">
9
+ <h1 id="heading_index_2">NoraMark HTMLBook text.</h1>
10
+ <p>By Satoshi Kojima.</p>
11
+ </section>
12
+ <section data-type="preface">
13
+ <h1 id="heading_index_3">Preface</h1>
14
+ <p>here comes preface.</p>
15
+ <div data-type="part">
16
+ <section data-type="chapter">
17
+ <h1 id="heading_index_4">Chapter 1</h1>
18
+ <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
19
+ <section data-type="sect1">
20
+ <h1 id="heading_index_5">Section 1</h1>
21
+ <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse <span data-type="underline">cillum dolore</span> eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia <span data-type="footnote">deserunt mollit anim id est laborum.</span></p>
22
+ <div data-type="note">
23
+ <h1 id="heading_index_6">Lorem ipsum</h1>
24
+ <p>dolor sit amet, consectetur adipisicing elit</p>
25
+ </div>
26
+ </section>
27
+ </section>
28
+ </div>
29
+ </section>
30
+ </body>
31
+ </html>
@@ -0,0 +1,25 @@
1
+ ---
2
+ title: Sample document of noramark htmlbook
3
+ generator: htmlbook
4
+ ---
5
+
6
+ #(titlepage) NoraMark HTMLBook text.
7
+ p: By Satoshi Kojima.
8
+
9
+ #(preface) Preface
10
+
11
+ here comes preface.
12
+
13
+ part(Part 1) {
14
+
15
+ # Chapter 1
16
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
17
+
18
+ ## Section 1
19
+ Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse [span[data-type:underline]{cillum dolore}] eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia [footnote{deserunt mollit anim id est laborum.}]
20
+
21
+ note(Lorem ipsum) {
22
+ dolor sit amet, consectetur adipisicing elit
23
+ }
24
+
25
+ }
@@ -1,5 +1,5 @@
1
1
  module NoraMark
2
2
  module Htmlbook
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
  spec.summary = %q{HTMLBook Generator plugin for NoraMark.}
12
12
  spec.description = %q{HTMLBook Generator plugin for NoraMark.}
13
13
  spec.homepage = ""
14
- spec.license = "MIT"
14
+ spec.license = "BSD 3-Clause"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
@@ -19,9 +19,9 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_runtime_dependency "nora_mark", ">= 0.2beta11"
22
- spec.add_runtime_dependency "nokogiri", "~> 1.6.0"
23
- spec.add_development_dependency "bundler", "~> 1.5"
24
- spec.add_development_dependency "rspec", "~> 2.14"
22
+ spec.add_runtime_dependency "nokogiri", "~> 1.7.0"
23
+ spec.add_development_dependency "bundler", ">= 1.5"
24
+ spec.add_development_dependency "rspec", ">= 2.14"
25
25
  spec.add_development_dependency "rake"
26
26
  spec.add_development_dependency "byebug"
27
27
 
data/spec/spec_helper.rb CHANGED
@@ -13,7 +13,7 @@ end
13
13
 
14
14
  RSpec.configure do |config|
15
15
  # Use color in STDOUT
16
- config.color_enabled = true
16
+ config.color = true
17
17
  # Use color not only in STDOUT but also in pagers and files
18
18
  config.tty = true
19
19
  # Use the specified formatter
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nora_mark_htmlbook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Satoshi KOJIMA
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-08 00:00:00.000000000 Z
11
+ date: 2017-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nora_mark
@@ -30,40 +30,40 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.6.0
33
+ version: 1.7.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.6.0
40
+ version: 1.7.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '1.5'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '1.5'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '2.14'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '2.14'
69
69
  - !ruby/object:Gem::Dependency
@@ -105,11 +105,12 @@ files:
105
105
  - ".gitignore"
106
106
  - ".travis.yml"
107
107
  - Gemfile
108
- - LICENSE
109
108
  - LICENSE.txt
110
109
  - README.md
111
110
  - Rakefile
112
111
  - bin/nora2htmlbook
112
+ - example/sample.html
113
+ - example/sample.nora
113
114
  - lib/nora_mark_htmlbook.rb
114
115
  - lib/nora_mark_htmlbook/generator.rb
115
116
  - lib/nora_mark_htmlbook/transformer.rb
@@ -120,7 +121,7 @@ files:
120
121
  - spec/spec_helper.rb
121
122
  homepage: ''
122
123
  licenses:
123
- - MIT
124
+ - BSD 3-Clause
124
125
  metadata: {}
125
126
  post_install_message:
126
127
  rdoc_options: []
@@ -138,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
139
  version: '0'
139
140
  requirements: []
140
141
  rubyforge_project:
141
- rubygems_version: 2.2.0
142
+ rubygems_version: 2.6.8
142
143
  signing_key:
143
144
  specification_version: 4
144
145
  summary: HTMLBook Generator plugin for NoraMark.
data/LICENSE DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2014 KOJIMA Satoshi
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.