kaze 0.19.0 → 1.0.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: aa6a78f69e128906909327d2233d5fd252568c806350bc6d5cec5e69bc06b219
4
- data.tar.gz: 7740b4d8df943b329f17da7d8a87661a6c8ae1797de45a2fed02f02954e0020b
3
+ metadata.gz: 336badecc2e53010ae7f52cee62d408f0b96ecd531d75756e2b5d41a39562705
4
+ data.tar.gz: 59584c2cc1af205395911e560095118893912880d472a4f34bab62dd19c0e7a5
5
5
  SHA512:
6
- metadata.gz: c46e489d3b97cf507582aa86ce8fc22c91e144cd1e4ec62d227578a8b7bac80e39d2f499f129816439dcfb35423e7b9b438adb452e54b777b41a42977444180b
7
- data.tar.gz: 8528922d6e3d8b5b11d8d4c25c0523140ab50632c55292c0a204df19e2974511e242a3fd75487e0a76489e593991c8fc9147627797b4bd6fe253f55dff72774b
6
+ metadata.gz: be7e44a88f14d01c30678d1496b67812555c0b310929e5ee0076e2e3ce57861252dba469f48c301633fe37d709ce07104cef203f240cfe0273efdfe26f353144
7
+ data.tar.gz: d6189eea9107e68cd86365296626a2cfa058530c91e33b6e4fcbdca28930a81c1f19d026211f38468b80fda3540b7b560a8fcd974f9b3cdc3d56ac1e3bca76e0
@@ -16,7 +16,7 @@ class Kaze::Commands::App::BaseStack
16
16
 
17
17
  return true if gem_being_installed.empty?
18
18
 
19
- status = run_command("bundle add #{gem_being_installed.join(" ")}#{group ? " --group \"#{group}\"" : ""}")
19
+ status = run_command("#{Dir.pwd}/bin/bundle add #{gem_being_installed.join(" ")}#{group ? " --group \"#{group}\"" : ""}")
20
20
 
21
21
  status.success?
22
22
  end
@@ -28,7 +28,7 @@ class Kaze::Commands::App::BaseStack
28
28
 
29
29
  return true if gems_being_removed.empty?
30
30
 
31
- status = run_command("bundle remove #{gems_being_removed.join(" ")}")
31
+ status = run_command("#{Dir.pwd}/bin/bundle remove #{gems_being_removed.join(" ")}")
32
32
 
33
33
  status.success?
34
34
  end
@@ -2,7 +2,8 @@ class Kaze::Commands::App::HotwireStack < Kaze::Commands::App::BaseStack
2
2
  def install
3
3
  # Gems...
4
4
  return unless remove_gems([ 'sprockets-rails', 'stimulus-rails' ])
5
- return unless install_gems([ 'propshaft', 'view_component', 'tailwindcss-rails', 'turbo-rails', 'dotenv', 'bcrypt' ])
5
+ return unless install_gems([ 'propshaft', 'view_component', 'turbo-rails', 'dotenv', 'bcrypt' ])
6
+ run_command("#{Dir.pwd}/bin/bundle add tailwindcss-rails --version=\"~> 3.0\"")
6
7
  return unless install_gems([ 'hotwire-livereload' ], 'development')
7
8
  return unless install_gems([ 'factory_bot_rails', 'faker' ], 'development, test')
8
9
 
@@ -2,7 +2,8 @@ class Kaze::Commands::App::InertiaReactStack < Kaze::Commands::App::BaseStack
2
2
  def install
3
3
  # Gems...
4
4
  return unless remove_gems([ 'sprockets-rails', 'turbo-rails', 'stimulus-rails' ])
5
- return unless install_gems([ 'propshaft', 'tailwindcss-rails', 'inertia_rails', 'vite_rails', 'dotenv', 'bcrypt', 'js-routes' ])
5
+ return unless install_gems([ 'propshaft', 'inertia_rails', 'vite_rails', 'dotenv', 'bcrypt', 'js-routes' ])
6
+ run_command("#{Dir.pwd}/bin/bundle add tailwindcss-rails --version=\"~> 3.0\"")
6
7
  return unless install_gems([ 'factory_bot_rails', 'faker' ], 'development, test')
7
8
 
8
9
  # NPM Packages...
@@ -69,7 +70,7 @@ class Kaze::Commands::App::InertiaReactStack < Kaze::Commands::App::BaseStack
69
70
  run_commands([ 'pnpm install', 'pnpm run build' ])
70
71
  elsif File.exist?("#{Dir.pwd}/yarn.lock")
71
72
  run_commands([ 'yarn install', 'yarn build' ])
72
- elsif File.exist?("#{Dir.pwd}/bun.lockb")
73
+ elsif File.exist?("#{Dir.pwd}/bun.lock") || File.exist?("#{Dir.pwd}/bun.lockb")
73
74
  run_commands([ 'bun install', 'bun run build' ])
74
75
  else
75
76
  run_commands([ 'npm install', 'npm run build' ])
@@ -2,7 +2,8 @@ class Kaze::Commands::App::InertiaVueStack < Kaze::Commands::App::BaseStack
2
2
  def install
3
3
  # Gems...
4
4
  return unless remove_gems([ 'sprockets-rails', 'turbo-rails', 'stimulus-rails' ])
5
- return unless install_gems([ 'propshaft', 'tailwindcss-rails', 'inertia_rails', 'vite_rails', 'dotenv', 'bcrypt', 'js-routes' ])
5
+ return unless install_gems([ 'propshaft', 'inertia_rails', 'vite_rails', 'dotenv', 'bcrypt', 'js-routes' ])
6
+ run_command("#{Dir.pwd}/bin/bundle add tailwindcss-rails --version=\"~> 3.0\"")
6
7
  return unless install_gems([ 'factory_bot_rails', 'faker' ], 'development, test')
7
8
 
8
9
  # NPM Packages...
@@ -69,7 +70,7 @@ class Kaze::Commands::App::InertiaVueStack < Kaze::Commands::App::BaseStack
69
70
  run_commands([ 'pnpm install', 'pnpm run build' ])
70
71
  elsif File.exist?("#{Dir.pwd}/yarn.lock")
71
72
  run_commands([ 'yarn install', 'yarn build' ])
72
- elsif File.exist?("#{Dir.pwd}/bun.lockb")
73
+ elsif File.exist?("#{Dir.pwd}/bun.lock") || File.exist?("#{Dir.pwd}/bun.lockb")
73
74
  run_commands([ 'bun install', 'bun run build' ])
74
75
  else
75
76
  run_commands([ 'npm install', 'npm run build' ])
data/lib/kaze/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Kaze
2
- VERSION = '0.19.0'
2
+ VERSION = '1.0.1'
3
3
  end
@@ -6,10 +6,9 @@
6
6
  <title><%= content_for(:title) || "Rails" %></title>
7
7
  <%= csrf_meta_tags %>
8
8
  <%= csp_meta_tag %>
9
- <%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>
10
- <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
9
+ <%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": Rails.env.production? ? "reload" : "" %>
10
+ <%= stylesheet_link_tag "application", "data-turbo-track": Rails.env.production? ? "reload" : "" %>
11
11
  <%= javascript_importmap_tags %>
12
- <%= hotwire_livereload_tags if Rails.env.development? %>
13
12
  <%= turbo_refreshes_with method: :morph, scroll: :preserve %>
14
13
  <%= yield :head %>
15
14
  </head>
@@ -6,10 +6,9 @@
6
6
  <title><%= content_for(:title) || "Rails" %></title>
7
7
  <%= csrf_meta_tags %>
8
8
  <%= csp_meta_tag %>
9
- <%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>
10
- <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
9
+ <%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": Rails.env.production? ? "reload" : "" %>
10
+ <%= stylesheet_link_tag "application", "data-turbo-track": Rails.env.production? ? "reload" : "" %>
11
11
  <%= javascript_importmap_tags %>
12
- <%= hotwire_livereload_tags if Rails.env.development? %>
13
12
  <%= turbo_refreshes_with method: :morph, scroll: :preserve %>
14
13
  </head>
15
14
  <body class="font-sans text-gray-900 antialiased">
@@ -6,10 +6,9 @@
6
6
  <title><%= content_for(:title) || "Rails" %></title>
7
7
  <%= csrf_meta_tags %>
8
8
  <%= csp_meta_tag %>
9
- <%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": "reload" %>
10
- <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
9
+ <%= stylesheet_link_tag "tailwind", "inter-font", "data-turbo-track": Rails.env.production? ? "reload" : "" %>
10
+ <%= stylesheet_link_tag "application", "data-turbo-track": Rails.env.production? ? "reload" : "" %>
11
11
  <%= javascript_importmap_tags %>
12
- <%= hotwire_livereload_tags if Rails.env.development? %>
13
12
  <%= turbo_refreshes_with method: :morph, scroll: :preserve %>
14
13
  </head>
15
14
  <body class="font-sans antialiased">
@@ -65,7 +65,7 @@ export default function Login({ status }: { status?: string }) {
65
65
 
66
66
  <div className="block mt-4">
67
67
  <label className="flex items-center">
68
- <Checkbox name="remember" checked={data.remember} onChange={(e) => setData('remember', e.target.checked)} />
68
+ <Checkbox name="remember" checked={data.remember} onChange={(e) => setData('remember', (e.target.checked || false) as false)} />
69
69
  <span className="ms-2 text-sm text-gray-600 dark:text-gray-400">Remember me</span>
70
70
  </label>
71
71
  </div>
@@ -19,7 +19,7 @@
19
19
  "react": "^18.2.0",
20
20
  "react-dom": "^18.2.0",
21
21
  "tailwindcss": "^3.2.1",
22
- "typescript": "~5.5.3",
22
+ "typescript": "^5.6.3",
23
23
  "vite": "^5.2.11",
24
24
  "vite-plugin-rails": "^0.5.0"
25
25
  }
@@ -15,7 +15,7 @@
15
15
  "axios": "^1.6.4",
16
16
  "postcss": "^8.4.31",
17
17
  "tailwindcss": "^3.2.1",
18
- "typescript": "~5.5.3",
18
+ "typescript": "^5.6.3",
19
19
  "vite": "^5.2.11",
20
20
  "vite-plugin-rails": "^0.5.0",
21
21
  "vue": "^3.4.27",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kaze
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cuong Giang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-20 00:00:00.000000000 Z
11
+ date: 2025-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor