diff options
| -rw-r--r-- | CHANGELOG.md | 6 | ||||
| -rw-r--r-- | Justicar.gemspec | 2 | ||||
| -rw-r--r-- | README.mdown | 5 | ||||
| -rw-r--r-- | lib/Justicar.rb | 3 | ||||
| -rw-r--r-- | lib/Justicar/version.rb | 2 | ||||
| -rw-r--r-- | logo/justicar_logo.svg | 119 | ||||
| -rw-r--r-- | template/Gemfile | 9 | ||||
| -rw-r--r-- | template/Gemfile.lock | 29 | ||||
| -rw-r--r-- | template/public/favicon.ico | bin | 0 -> 15406 bytes | |||
| -rw-r--r-- | template/public/favicon.png | bin | 0 -> 1566 bytes | |||
| -rw-r--r-- | template/public/justicar.png | bin | 0 -> 38093 bytes | |||
| -rw-r--r-- | template/src/index.html.rb | 2 | ||||
| -rw-r--r-- | template/src/style.css.rb | 13 |
13 files changed, 185 insertions, 5 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 148f4a9..5407279 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ ## [Unreleased] +## [0.1.1] - 2022-04-21 + +- Better template +- Cleanup some print statements +- Logos and prettified readme + ## [0.1.0] - 2022-04-20 - Initial release diff --git a/Justicar.gemspec b/Justicar.gemspec index b33f7d0..8b690af 100644 --- a/Justicar.gemspec +++ b/Justicar.gemspec @@ -24,7 +24,7 @@ Gem::Specification.new do |spec| # The `git ls-files -z` loads the files in the RubyGem that have been added into git. spec.files = Dir.chdir(__dir__) do `git ls-files -z`.split("\x0").reject do |f| - (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)}) + (f == __FILE__) || f.match(%r{\A(?:(?:bin|logo|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)}) end end spec.bindir = "exe" diff --git a/README.mdown b/README.mdown index 19cd579..1252553 100644 --- a/README.mdown +++ b/README.mdown @@ -1,5 +1,10 @@ +  + # Justicar +[](https://github.com/realtradam/Justicar/blob/master/LICENSE.txt) +[](https://ko-fi.com/tradam) + A Ruby obsessed static website generator that does web development Justice! ## Installation diff --git a/lib/Justicar.rb b/lib/Justicar.rb index e57845e..5abf901 100644 --- a/lib/Justicar.rb +++ b/lib/Justicar.rb @@ -54,10 +54,8 @@ class Justicar FileUtils.mkdir target_dir end hash.each do |key, val| - puts "key: #{key}, val: #{val}" if val.is_a? String file_name, type, _rb = key.to_s.split('.') - puts "filename: #{file_name}, type: #{type}" File.open("#{target_dir}/#{file_name}.#{type}", "w") do |file| file.write(val) end @@ -68,7 +66,6 @@ class Justicar self.build("#{target_dir}/#{key}", hash) end end - puts File.expand_path(File.dirname(__FILE__)) end def output diff --git a/lib/Justicar/version.rb b/lib/Justicar/version.rb index 36efc46..55f99c0 100644 --- a/lib/Justicar/version.rb +++ b/lib/Justicar/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true class Justicar - VERSION = "0.1.0" + VERSION = "0.1.1" end diff --git a/logo/justicar_logo.svg b/logo/justicar_logo.svg new file mode 100644 index 0000000..f1b1c7f --- /dev/null +++ b/logo/justicar_logo.svg @@ -0,0 +1,119 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + width="182.11775mm" + height="189.93123mm" + viewBox="0 0 182.11775 189.93123" + version="1.1" + id="svg5" + inkscape:version="1.1.2 (0a00cf5339, 2022-02-04, custom)" + sodipodi:docname="justicar_logo.svg" + inkscape:export-filename="/home/tradam/Documents/Web/Justicar/template/public/justicar.png" + inkscape:export-xdpi="117.48518" + inkscape:export-ydpi="117.48518" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg"> + <sodipodi:namedview + id="namedview7" + pagecolor="#505050" + bordercolor="#eeeeee" + borderopacity="1" + inkscape:pageshadow="0" + inkscape:pageopacity="0" + inkscape:pagecheckerboard="0" + inkscape:document-units="mm" + showgrid="false" + showguides="true" + inkscape:guide-bbox="true" + fit-margin-top="10" + fit-margin-left="10" + fit-margin-right="10" + fit-margin-bottom="10" + inkscape:zoom="0.42142195" + inkscape:cx="84.109991" + inkscape:cy="149.56628" + inkscape:window-width="1568" + inkscape:window-height="843" + inkscape:window-x="15" + inkscape:window-y="15" + inkscape:window-maximized="1" + inkscape:current-layer="g2333"> + <sodipodi:guide + position="242.77745,198.05037" + orientation="-1,0" + id="guide1300" + inkscape:label="" + inkscape:locked="false" + inkscape:color="rgb(0,0,255)" /> + </sodipodi:namedview> + <defs + id="defs2" /> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1" + transform="translate(-17.7828,-21.434772)"> + <g + id="g2333"> + <path + id="path1066" + style="fill:#808080;fill-rule:evenodd;stroke-width:1.10189;stroke-linecap:round;stroke-linejoin:round" + inkscape:transform-center-x="1.0848444e-06" + inkscape:transform-center-y="28.321906" + d="M 411.37109,135.91992 V 761.06836 C 606.1776,761.06406 717.73438,118.80859 717.73438,118.80859 Z" + transform="scale(0.26458333)" /> + <path + id="path2804" + style="fill:#666666;fill-rule:evenodd;stroke-width:1.10189;stroke-linecap:round;stroke-linejoin:round" + inkscape:transform-center-x="1.0848444e-06" + inkscape:transform-center-y="28.321906" + d="m 105.00586,118.80859 c 0,0 111.55556,642.25977 306.36328,642.25977 6.5e-4,0 10e-4,0 0.002,0 V 135.91992 Z" + transform="scale(0.26458333)" /> + <path + id="path1708" + style="fill:#b3b3b3;fill-rule:evenodd;stroke-width:0.976237;stroke-linecap:round;stroke-linejoin:round" + inkscape:transform-center-x="1.6645834e-06" + inkscape:transform-center-y="25.63317" + d="M 411.37109,184.33789 145.66797,147.22266 c 0,0 96.74938,581.28906 265.70117,581.28906 6.5e-4,0 10e-4,0 0.002,0 z" + transform="scale(0.26458333)" /> + <path + id="path2568" + style="fill:#cccccc;fill-rule:evenodd;stroke-width:0.976237;stroke-linecap:round;stroke-linejoin:round" + inkscape:transform-center-x="1.6645834e-06" + inkscape:transform-center-y="25.63317" + d="m 411.37109,184.33789 v 544.17383 c 168.95059,-0.004 265.70118,-581.28906 265.70118,-581.28906 z" + transform="scale(0.26458333)" /> + <path + id="path1923" + style="fill:#aa0000;fill-rule:evenodd;stroke-width:1.00157;stroke-linecap:round;stroke-linejoin:round" + inkscape:transform-center-x="1.3712378e-06" + inkscape:transform-center-y="8.7207673" + d="M 411.37109,357.38281 297.19336,321.3418 411.37109,519.10352 Z" + transform="scale(0.26458333)" /> + <path + id="path3217" + style="fill:#d40000;fill-rule:evenodd;stroke-width:1.00157;stroke-linecap:round;stroke-linejoin:round" + inkscape:transform-center-x="1.3712378e-06" + inkscape:transform-center-y="8.7207673" + d="M 411.37109,285.30078 297.19336,321.3418 411.37109,357.38281 Z" + transform="scale(0.26458333)" /> + <path + id="path2686" + style="fill:#ff0000;fill-rule:evenodd;stroke-width:1.00157;stroke-linecap:round;stroke-linejoin:round" + inkscape:transform-center-x="1.3712378e-06" + inkscape:transform-center-y="8.7207673" + d="M 525.54883,321.3418 411.37109,357.38281 V 519.10352 Z" + transform="scale(0.26458333)" /> + <path + id="path3220" + style="fill:#ff2a2a;fill-rule:evenodd;stroke-width:1.00157;stroke-linecap:round;stroke-linejoin:round" + inkscape:transform-center-x="1.3712378e-06" + inkscape:transform-center-y="8.7207673" + d="m 411.37109,285.30078 v 72.08203 L 525.54883,321.3418 Z" + transform="scale(0.26458333)" /> + </g> + </g> +</svg> diff --git a/template/Gemfile b/template/Gemfile new file mode 100644 index 0000000..be6f9dc --- /dev/null +++ b/template/Gemfile @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +source "https://rubygems.org" + +gem "webrick", "~> 1.7" + +gem "opal-browser", "~> 0.3.3" + +gem "Justicar", "~> 0.1.0" diff --git a/template/Gemfile.lock b/template/Gemfile.lock new file mode 100644 index 0000000..7072eae --- /dev/null +++ b/template/Gemfile.lock @@ -0,0 +1,29 @@ +GEM + remote: https://rubygems.org/ + specs: + Justicar (0.1.0) + opal (~> 1.5) + opal-browser (~> 0.3.3) + paggio (~> 0.3.0) + ast (2.4.2) + opal (1.5.0) + ast (>= 2.3.0) + parser (~> 3.0, >= 3.0.3.2) + opal-browser (0.3.3) + opal (>= 1.0, < 2.0) + paggio (>= 0.3.0) + paggio (0.3.0) + parser (3.1.2.0) + ast (~> 2.4.1) + webrick (1.7.0) + +PLATFORMS + x86_64-linux + +DEPENDENCIES + Justicar (~> 0.1.0) + opal-browser (~> 0.3.3) + webrick (~> 1.7) + +BUNDLED WITH + 2.3.12 diff --git a/template/public/favicon.ico b/template/public/favicon.ico Binary files differnew file mode 100644 index 0000000..0ec3748 --- /dev/null +++ b/template/public/favicon.ico diff --git a/template/public/favicon.png b/template/public/favicon.png Binary files differnew file mode 100644 index 0000000..5a99253 --- /dev/null +++ b/template/public/favicon.png diff --git a/template/public/justicar.png b/template/public/justicar.png Binary files differnew file mode 100644 index 0000000..252bac4 --- /dev/null +++ b/template/public/justicar.png diff --git a/template/src/index.html.rb b/template/src/index.html.rb index cefcf6f..9c34064 100644 --- a/template/src/index.html.rb +++ b/template/src/index.html.rb @@ -1,6 +1,8 @@ Paggio.html do script type: "text/javascript", src: "script.js" link rel: "stylesheet", href: "style.css" + link rel: 'icon', type: 'image/x-icon', href: 'favicon.ico' + img.justicar(src: 'justicar.png', alt: 'Justicar', height: '400px') h1 { "Hello world from Justicar" } hr h2.paggio do diff --git a/template/src/style.css.rb b/template/src/style.css.rb index d9684e3..9a41dad 100644 --- a/template/src/style.css.rb +++ b/template/src/style.css.rb @@ -1,4 +1,17 @@ Paggio.css do + rule 'body' do + height 100.vh + end + + rule '.justicar' do + top 134.px + left 360.px + opacity 0.7 + position 'absolute' + width 400.px + height 'auto' + end + rule '.opal' do color :dodgerblue end |
