proscenium 0.20.0-arm64-darwin → 0.21.0-arm64-darwin

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: 9f9d0b6e17c18e8faeb418bc6d961923deda4c009130c409890feb1cf930904f
4
- data.tar.gz: 4f7a754a2159aaf57360f4a513e4087d9454275f9c58d0796858397fc5daf977
3
+ metadata.gz: db414f8a3727cb4b23d63f13b273082067542395537b94dc34919094ea0166c0
4
+ data.tar.gz: 20b6419152d414ce0305d4e3d26824fe99650649781fa751a76475c6e559cf0a
5
5
  SHA512:
6
- metadata.gz: 0e1f70762c78549b7d507553110c6edc61c0787176db95e0c318e77f32d654a2458575c64690692e4f133b9746dfc66670632060a0881f673a85f806a6818952
7
- data.tar.gz: 3841f526ebc065f583e2569b8df342cae80168e71cbf1a165313f3691946cb9456ae73083ceecde6e9cb45d56142a7abb5b60444f6133c586736d145f5d53ecd
6
+ metadata.gz: 4665f38058a51a9cf824c549fe0e9a9a14bec930081abb0e9fc6962ef76aefc51cd4f2e8e244e97bec165823491f37e3298aeb439049006d0da7b33da0c3cd81
7
+ data.tar.gz: 556f705271397eff36c651c0fcb451239116e673fba7fee1d0c1c2870f5c2831cad4a8dc8a6b96b6acc15b4429ce9ee0736482ebf7fb1caf7127ee5896a89da0
@@ -80,6 +80,7 @@ module Proscenium
80
80
  CodeSplitting: Proscenium.config.code_splitting,
81
81
  RubyGems: Proscenium::BundledGems.paths,
82
82
  Bundle: Proscenium.config.bundle,
83
+ Aliases: Proscenium.config.aliases,
83
84
  QueryString: cache_query_string,
84
85
  Debug: Proscenium.config.debug
85
86
  }.to_json)
Binary file
@@ -12,6 +12,8 @@
12
12
 
13
13
  #ifndef GO_CGO_GOSTRING_TYPEDEF
14
14
  typedef struct { const char *p; ptrdiff_t n; } _GoString_;
15
+ extern size_t _GoStringLen(_GoString_ s);
16
+ extern const char *_GoStringPtr(_GoString_ s);
15
17
  #endif
16
18
 
17
19
  #endif
@@ -53,10 +55,16 @@ typedef size_t GoUintptr;
53
55
  typedef float GoFloat32;
54
56
  typedef double GoFloat64;
55
57
  #ifdef _MSC_VER
58
+ #if !defined(__cplusplus) || _MSVC_LANG <= 201402L
56
59
  #include <complex.h>
57
60
  typedef _Fcomplex GoComplex64;
58
61
  typedef _Dcomplex GoComplex128;
59
62
  #else
63
+ #include <complex>
64
+ typedef std::complex<float> GoComplex64;
65
+ typedef std::complex<double> GoComplex128;
66
+ #endif
67
+ #else
60
68
  typedef float _Complex GoComplex64;
61
69
  typedef double _Complex GoComplex128;
62
70
  #endif
@@ -83,7 +91,7 @@ typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
83
91
  extern "C" {
84
92
  #endif
85
93
 
86
- extern void reset_config();
94
+ extern void reset_config(void);
87
95
 
88
96
  // Build the given `path` using the `config`.
89
97
  //
@@ -24,6 +24,8 @@ module Proscenium
24
24
  end
25
25
 
26
26
  def sideload_template_assets(tpl, controller, options)
27
+ return unless (tpl_path = Pathname.new(tpl.identifier)).file?
28
+
27
29
  options = {} if options.nil?
28
30
  options = { js: options, css: options } unless options.is_a?(Hash)
29
31
 
@@ -40,7 +42,7 @@ module Proscenium
40
42
  options[k] = controller.instance_eval(&options[k]) if options[k].is_a?(Proc)
41
43
  end
42
44
 
43
- Importer.sideload Pathname.new(tpl.identifier), **options
45
+ Importer.sideload tpl_path, **options
44
46
  end
45
47
  end
46
48
 
@@ -64,6 +66,8 @@ module Proscenium
64
66
  end
65
67
 
66
68
  def sideload_template_assets(tpl, options)
69
+ return unless (tpl_path = Pathname.new(tpl.identifier)).file?
70
+
67
71
  options = {} if options.nil?
68
72
  options = { js: options, css: options } unless options.is_a?(Hash)
69
73
 
@@ -80,7 +84,7 @@ module Proscenium
80
84
  options[k] = controller.instance_eval(&options[k]) if options[k].is_a?(Proc)
81
85
  end
82
86
 
83
- Importer.sideload Pathname.new(tpl.identifier), **options
87
+ Importer.sideload tpl_path, **options
84
88
  end
85
89
  end
86
90
  end
@@ -18,6 +18,8 @@ module Proscenium
18
18
  config.proscenium.cache_query_string = Rails.env.production? && ENV.fetch('REVISION', nil)
19
19
  config.proscenium.cache_max_age = 2_592_000 # 30 days
20
20
 
21
+ config.proscenium.aliases = {}
22
+
21
23
  # List of environment variable names that should be passed to the builder, which will then be
22
24
  # passed to esbuild's `Define` option. Being explicit about which environment variables are
23
25
  # defined means a faster build, as esbuild will have less to do.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Proscenium
4
- VERSION = '0.20.0'
4
+ VERSION = '0.21.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proscenium
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.21.0
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Joel Moss
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-06 00:00:00.000000000 Z
11
+ date: 2025-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi