proscenium 0.7.0-arm64-darwin → 0.8.2-arm64-darwin

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: a5e6c48e88fd17c30cf16b511dfed2d49475e82afadbb3004b9e086e4479cee7
4
- data.tar.gz: 3f3c7e4f9de5baaa574811283a8f780268025f80355ff57dc3e2443b6d9cd4d3
3
+ metadata.gz: 22cc4869f23932a86fcaeff9ff7af8c307b9bc43773d4b69a5fb010eb68dd1c9
4
+ data.tar.gz: e5e5cab2c200190f9de247653aff893958a7e7b77308d29b731a28b4e47ece7f
5
5
  SHA512:
6
- metadata.gz: c2f1f0f4eebdd6fa607fa331859e92b568fee9118d1df878581d56608485aff3e152abd3f28324ca5a308008d24cf37eeac89460f3324720e5b04cd64df03959
7
- data.tar.gz: c0542a1dd89a72a7439e95d0ba9b56fdcd81099b6a66cd93c821d1028953fd6cf1684918ca3470e7e079e221b39cecd3c8baf0ec6956096dce109870bba56bc5
6
+ metadata.gz: 74bf73562a7b759e3ea14267b9ae3193c66d84bfde74cbd0156b695b94b952df35a4482448fd4243d4ac0c3cea84694df2b1af002e482a4a76977c2fdbbeaaaf
7
+ data.tar.gz: 262b892705b677e5e8d27e816be8ea570f6359c165709dd20b304dd6a80180a683584c96623ece9aeda30d7a488e8cc66c1924d2977751a221ed6802a530c775
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:
@@ -12,7 +12,7 @@ module Proscenium
12
12
 
13
13
  module Request
14
14
  extend FFI::Library
15
- ffi_lib Pathname.new(__dir__).join('../../../bin/proscenium').to_s
15
+ ffi_lib Pathname.new(__dir__).join('../ext/proscenium').to_s
16
16
 
17
17
  enum :environment, [:development, 1, :test, :production]
18
18
 
@@ -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: arm64-darwin
6
6
  authors:
7
7
  - Joel Moss
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-31 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
@@ -123,17 +123,13 @@ dependencies:
123
123
  description:
124
124
  email:
125
125
  - joel@developwithstyle.com
126
- executables:
127
- - proscenium
126
+ executables: []
128
127
  extensions: []
129
128
  extra_rdoc_files: []
130
129
  files:
131
130
  - CODE_OF_CONDUCT.md
132
131
  - LICENSE.txt
133
132
  - README.md
134
- - bin/proscenium
135
- - bin/proscenium.h
136
- - config/routes.rb
137
133
  - lib/proscenium.rb
138
134
  - lib/proscenium/css_module.rb
139
135
  - lib/proscenium/css_module/class_names_resolver.rb
@@ -141,6 +137,8 @@ files:
141
137
  - lib/proscenium/current.rb
142
138
  - lib/proscenium/esbuild.rb
143
139
  - lib/proscenium/esbuild/golib.rb
140
+ - lib/proscenium/ext/proscenium
141
+ - lib/proscenium/ext/proscenium.h
144
142
  - lib/proscenium/helper.rb
145
143
  - lib/proscenium/log_subscriber.rb
146
144
  - lib/proscenium/middleware.rb
data/config/routes.rb DELETED
@@ -1,4 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- Proscenium::Railtie.routes.draw do
4
- end