Justicar 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Justicar.gemspec +1 -1
- data/README.mdown +5 -0
- data/lib/Justicar/version.rb +1 -1
- data/lib/Justicar.rb +0 -3
- data/template/Gemfile +9 -0
- data/template/Gemfile.lock +29 -0
- data/template/public/favicon.ico +0 -0
- data/template/public/favicon.png +0 -0
- data/template/public/justicar.png +0 -0
- data/template/src/index.html.rb +2 -0
- data/template/src/style.css.rb +13 -0
- metadata +6 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b22adc821ecbac4e53ae63316017a6098442d2d5322a55b62499e6abadc1ca0
|
4
|
+
data.tar.gz: ce181785fe42f0176369dc9f25ee8fffa3e330d82d7575ab9971a00fab66df4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b77f4efe139580d9d3b4899067364f54d50c1ac44e9c4424dc71c49e179042dce33a1d5ff2915eb60629f83afd1853cbcf11155afb6420de6f1b1c38cbaaced
|
7
|
+
data.tar.gz: 2b550a0eb34ad79807eb03a12819e9f64ebc175be3ef57208e367ee4e76ce96f8d5cd1a1c5141f3cf349dfa7d3d15eda3ae1e354c041fb1988cb96371eb8e4e5
|
data/CHANGELOG.md
CHANGED
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
|
data/lib/Justicar/version.rb
CHANGED
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,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
|
data/template/src/index.html.rb
CHANGED
@@ -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
|
data/template/src/style.css.rb
CHANGED
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.
|
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
|