koara-html 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/koara/html.rb +1 -1
- data/test/end_to_end_test.rb +2 -2
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3d8d5acf326c28ff2478cf5495e1e2a4f11cd66
|
4
|
+
data.tar.gz: cd19df633d2f62e09005c621eca9f6918288f8f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb4b311eeb93e36b5ded2de17ee21d0836fc11d5649a31d3bd0d2ba088ca0e8df3799344a372d26747fd311b86c520350216613eb1eba0afabb088f6f6bcc505
|
7
|
+
data.tar.gz: a76ea3d53b8c807291fcc747fa41eb6f60925bbdff24ee1e5cc62f8b09c67e63aff4585bd66b5216ca9b629f071a89717d7a001fc37dc6c62d92e20b770c7b01
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
[![Koara](http://www.
|
1
|
+
[![Koara](http://www.codeaddslife.com/koara.png)](http://www.codeaddslife.com/koara)
|
2
2
|
|
3
3
|
[![Build Status](https://img.shields.io/travis/koara/koara-rb-html.svg)](https://travis-ci.org/koara/koara-rb-html)
|
4
4
|
[![Coverage Status](https://img.shields.io/coveralls/koara/koara-rb-html.svg)](https://coveralls.io/github/koara/koara-rb-html?branch=master)
|
@@ -6,7 +6,7 @@
|
|
6
6
|
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/koara/koara-rb-html/blob/master/LICENSE)
|
7
7
|
|
8
8
|
# Koara-rb-html
|
9
|
-
[Koara](http://www.koara
|
9
|
+
[Koara](http://www.codeaddslife.com/koara) is a modular lightweight markup language. This project can render the koara AST to Html in Ruby.
|
10
10
|
The AST is created by the [core koara parser](https://github.com/koara/koara-rb).
|
11
11
|
|
12
12
|
## Getting started
|
data/lib/koara/html.rb
CHANGED
data/test/end_to_end_test.rb
CHANGED
@@ -9,6 +9,7 @@ class EndToEndTest < MiniTest::Unit::TestCase
|
|
9
9
|
|
10
10
|
def setup
|
11
11
|
@parser = Koara::Parser.new
|
12
|
+
@kd = File.read("#{TEST_DIR}/input/end2end.kd")
|
12
13
|
end
|
13
14
|
|
14
15
|
def test_000001
|
@@ -1032,14 +1033,13 @@ class EndToEndTest < MiniTest::Unit::TestCase
|
|
1032
1033
|
end
|
1033
1034
|
|
1034
1035
|
def assert_output(file, modules)
|
1035
|
-
kd = File.read("#{TEST_DIR}/input/end2end.kd")
|
1036
1036
|
html = File.read("#{TEST_DIR}/output/html5/end2end/#{file}.htm")
|
1037
1037
|
|
1038
1038
|
parser = Koara::Parser.new
|
1039
1039
|
|
1040
1040
|
parser.modules = modules
|
1041
1041
|
|
1042
|
-
document = parser.parse_file(
|
1042
|
+
document = parser.parse_file(@kd)
|
1043
1043
|
renderer = Koara::Html::Html5Renderer.new
|
1044
1044
|
document.accept(renderer)
|
1045
1045
|
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: koara-html
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Van Den Heuvel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.4'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.4'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.2'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.2'
|
41
41
|
description: Koara to HTML parser written in Ruby
|
@@ -45,9 +45,9 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- .gitignore
|
49
|
-
- .gitmodules
|
50
|
-
- .travis.yml
|
48
|
+
- ".gitignore"
|
49
|
+
- ".gitmodules"
|
50
|
+
- ".travis.yml"
|
51
51
|
- Gemfile
|
52
52
|
- LICENSE
|
53
53
|
- README.md
|
@@ -68,17 +68,17 @@ require_paths:
|
|
68
68
|
- lib
|
69
69
|
required_ruby_version: !ruby/object:Gem::Requirement
|
70
70
|
requirements:
|
71
|
-
- -
|
71
|
+
- - ">="
|
72
72
|
- !ruby/object:Gem::Version
|
73
73
|
version: '0'
|
74
74
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
75
|
requirements:
|
76
|
-
- -
|
76
|
+
- - ">="
|
77
77
|
- !ruby/object:Gem::Version
|
78
78
|
version: '0'
|
79
79
|
requirements: []
|
80
80
|
rubyforge_project:
|
81
|
-
rubygems_version: 2.6.
|
81
|
+
rubygems_version: 2.6.12
|
82
82
|
signing_key:
|
83
83
|
specification_version: 4
|
84
84
|
summary: Koara to HTML parser written in Ruby
|