tina4ruby 3.10.47 → 3.10.48
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 +4 -4
- data/lib/tina4/cli.rb +5 -4
- data/lib/tina4/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c12d564be4137cf8c9784a96dd33aca81872412b6e04563bbaecf17c06fa2ad6
|
|
4
|
+
data.tar.gz: 26246b8cab442bfd6406cb696d66e89c8d3ca8bcd387b7ed538e03b5526421c0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b4b5118f7a247839c941e6c412b9647d8eb6090435ac8924d2479b05ed7e84df51e3e1d907843d3e0a183e2e930197682fb0a7af20389ac5c483ba620af13201
|
|
7
|
+
data.tar.gz: c26ff09a7fdb9132839c57fc42699fb338d9b4c917e055c9807156b6e13fab1117375b7334cd5c61e3aaff030523615a5dde3119aedd0206bc00435b824b5264
|
data/lib/tina4/cli.rb
CHANGED
|
@@ -155,12 +155,13 @@ module Tina4
|
|
|
155
155
|
# ── start ─────────────────────────────────────────────────────────────
|
|
156
156
|
|
|
157
157
|
def cmd_start(argv)
|
|
158
|
-
options = { port: nil, host: nil, dev: false, no_browser: false }
|
|
158
|
+
options = { port: nil, host: nil, dev: false, no_browser: false, production: false }
|
|
159
159
|
parser = OptionParser.new do |opts|
|
|
160
160
|
opts.banner = "Usage: tina4ruby start [options]"
|
|
161
161
|
opts.on("-p", "--port PORT", Integer, "Port (default: 7147)") { |v| options[:port] = v }
|
|
162
162
|
opts.on("-h", "--host HOST", "Host (default: 0.0.0.0)") { |v| options[:host] = v }
|
|
163
163
|
opts.on("-d", "--dev", "Enable dev mode with auto-reload") { options[:dev] = true }
|
|
164
|
+
opts.on("--production", "Use production server (Puma)") { options[:production] = true }
|
|
164
165
|
opts.on("--no-browser", "Do not open browser on start") { options[:no_browser] = true }
|
|
165
166
|
end
|
|
166
167
|
parser.parse!(argv)
|
|
@@ -197,9 +198,9 @@ module Tina4
|
|
|
197
198
|
|
|
198
199
|
is_debug = Tina4::Env.truthy?(ENV["TINA4_DEBUG"])
|
|
199
200
|
|
|
200
|
-
#
|
|
201
|
-
#
|
|
202
|
-
if
|
|
201
|
+
# Use Puma only when explicitly requested via --production flag
|
|
202
|
+
# WEBrick is used for development (supports dev toolbar/reload)
|
|
203
|
+
if options[:production]
|
|
203
204
|
begin
|
|
204
205
|
require "puma"
|
|
205
206
|
require "puma/configuration"
|
data/lib/tina4/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tina4ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.10.
|
|
4
|
+
version: 3.10.48
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tina4 Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-04-
|
|
11
|
+
date: 2026-04-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rack
|