charsi 0.1.2 → 0.1.4
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/Gemfile +1 -1
- data/Gemfile.lock +44 -11
- data/LICENSE.txt +0 -0
- data/README.md +0 -0
- data/charsi.gemspec +3 -3
- data/lib/charsi/app.rb +7 -0
- data/lib/charsi/asset.rb +0 -0
- data/lib/charsi/builder.rb +0 -0
- data/lib/charsi/configuration.rb +1 -1
- data/lib/charsi/file.rb +0 -0
- data/lib/charsi/generator.rb +0 -0
- data/lib/charsi/server.rb +0 -0
- data/lib/charsi/template.rb +11 -1
- data/lib/charsi.rb +0 -0
- data/templates/site/Gemfile.template +0 -0
- data/templates/site/assets/css/tailwind.css.template +0 -0
- data/templates/site/assets/javascript/app.js.template +0 -0
- data/templates/site/config.yml.template +0 -0
- data/templates/site/layouts/default.erb.template +0 -0
- data/templates/site/tailwind.config.js.template +0 -0
- data/templates/site/views/index.erb.template +0 -0
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 383a30056fa0b9509776f3960cc454cdaa00c0b8b590b361cecf6bfd4cd98703
|
|
4
|
+
data.tar.gz: '03954d083f4e40062a5436ac8f3fc26a1a2c6905c2288019df0f5393863ab4f1'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1853db1c935c50e68d604fa755a8ea2b2775ee333810068255b23f46185be5866557e8560672d4ade6aa764f906e52e7d4ecf6da06f1a71cce6fb152a4589043
|
|
7
|
+
data.tar.gz: e2ed41bff4f042489e408e0f65a73a4663f0edf00a3454cfe2dd114770fba54556bb31a7afcfae0f4becd9a8dc97de37e86aff150dbf9ee538677654c19c36fe
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,37 +1,70 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
charsi (0.1.
|
|
5
|
-
filewatcher (~>
|
|
4
|
+
charsi (0.1.3)
|
|
5
|
+
filewatcher (~> 3.0)
|
|
6
6
|
logger (~> 1.6)
|
|
7
7
|
tailwindcss-ruby (~> 4.1)
|
|
8
8
|
terser (~> 1.2)
|
|
9
9
|
tilt (~> 2.6)
|
|
10
|
+
webrick (~> 1.9)
|
|
10
11
|
|
|
11
12
|
GEM
|
|
12
13
|
remote: https://rubygems.org/
|
|
13
14
|
specs:
|
|
14
15
|
execjs (2.10.0)
|
|
15
|
-
filewatcher (
|
|
16
|
-
|
|
16
|
+
filewatcher (3.0.1)
|
|
17
|
+
logger (~> 1.7)
|
|
18
|
+
module_methods (~> 1.0)
|
|
17
19
|
logger (1.7.0)
|
|
18
|
-
module_methods (
|
|
19
|
-
rake (13.3.
|
|
20
|
-
tailwindcss-ruby (4.1
|
|
20
|
+
module_methods (1.0.0)
|
|
21
|
+
rake (13.3.1)
|
|
22
|
+
tailwindcss-ruby (4.2.1)
|
|
23
|
+
tailwindcss-ruby (4.2.1-aarch64-linux-gnu)
|
|
24
|
+
tailwindcss-ruby (4.2.1-aarch64-linux-musl)
|
|
25
|
+
tailwindcss-ruby (4.2.1-arm64-darwin)
|
|
26
|
+
tailwindcss-ruby (4.2.1-x86_64-darwin)
|
|
27
|
+
tailwindcss-ruby (4.2.1-x86_64-linux-gnu)
|
|
28
|
+
tailwindcss-ruby (4.2.1-x86_64-linux-musl)
|
|
21
29
|
terser (1.2.6)
|
|
22
30
|
execjs (>= 0.3.0, < 3)
|
|
23
|
-
tilt (2.
|
|
31
|
+
tilt (2.7.0)
|
|
32
|
+
webrick (1.9.2)
|
|
24
33
|
|
|
25
34
|
PLATFORMS
|
|
26
|
-
|
|
35
|
+
aarch64-linux-gnu
|
|
36
|
+
aarch64-linux-musl
|
|
37
|
+
arm64-darwin
|
|
38
|
+
ruby
|
|
39
|
+
x86_64-darwin
|
|
40
|
+
x86_64-linux-gnu
|
|
41
|
+
x86_64-linux-musl
|
|
27
42
|
|
|
28
43
|
DEPENDENCIES
|
|
29
44
|
charsi!
|
|
30
|
-
filewatcher (~>
|
|
45
|
+
filewatcher (~> 3.0)
|
|
31
46
|
rake (~> 13.0)
|
|
32
47
|
tailwindcss-ruby (~> 4.1)
|
|
33
48
|
terser (~> 1.2)
|
|
34
49
|
tilt (~> 2.6)
|
|
35
50
|
|
|
51
|
+
CHECKSUMS
|
|
52
|
+
charsi (0.1.3)
|
|
53
|
+
execjs (2.10.0) sha256=6bcb8be8f0052ff9d370b65d1c080f2406656e150452a0abdb185a133048450d
|
|
54
|
+
filewatcher (3.0.1) sha256=b0f51e568cf112f72392053ae5ff5afa267592489091ee9f93c20fc275597f5a
|
|
55
|
+
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
|
|
56
|
+
module_methods (1.0.0) sha256=92f28a9254b8c1a7f4e68aa52242ecabdac3343ce41909aac3fcc3bf2ac8ec5e
|
|
57
|
+
rake (13.3.1) sha256=8c9e89d09f66a26a01264e7e3480ec0607f0c497a861ef16063604b1b08eb19c
|
|
58
|
+
tailwindcss-ruby (4.2.1) sha256=95886a1e24b42d76792c787d34e47098b53cb3b5a6363845bca4486f52b2e66a
|
|
59
|
+
tailwindcss-ruby (4.2.1-aarch64-linux-gnu) sha256=de457ddfc999c6bbbe1a59fbc11eb2168d619f6e0cb72d8d3334d372b331e36f
|
|
60
|
+
tailwindcss-ruby (4.2.1-aarch64-linux-musl) sha256=e6ed27704263201f8366316354aa45f9016cc9378ce8fac46fbbe65fafd4da5e
|
|
61
|
+
tailwindcss-ruby (4.2.1-arm64-darwin) sha256=bcf222fb8542cf5433925623e5e7b257897fbb8291a2350daae870a32f2eeb91
|
|
62
|
+
tailwindcss-ruby (4.2.1-x86_64-darwin) sha256=b737b84f80941628d03c703b31abb204151b9d0a494d58ed06fd8220a5162f1b
|
|
63
|
+
tailwindcss-ruby (4.2.1-x86_64-linux-gnu) sha256=201d0e5e5d4aba52cae4ee4bd1acd497d2790c83e7f15da964aab8ec93876831
|
|
64
|
+
tailwindcss-ruby (4.2.1-x86_64-linux-musl) sha256=79fa48ad51e533545f9fdbb04227e1342a65a42c2bd1314118b95473d5612007
|
|
65
|
+
terser (1.2.6) sha256=6ddf00b93df7015b07e2b9b149e74cd70fa7aa4f0f89a15d9922a6ebd13f37ab
|
|
66
|
+
tilt (2.7.0) sha256=0d5b9ba69f6a36490c64b0eee9f6e9aad517e20dcc848800a06eb116f08c6ab3
|
|
67
|
+
webrick (1.9.2) sha256=beb4a15fc474defed24a3bda4ffd88a490d517c9e4e6118c3edce59e45864131
|
|
68
|
+
|
|
36
69
|
BUNDLED WITH
|
|
37
|
-
|
|
70
|
+
4.0.3
|
data/LICENSE.txt
CHANGED
|
File without changes
|
data/README.md
CHANGED
|
File without changes
|
data/charsi.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |spec|
|
|
2
2
|
spec.name = 'charsi'
|
|
3
|
-
spec.version = '0.1.
|
|
3
|
+
spec.version = '0.1.4'
|
|
4
4
|
|
|
5
5
|
spec.authors = ['Ryan Beasse']
|
|
6
6
|
spec.email = ['me@ryanbeasse.com']
|
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.homepage = 'https://github.com/rbeasse/charsi'
|
|
10
10
|
spec.license = 'MIT'
|
|
11
11
|
|
|
12
|
-
spec.required_ruby_version = '>= 3.
|
|
12
|
+
spec.required_ruby_version = '>= 3.2.0'
|
|
13
13
|
|
|
14
14
|
spec.metadata['homepage_uri'] = spec.homepage
|
|
15
15
|
spec.metadata['source_code_uri'] = spec.homepage
|
|
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
|
|
|
27
27
|
spec.add_dependency 'terser', '~> 1.2'
|
|
28
28
|
spec.add_dependency 'tilt', '~> 2.6'
|
|
29
29
|
spec.add_dependency 'tailwindcss-ruby', '~> 4.1'
|
|
30
|
-
spec.add_dependency 'filewatcher', '~>
|
|
30
|
+
spec.add_dependency 'filewatcher', '~> 3.0'
|
|
31
31
|
spec.add_dependency 'logger', '~> 1.6'
|
|
32
32
|
spec.add_dependency 'webrick', '~> 1.9'
|
|
33
33
|
end
|
data/lib/charsi/app.rb
CHANGED
|
@@ -23,6 +23,13 @@ module Charsi
|
|
|
23
23
|
"<script src='assets/javascript/#{asset}?#{@cache_slug}'></script>"
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
+
def render_partial(partial_name, **locals)
|
|
27
|
+
partial_path = @config.path(:views_dir, "_#{partial_name}.erb")
|
|
28
|
+
template = Tilt::ERBTemplate.new(partial_path)
|
|
29
|
+
|
|
30
|
+
template.render(self, **locals)
|
|
31
|
+
end
|
|
32
|
+
|
|
26
33
|
private
|
|
27
34
|
|
|
28
35
|
def load_helpers
|
data/lib/charsi/asset.rb
CHANGED
|
File without changes
|
data/lib/charsi/builder.rb
CHANGED
|
File without changes
|
data/lib/charsi/configuration.rb
CHANGED
data/lib/charsi/file.rb
CHANGED
|
File without changes
|
data/lib/charsi/generator.rb
CHANGED
|
File without changes
|
data/lib/charsi/server.rb
CHANGED
|
File without changes
|
data/lib/charsi/template.rb
CHANGED
|
@@ -12,7 +12,9 @@ module Charsi
|
|
|
12
12
|
views_path = @config.path(:views_dir, '*.erb')
|
|
13
13
|
|
|
14
14
|
Dir.glob(views_path).each do |view|
|
|
15
|
-
|
|
15
|
+
next if File.basename(view).start_with?('_')
|
|
16
|
+
|
|
17
|
+
output_file = determine_output_filename(view)
|
|
16
18
|
output_path = @config.path(:output_dir, output_file)
|
|
17
19
|
|
|
18
20
|
processed_view = parse_erb_with_layout(view)
|
|
@@ -23,6 +25,14 @@ module Charsi
|
|
|
23
25
|
|
|
24
26
|
private
|
|
25
27
|
|
|
28
|
+
def determine_output_filename(view_path)
|
|
29
|
+
basename = File.basename(view_path, '.erb')
|
|
30
|
+
|
|
31
|
+
# If basename already has an extension, use it as-is
|
|
32
|
+
# otherwise, default to .htmli
|
|
33
|
+
basename.include?('.') ? basename : "#{basename}.html"
|
|
34
|
+
end
|
|
35
|
+
|
|
26
36
|
def parse_erb_with_layout(view_path, layout: 'default.erb')
|
|
27
37
|
layout_path = @config.path(:layout_dir, layout)
|
|
28
38
|
|
data/lib/charsi.rb
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: charsi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan Beasse
|
|
@@ -57,14 +57,14 @@ dependencies:
|
|
|
57
57
|
requirements:
|
|
58
58
|
- - "~>"
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: '
|
|
60
|
+
version: '3.0'
|
|
61
61
|
type: :runtime
|
|
62
62
|
prerelease: false
|
|
63
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements:
|
|
65
65
|
- - "~>"
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: '
|
|
67
|
+
version: '3.0'
|
|
68
68
|
- !ruby/object:Gem::Dependency
|
|
69
69
|
name: logger
|
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -135,14 +135,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
135
135
|
requirements:
|
|
136
136
|
- - ">="
|
|
137
137
|
- !ruby/object:Gem::Version
|
|
138
|
-
version: 3.
|
|
138
|
+
version: 3.2.0
|
|
139
139
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
140
|
requirements:
|
|
141
141
|
- - ">="
|
|
142
142
|
- !ruby/object:Gem::Version
|
|
143
143
|
version: '0'
|
|
144
144
|
requirements: []
|
|
145
|
-
rubygems_version:
|
|
145
|
+
rubygems_version: 4.0.3
|
|
146
146
|
specification_version: 4
|
|
147
147
|
summary: Simple static site generator.
|
|
148
148
|
test_files: []
|