Justicar 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 408dfbb73b156132cf179a3f64fa235ef7b9075f5f3742e1245b6ebdb2a1e12f
4
- data.tar.gz: c39d1918d45a312c9ad4c05edcc4dcca5ef2de37e286d7a3621f38925289ec28
3
+ metadata.gz: 2b22adc821ecbac4e53ae63316017a6098442d2d5322a55b62499e6abadc1ca0
4
+ data.tar.gz: ce181785fe42f0176369dc9f25ee8fffa3e330d82d7575ab9971a00fab66df4e
5
5
  SHA512:
6
- metadata.gz: 3398a9b7c42ad27cf586671e3c24d93c1affcdceb21d4905129e80755b9e79fb7790ae846bab0434d9e5de2493c1f2db474604c47975c2de7c8d8762eff45d69
7
- data.tar.gz: ccf19ce74161fcedad9b5a7f505c1e2bc6eea525d3205e4df7c754cf60fda081026e70031691565bedc958310865c0da47982fcba2eb01e6fef6acdbcbc49fe0
6
+ metadata.gz: 3b77f4efe139580d9d3b4899067364f54d50c1ac44e9c4424dc71c49e179042dce33a1d5ff2915eb60629f83afd1853cbcf11155afb6420de6f1b1c38cbaaced
7
+ data.tar.gz: 2b550a0eb34ad79807eb03a12819e9f64ebc175be3ef57208e367ee4e76ce96f8d5cd1a1c5141f3cf349dfa7d3d15eda3ae1e354c041fb1988cb96371eb8e4e5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.1.1] - 2022-04-21
4
+
5
+ - Better template
6
+ - Cleanup some print statements
7
+ - Logos and prettified readme
8
+
3
9
  ## [0.1.0] - 2022-04-20
4
10
 
5
11
  - Initial release
data/Justicar.gemspec CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
25
25
  spec.files = Dir.chdir(__dir__) do
26
26
  `git ls-files -z`.split("\x0").reject do |f|
27
- (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
27
+ (f == __FILE__) || f.match(%r{\A(?:(?:bin|logo|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
28
28
  end
29
29
  end
30
30
  spec.bindir = "exe"
data/README.mdown CHANGED
@@ -1,5 +1,10 @@
1
+ ![Justicar](https://github.com/realtradam/Justicar/blob/master/template/public/justicar.png?raw=true)
2
+
1
3
  # Justicar
2
4
 
5
+ [![MIT License](https://img.shields.io/github/license/realtradam/Justicar?style=flat)](https://github.com/realtradam/Justicar/blob/master/LICENSE.txt)
6
+ [![Ko-Fi](https://img.shields.io/static/v1?message=Buy%20me%20a%20coffee&logo=kofi&labelColor=ff5e5b&color=434B57&logoColor=white&label=%20)](https://ko-fi.com/tradam)
7
+
3
8
  A Ruby obsessed static website generator that does web development Justice!
4
9
 
5
10
  ## Installation
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Justicar
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
data/lib/Justicar.rb CHANGED
@@ -54,10 +54,8 @@ class Justicar
54
54
  FileUtils.mkdir target_dir
55
55
  end
56
56
  hash.each do |key, val|
57
- puts "key: #{key}, val: #{val}"
58
57
  if val.is_a? String
59
58
  file_name, type, _rb = key.to_s.split('.')
60
- puts "filename: #{file_name}, type: #{type}"
61
59
  File.open("#{target_dir}/#{file_name}.#{type}", "w") do |file|
62
60
  file.write(val)
63
61
  end
@@ -68,7 +66,6 @@ class Justicar
68
66
  self.build("#{target_dir}/#{key}", hash)
69
67
  end
70
68
  end
71
- puts File.expand_path(File.dirname(__FILE__))
72
69
  end
73
70
 
74
71
  def output
data/template/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "webrick", "~> 1.7"
6
+
7
+ gem "opal-browser", "~> 0.3.3"
8
+
9
+ gem "Justicar", "~> 0.1.0"
@@ -0,0 +1,29 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ Justicar (0.1.0)
5
+ opal (~> 1.5)
6
+ opal-browser (~> 0.3.3)
7
+ paggio (~> 0.3.0)
8
+ ast (2.4.2)
9
+ opal (1.5.0)
10
+ ast (>= 2.3.0)
11
+ parser (~> 3.0, >= 3.0.3.2)
12
+ opal-browser (0.3.3)
13
+ opal (>= 1.0, < 2.0)
14
+ paggio (>= 0.3.0)
15
+ paggio (0.3.0)
16
+ parser (3.1.2.0)
17
+ ast (~> 2.4.1)
18
+ webrick (1.7.0)
19
+
20
+ PLATFORMS
21
+ x86_64-linux
22
+
23
+ DEPENDENCIES
24
+ Justicar (~> 0.1.0)
25
+ opal-browser (~> 0.3.3)
26
+ webrick (~> 1.7)
27
+
28
+ BUNDLED WITH
29
+ 2.3.12
Binary file
Binary file
Binary file
@@ -1,6 +1,8 @@
1
1
  Paggio.html do
2
2
  script type: "text/javascript", src: "script.js"
3
3
  link rel: "stylesheet", href: "style.css"
4
+ link rel: 'icon', type: 'image/x-icon', href: 'favicon.ico'
5
+ img.justicar(src: 'justicar.png', alt: 'Justicar', height: '400px')
4
6
  h1 { "Hello world from Justicar" }
5
7
  hr
6
8
  h2.paggio do
@@ -1,4 +1,17 @@
1
1
  Paggio.css do
2
+ rule 'body' do
3
+ height 100.vh
4
+ end
5
+
6
+ rule '.justicar' do
7
+ top 134.px
8
+ left 360.px
9
+ opacity 0.7
10
+ position 'absolute'
11
+ width 400.px
12
+ height 'auto'
13
+ end
14
+
2
15
  rule '.opal' do
3
16
  color :dodgerblue
4
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Justicar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - _Tradam
@@ -71,7 +71,12 @@ files:
71
71
  - lib/Justicar.rb
72
72
  - lib/Justicar/version.rb
73
73
  - sig/Justicar.rbs
74
+ - template/Gemfile
75
+ - template/Gemfile.lock
74
76
  - template/Rakefile
77
+ - template/public/favicon.ico
78
+ - template/public/favicon.png
79
+ - template/public/justicar.png
75
80
  - template/src/index.html.rb
76
81
  - template/src/script.js.rb
77
82
  - template/src/style.css.rb