rux 1.1.2 → 1.3.0
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/CHANGELOG.md +24 -0
- data/Gemfile +8 -1
- data/README.md +88 -0
- data/bin/ruxc +47 -5
- data/bin/ruxlex +13 -0
- data/lib/rux/ast/attr_node.rb +22 -0
- data/lib/rux/ast/attrs_node.rb +30 -0
- data/lib/rux/ast/fragment_node.rb +15 -0
- data/lib/rux/ast/root_node.rb +19 -0
- data/lib/rux/ast/ruby_attr_node.rb +28 -0
- data/lib/rux/ast/string_node.rb +4 -2
- data/lib/rux/ast/tag_node.rb +10 -1
- data/lib/rux/ast/text_node.rb +2 -1
- data/lib/rux/ast.rb +10 -5
- data/lib/rux/buffer.rb +21 -3
- data/lib/rux/default_tag_builder.rb +15 -6
- data/lib/rux/default_visitor.rb +100 -23
- data/lib/rux/lex/states.csv +51 -39
- data/lib/rux/lexer.rb +13 -0
- data/lib/rux/parser.rb +112 -28
- data/lib/rux/ruby_lexer.rb +32 -8
- data/lib/rux/rux_lexer.rb +16 -4
- data/lib/rux/version.rb +1 -1
- data/lib/rux/visitor.rb +16 -0
- data/lib/rux.rb +2 -3
- data/rux.gemspec +3 -1
- data/spec/parser/attributes_spec.rb +121 -0
- data/spec/parser/fragment_spec.rb +64 -0
- data/spec/parser/html_safety_spec.rb +13 -0
- data/spec/parser/slot_spec.rb +40 -0
- data/spec/parser/tag_spec.rb +174 -0
- data/spec/parser_spec.rb +56 -232
- data/spec/render_spec.rb +70 -7
- data/spec/spec_helper.rb +19 -32
- data/spec/support/components/args_component.rb +14 -0
- data/spec/support/components/data_component.rb +11 -0
- data/spec/support/components/table_component.rb +23 -0
- data/spec/support/components/test_component.rb +7 -0
- data/spec/support/view_component/base.rb +59 -0
- metadata +36 -8
metadata
CHANGED
|
@@ -1,15 +1,28 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rux
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cameron Dutro
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: bin
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: onload
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - "~>"
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '1.1'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - "~>"
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '1.1'
|
|
13
26
|
- !ruby/object:Gem::Dependency
|
|
14
27
|
name: parser
|
|
15
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -30,19 +43,20 @@ dependencies:
|
|
|
30
43
|
requirements:
|
|
31
44
|
- - "~>"
|
|
32
45
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '0.
|
|
46
|
+
version: '0.8'
|
|
34
47
|
type: :runtime
|
|
35
48
|
prerelease: false
|
|
36
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
50
|
requirements:
|
|
38
51
|
- - "~>"
|
|
39
52
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '0.
|
|
53
|
+
version: '0.8'
|
|
41
54
|
description: A jsx-inspired way to write view components.
|
|
42
55
|
email:
|
|
43
56
|
- camertron@gmail.com
|
|
44
57
|
executables:
|
|
45
58
|
- ruxc
|
|
59
|
+
- ruxlex
|
|
46
60
|
extensions: []
|
|
47
61
|
extra_rdoc_files: []
|
|
48
62
|
files:
|
|
@@ -52,9 +66,15 @@ files:
|
|
|
52
66
|
- README.md
|
|
53
67
|
- Rakefile
|
|
54
68
|
- bin/ruxc
|
|
69
|
+
- bin/ruxlex
|
|
55
70
|
- lib/rux.rb
|
|
56
71
|
- lib/rux/ast.rb
|
|
72
|
+
- lib/rux/ast/attr_node.rb
|
|
73
|
+
- lib/rux/ast/attrs_node.rb
|
|
74
|
+
- lib/rux/ast/fragment_node.rb
|
|
57
75
|
- lib/rux/ast/list_node.rb
|
|
76
|
+
- lib/rux/ast/root_node.rb
|
|
77
|
+
- lib/rux/ast/ruby_attr_node.rb
|
|
58
78
|
- lib/rux/ast/ruby_node.rb
|
|
59
79
|
- lib/rux/ast/string_node.rb
|
|
60
80
|
- lib/rux/ast/tag_node.rb
|
|
@@ -76,13 +96,22 @@ files:
|
|
|
76
96
|
- lib/rux/version.rb
|
|
77
97
|
- lib/rux/visitor.rb
|
|
78
98
|
- rux.gemspec
|
|
99
|
+
- spec/parser/attributes_spec.rb
|
|
100
|
+
- spec/parser/fragment_spec.rb
|
|
101
|
+
- spec/parser/html_safety_spec.rb
|
|
102
|
+
- spec/parser/slot_spec.rb
|
|
103
|
+
- spec/parser/tag_spec.rb
|
|
79
104
|
- spec/parser_spec.rb
|
|
80
105
|
- spec/render_spec.rb
|
|
81
106
|
- spec/spec_helper.rb
|
|
107
|
+
- spec/support/components/args_component.rb
|
|
108
|
+
- spec/support/components/data_component.rb
|
|
109
|
+
- spec/support/components/table_component.rb
|
|
110
|
+
- spec/support/components/test_component.rb
|
|
111
|
+
- spec/support/view_component/base.rb
|
|
82
112
|
homepage: http://github.com/camertron/rux
|
|
83
113
|
licenses: []
|
|
84
114
|
metadata: {}
|
|
85
|
-
post_install_message:
|
|
86
115
|
rdoc_options: []
|
|
87
116
|
require_paths:
|
|
88
117
|
- lib
|
|
@@ -97,8 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
97
126
|
- !ruby/object:Gem::Version
|
|
98
127
|
version: '0'
|
|
99
128
|
requirements: []
|
|
100
|
-
rubygems_version: 3.
|
|
101
|
-
signing_key:
|
|
129
|
+
rubygems_version: 3.6.7
|
|
102
130
|
specification_version: 4
|
|
103
131
|
summary: A jsx-inspired way to write view components.
|
|
104
132
|
test_files: []
|