jetski 0.3.2 → 0.3.3
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d01eb3967fa2528047cd44f6febbce3812545582bfd41578bc80c75dcd88d198
|
|
4
|
+
data.tar.gz: 787d378ad536c27338201f829f51e3727aa87f9f54e7090d18104087f2e63f91
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c35e892800c34e6c3f4bcad62b96d98d547f9380564e363b954df9719c33af9f22626f22a008c6d47135b047d8c5a317605471672bff142f4fa0515c1aa167a3
|
|
7
|
+
data.tar.gz: a2b9a659f588215404a3435688dd250917c179b7aecade731bd56efc5863fe6ca694abd257dd569b2746cd374f05c2d8b18980cb7dac7667a4f2c080eb509b44
|
data/bin/jetski
CHANGED
|
@@ -12,6 +12,8 @@ class JetskiCLI < Thor
|
|
|
12
12
|
FileUtils.mkdir_p(name)
|
|
13
13
|
say "Creating #{name} app with Jetski!"
|
|
14
14
|
directory "base", "#{name}"
|
|
15
|
+
gsub_file "#{name}/app/views/layouts/application.html", /APP_NAME/, name.capitalize
|
|
16
|
+
gsub_file "#{name}/app/views/pages/home.html", /APP_NAME/, name.capitalize
|
|
15
17
|
run "cd #{name} && bundle install"
|
|
16
18
|
say "Your app #{name} has been generated!"
|
|
17
19
|
say "Start you're app fast with this command"
|
data/lib/jetski/router.rb
CHANGED
|
@@ -75,10 +75,10 @@ module Jetski
|
|
|
75
75
|
|
|
76
76
|
def host_images
|
|
77
77
|
# TODO: Expand this to support more types of images.
|
|
78
|
-
|
|
79
|
-
image_files = Dir
|
|
80
|
-
File.join(Jetski.app_root,
|
|
81
|
-
|
|
78
|
+
file_ext_types = ["png", "jpg"]
|
|
79
|
+
image_files = Dir.glob(
|
|
80
|
+
file_ext_types.map { |ext| File.join(Jetski.app_root, "app/assets/images/*.#{ext}") }
|
|
81
|
+
)
|
|
82
82
|
image_files.each do |file_path|
|
|
83
83
|
filename = file_path.split("/").last
|
|
84
84
|
asset_url = "/#{filename}"
|
data/lib/jetski/version.rb
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.home-page {
|
|
2
|
+
--primary-color: hsl(240, 63%, 45%);
|
|
3
|
+
--secondary-color: hsl(202, 66%, 40%);
|
|
4
|
+
|
|
5
|
+
min-height: 100vh;
|
|
6
|
+
width: 100%;
|
|
7
|
+
background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
align-items: center;
|
|
11
|
+
|
|
12
|
+
.header {
|
|
13
|
+
font-size: 64px;
|
|
14
|
+
color: hsl(from var(--primary-color) h s calc(l + 50))
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
6
|
-
<title>
|
|
6
|
+
<title> APP_NAME </title>
|
|
7
7
|
<link rel="stylesheet" href="/application.css">
|
|
8
8
|
<link rel="icon" type="image/x-icon" href="/jetski-logo.png">
|
|
9
9
|
DYNAMIC_CSS
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jetski
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Indigo Tech Tutorials
|
|
@@ -55,6 +55,7 @@ files:
|
|
|
55
55
|
- templates/base/Gemfile
|
|
56
56
|
- templates/base/app/assets/images/jetski-logo.png
|
|
57
57
|
- templates/base/app/assets/stylesheets/application.css
|
|
58
|
+
- templates/base/app/assets/stylesheets/pages.css
|
|
58
59
|
- templates/base/app/controllers/pages_controller.rb
|
|
59
60
|
- templates/base/app/views/layouts/application.html
|
|
60
61
|
- templates/base/app/views/pages/home.html
|