rbexy 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/.rspec +1 -0
- data/.travis.yml +3 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Dockerfile +7 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +213 -0
- data/Guardfile +70 -0
- data/LICENSE.txt +21 -0
- data/README.md +452 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/docker-compose.yml +15 -0
- data/example.rb +113 -0
- data/lib/rbexy.rb +35 -0
- data/lib/rbexy/component.rb +100 -0
- data/lib/rbexy/component_providers/rbexy_provider.rb +23 -0
- data/lib/rbexy/component_providers/view_component_provider.rb +23 -0
- data/lib/rbexy/component_tag_builder.rb +19 -0
- data/lib/rbexy/configuration.rb +15 -0
- data/lib/rbexy/hash_mash.rb +15 -0
- data/lib/rbexy/lexer.rb +279 -0
- data/lib/rbexy/nodes.rb +142 -0
- data/lib/rbexy/output_buffer.rb +8 -0
- data/lib/rbexy/parser.rb +204 -0
- data/lib/rbexy/rails.rb +8 -0
- data/lib/rbexy/rails/engine.rb +25 -0
- data/lib/rbexy/rails/template_handler.rb +9 -0
- data/lib/rbexy/runtime.rb +33 -0
- data/lib/rbexy/version.rb +3 -0
- data/lib/rbexy/view_context_helper.rb +11 -0
- data/rbexy.gemspec +40 -0
- metadata +269 -0
data/rbexy.gemspec
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
require_relative 'lib/rbexy/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "rbexy"
|
5
|
+
spec.version = Rbexy::VERSION
|
6
|
+
spec.authors = ["Nick Giancola"]
|
7
|
+
spec.email = ["patbenatar@gmail.com"]
|
8
|
+
|
9
|
+
spec.summary = "A Ruby template language inspired by JSX"
|
10
|
+
spec.homepage = "https://github.com/patbenatar/rbexy"
|
11
|
+
spec.license = "MIT"
|
12
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
13
|
+
|
14
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
15
|
+
|
16
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
17
|
+
spec.metadata["source_code_uri"] = "https://github.com/patbenatar/rbexy"
|
18
|
+
|
19
|
+
# Specify which files should be added to the gem when it is released.
|
20
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
21
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
22
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
23
|
+
end
|
24
|
+
spec.bindir = "exe"
|
25
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
26
|
+
spec.require_paths = ["lib"]
|
27
|
+
|
28
|
+
spec.add_dependency "activesupport", ">= 5.0", "< 7.0"
|
29
|
+
spec.add_dependency "actionview", ">= 5.0", "< 7.0"
|
30
|
+
spec.add_dependency "railties", ">= 5.0", "< 7.0"
|
31
|
+
|
32
|
+
spec.add_development_dependency "rails", ">= 5.0", "< 7.0"
|
33
|
+
spec.add_development_dependency "rspec", "~> 3.9"
|
34
|
+
spec.add_development_dependency "guard-rspec", "~> 4.7", ">= 4.7.3"
|
35
|
+
spec.add_development_dependency "rspec-rails", "~> 4.0", ">= 4.0.1"
|
36
|
+
spec.add_development_dependency "rspec-html-matchers", "~> 0.9.3"
|
37
|
+
spec.add_development_dependency "rake"
|
38
|
+
spec.add_development_dependency "pry-byebug"
|
39
|
+
spec.add_development_dependency "sqlite3"
|
40
|
+
end
|
metadata
ADDED
@@ -0,0 +1,269 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rbexy
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Nick Giancola
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-10-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '5.0'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '7.0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '5.0'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '7.0'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: actionview
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '5.0'
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '7.0'
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '5.0'
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '7.0'
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: railties
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '5.0'
|
60
|
+
- - "<"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '7.0'
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '5.0'
|
70
|
+
- - "<"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '7.0'
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: rails
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '5.0'
|
80
|
+
- - "<"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '7.0'
|
83
|
+
type: :development
|
84
|
+
prerelease: false
|
85
|
+
version_requirements: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '5.0'
|
90
|
+
- - "<"
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '7.0'
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: rspec
|
95
|
+
requirement: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - "~>"
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '3.9'
|
100
|
+
type: :development
|
101
|
+
prerelease: false
|
102
|
+
version_requirements: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - "~>"
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '3.9'
|
107
|
+
- !ruby/object:Gem::Dependency
|
108
|
+
name: guard-rspec
|
109
|
+
requirement: !ruby/object:Gem::Requirement
|
110
|
+
requirements:
|
111
|
+
- - "~>"
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '4.7'
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: 4.7.3
|
117
|
+
type: :development
|
118
|
+
prerelease: false
|
119
|
+
version_requirements: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '4.7'
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: 4.7.3
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: rspec-rails
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - "~>"
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '4.0'
|
134
|
+
- - ">="
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: 4.0.1
|
137
|
+
type: :development
|
138
|
+
prerelease: false
|
139
|
+
version_requirements: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - "~>"
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '4.0'
|
144
|
+
- - ">="
|
145
|
+
- !ruby/object:Gem::Version
|
146
|
+
version: 4.0.1
|
147
|
+
- !ruby/object:Gem::Dependency
|
148
|
+
name: rspec-html-matchers
|
149
|
+
requirement: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - "~>"
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: 0.9.3
|
154
|
+
type: :development
|
155
|
+
prerelease: false
|
156
|
+
version_requirements: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - "~>"
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: 0.9.3
|
161
|
+
- !ruby/object:Gem::Dependency
|
162
|
+
name: rake
|
163
|
+
requirement: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - ">="
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: '0'
|
168
|
+
type: :development
|
169
|
+
prerelease: false
|
170
|
+
version_requirements: !ruby/object:Gem::Requirement
|
171
|
+
requirements:
|
172
|
+
- - ">="
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: '0'
|
175
|
+
- !ruby/object:Gem::Dependency
|
176
|
+
name: pry-byebug
|
177
|
+
requirement: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - ">="
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
type: :development
|
183
|
+
prerelease: false
|
184
|
+
version_requirements: !ruby/object:Gem::Requirement
|
185
|
+
requirements:
|
186
|
+
- - ">="
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
version: '0'
|
189
|
+
- !ruby/object:Gem::Dependency
|
190
|
+
name: sqlite3
|
191
|
+
requirement: !ruby/object:Gem::Requirement
|
192
|
+
requirements:
|
193
|
+
- - ">="
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
version: '0'
|
196
|
+
type: :development
|
197
|
+
prerelease: false
|
198
|
+
version_requirements: !ruby/object:Gem::Requirement
|
199
|
+
requirements:
|
200
|
+
- - ">="
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: '0'
|
203
|
+
description:
|
204
|
+
email:
|
205
|
+
- patbenatar@gmail.com
|
206
|
+
executables: []
|
207
|
+
extensions: []
|
208
|
+
extra_rdoc_files: []
|
209
|
+
files:
|
210
|
+
- ".gitignore"
|
211
|
+
- ".rspec"
|
212
|
+
- ".travis.yml"
|
213
|
+
- CODE_OF_CONDUCT.md
|
214
|
+
- Dockerfile
|
215
|
+
- Gemfile
|
216
|
+
- Gemfile.lock
|
217
|
+
- Guardfile
|
218
|
+
- LICENSE.txt
|
219
|
+
- README.md
|
220
|
+
- Rakefile
|
221
|
+
- bin/console
|
222
|
+
- bin/setup
|
223
|
+
- docker-compose.yml
|
224
|
+
- example.rb
|
225
|
+
- lib/rbexy.rb
|
226
|
+
- lib/rbexy/component.rb
|
227
|
+
- lib/rbexy/component_providers/rbexy_provider.rb
|
228
|
+
- lib/rbexy/component_providers/view_component_provider.rb
|
229
|
+
- lib/rbexy/component_tag_builder.rb
|
230
|
+
- lib/rbexy/configuration.rb
|
231
|
+
- lib/rbexy/hash_mash.rb
|
232
|
+
- lib/rbexy/lexer.rb
|
233
|
+
- lib/rbexy/nodes.rb
|
234
|
+
- lib/rbexy/output_buffer.rb
|
235
|
+
- lib/rbexy/parser.rb
|
236
|
+
- lib/rbexy/rails.rb
|
237
|
+
- lib/rbexy/rails/engine.rb
|
238
|
+
- lib/rbexy/rails/template_handler.rb
|
239
|
+
- lib/rbexy/runtime.rb
|
240
|
+
- lib/rbexy/version.rb
|
241
|
+
- lib/rbexy/view_context_helper.rb
|
242
|
+
- rbexy.gemspec
|
243
|
+
homepage: https://github.com/patbenatar/rbexy
|
244
|
+
licenses:
|
245
|
+
- MIT
|
246
|
+
metadata:
|
247
|
+
allowed_push_host: https://rubygems.org
|
248
|
+
homepage_uri: https://github.com/patbenatar/rbexy
|
249
|
+
source_code_uri: https://github.com/patbenatar/rbexy
|
250
|
+
post_install_message:
|
251
|
+
rdoc_options: []
|
252
|
+
require_paths:
|
253
|
+
- lib
|
254
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
255
|
+
requirements:
|
256
|
+
- - ">="
|
257
|
+
- !ruby/object:Gem::Version
|
258
|
+
version: 2.3.0
|
259
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
260
|
+
requirements:
|
261
|
+
- - ">="
|
262
|
+
- !ruby/object:Gem::Version
|
263
|
+
version: '0'
|
264
|
+
requirements: []
|
265
|
+
rubygems_version: 3.1.2
|
266
|
+
signing_key:
|
267
|
+
specification_version: 4
|
268
|
+
summary: A Ruby template language inspired by JSX
|
269
|
+
test_files: []
|