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: 746e669c9cd0109b9c5d11bc04b8eeda814b529f211ea5cf8aafd1531aa651e3
4
- data.tar.gz: d178172efe91cc4f611d0cf1c5225871d70ea8718af834d21648f7eb51de2324
3
+ metadata.gz: d01eb3967fa2528047cd44f6febbce3812545582bfd41578bc80c75dcd88d198
4
+ data.tar.gz: 787d378ad536c27338201f829f51e3727aa87f9f54e7090d18104087f2e63f91
5
5
  SHA512:
6
- metadata.gz: 7c8b29c0de093d02b4a3c72401210e54c97bd09615ef3894d216f7b2ede33878ee3b30ecd329cfbde8427951709ca983f04a8e152b0c2fe4d91370edae65a8d9
7
- data.tar.gz: fd259f11692b58f01c5cdf82e462ea573ded074fa71924764d7932bbe42494c1e76861ca87030531f9279f1394daf321abfbe882656b92379b617e2f274810a3
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, 'app/assets/images/*.jpg')
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}"
@@ -1,3 +1,3 @@
1
1
  module Jetski
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
@@ -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> Jetski app </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
@@ -1 +1,3 @@
1
- <h1> Welcome to your first jetski app! </h1>
1
+ <div class="home-page">
2
+ <h1 class="header"> APP_NAME </h1>
3
+ </div>
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.2
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