proscenium 0.7.0-x86_64-linux → 0.8.2-x86_64-linux

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c170e7b81f5a5e8591e8876e9b25cc25c0815cd453b2b14cb840229c471fdc2
4
- data.tar.gz: 75df6068a461a45bd4cdf82b382096a25c6c79b934d27f425ac2ba1e97384b8e
3
+ metadata.gz: 0befa74ca37e255e40d47294992f4dde37fd92636b7de4d6bcbd3e7078d26585
4
+ data.tar.gz: 3ee198704c19fb58cd64ef2b3dfe9ccd76d0b4359507c5d66dfbd9973e0f16f4
5
5
  SHA512:
6
- metadata.gz: e7df563fe5214e951e1d92e024d1f7de61e9a547c13a0442ea9531428b005777007b5e09605a9e88ed6f7f191e6849e2a97fbc7e429a1dfde9bb50c7a2496b59
7
- data.tar.gz: db7286f0871be25d106442a2684ae22271f1632614a9fb0e48f19b5888311cc651ecb0ea5482734b0e7e67dba87f673d05d44d7915a3ea0408a05c24c451b2cc
6
+ metadata.gz: b4e97ebe2e7bcd9a85112f3ab3d043472e26a2f8378605c65342cd2c411ec47225955f4b87c8732c749e3a82e400feeb9160cb4ae7cdf41fe8f0d2abc2d2bf63
7
+ data.tar.gz: 0bacb942fb31e630a47a2a7e5ef6991d05c31a624b53ce4d1aa9ef7027cb94c04241897cfd96e78f0e32ddd17d391a929c482133b216dc437c187837aeae0c0b
data/README.md CHANGED
@@ -19,10 +19,6 @@ configuration.
19
19
  - Source maps.
20
20
  - Phlex and ViewComponent integration.
21
21
 
22
- ## ⚠️ WORK IN PROGRESS ⚠️
23
-
24
- While my goal is to use Proscenium in production, I recommended that you **DO NOT** use Proscenium in production just yet! It has only been run for local development, and requires several improvements for optimal production use.
25
-
26
22
  ## Installation
27
23
 
28
24
  Add this line to your Rails application's Gemfile, and you're good to go:
Binary file
@@ -90,10 +90,9 @@ extern "C" {
90
90
  // - baseUrl - base URL of the Rails app. eg. https://example.com
91
91
  // - env - The environment (1 = development, 2 = test, 3 = production)
92
92
  // - importMap - Path to the import map relative to `root`.
93
- // - bundle
94
93
  // - debug
95
94
  //
96
- extern struct Result build(char* filepath, char* root, char* baseUrl, unsigned int env, char* importMap, GoUint8 bundle, GoUint8 debug);
95
+ extern struct Result build(char* filepath, char* root, char* baseUrl, unsigned int env, char* importMap, GoUint8 debug);
97
96
 
98
97
  // Resolve the given `path` relative to the `root`.
99
98
  //
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Proscenium
4
- VERSION = '0.7.0'
4
+ VERSION = '0.8.2'
5
5
  end
data/lib/proscenium.rb CHANGED
@@ -58,8 +58,8 @@ module Proscenium
58
58
  sroot = "#{matched_gem[1][:root]}/"
59
59
  relpath = path.delete_prefix(sroot)
60
60
 
61
- if matched_gem[1][:package_name]
62
- return Esbuild::Golib.resolve("#{matched_gem[1][:package_name]}/#{relpath}")
61
+ if (package_name = matched_gem[1][:package_name] || matched_gem[0])
62
+ return Esbuild::Golib.resolve("#{package_name}/#{relpath}")
63
63
  end
64
64
 
65
65
  # TODO: manually resolve the path without esbuild
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.7.0
4
+ version: 0.8.2
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Joel Moss
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-01 00:00:00.000000000 Z
11
+ date: 2023-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport