homura-runtime 0.3.15 → 0.3.17
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/CHANGELOG.md +13 -0
- data/lib/homura/runtime/build_support.rb +1 -3
- data/lib/homura/runtime/version.rb +1 -1
- data/lib/phlex/compiler/method_compiler.rb +16 -0
- data/lib/phlex/compiler.rb +16 -0
- data/lib/ruby_lsp/addon.rb +6 -0
- data/lib/ruby_lsp/phlex/addon.rb +23 -0
- metadata +5 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8f26380642ac1b8cd24ca3ec08727defe9f9030ccf7b6a6cf72186b4a4aa1a56
|
|
4
|
+
data.tar.gz: 52d666f35e258daa99364ce209ad8cb7d314d3773f6ae0828ce973802d4f2580
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d5f0ac5a607b868ee964750a94a0b2c858e5ebc47c50aa9c8cb5ce2c55d3a2c158ef0fcc3fd7f788fa5866686720618b6cfff1cde4c0d5e6ec88c1e86be8dbbb
|
|
7
|
+
data.tar.gz: 31e676bbe2a40a1c8c654be6f48d2f24db4ff43022d81977e321b20ef7449eb0679899efb80ea7a9d5f42493b2e3d911d832917196d6bf5fac9b70c3caf17ca1
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.17 (2026-06-25)
|
|
4
|
+
|
|
5
|
+
- Add Ruby LSP addon no-op stubs for published Phlex builds. The Workers
|
|
6
|
+
runtime does not use Ruby LSP, but Phlex's library tree can reference those
|
|
7
|
+
files during standalone Opal builds from Rubygems.
|
|
8
|
+
|
|
9
|
+
## 0.3.16 (2026-06-25)
|
|
10
|
+
|
|
11
|
+
- Shadow Phlex compiler files with runtime no-op stubs for Opal builds. Workers
|
|
12
|
+
need Phlex rendering, not Phlex's Ruby source compiler, and the compiler path
|
|
13
|
+
pulls in native Prism pieces that cannot run in Opal.
|
|
14
|
+
- Remove the transient `sexp_processor` runtime dependency added in 0.3.15.
|
|
15
|
+
|
|
3
16
|
## 0.3.15 (2026-06-25)
|
|
4
17
|
|
|
5
18
|
- Add `sexp_processor` to the runtime build dependencies and standalone Opal
|
|
@@ -8,7 +8,6 @@ module HomuraRuntime
|
|
|
8
8
|
RUNTIME_GEM_NAME = "homura-runtime"
|
|
9
9
|
SINATRA_GEM_NAME = "sinatra-homura"
|
|
10
10
|
SEQUEL_D1_GEM_NAME = "sequel-d1"
|
|
11
|
-
SEXP_PROCESSOR_GEM_NAME = "sexp_processor"
|
|
12
11
|
SUPPORTED_OPAL_ENTRY_GEMS = %w[phlex literal].freeze
|
|
13
12
|
OPAL_ENTRY_COMPAT_REQUIRES = {
|
|
14
13
|
"phlex" => "phlex/opal_compat",
|
|
@@ -120,8 +119,7 @@ module HomuraRuntime
|
|
|
120
119
|
gem_lib(RUNTIME_GEM_NAME, loaded_specs: loaded_specs),
|
|
121
120
|
gem_vendor(RUNTIME_GEM_NAME, loaded_specs: loaded_specs),
|
|
122
121
|
maybe_gem_lib(SINATRA_GEM_NAME, loaded_specs: loaded_specs),
|
|
123
|
-
maybe_gem_vendor(SINATRA_GEM_NAME, loaded_specs: loaded_specs)
|
|
124
|
-
maybe_gem_lib(SEXP_PROCESSOR_GEM_NAME, loaded_specs: loaded_specs)
|
|
122
|
+
maybe_gem_vendor(SINATRA_GEM_NAME, loaded_specs: loaded_specs)
|
|
125
123
|
].compact.each { |path| load_paths << path }
|
|
126
124
|
|
|
127
125
|
if with_db
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Phlex
|
|
4
|
+
module Compiler
|
|
5
|
+
MAP = {} unless const_defined?(:MAP, false)
|
|
6
|
+
Error = Class.new(StandardError) unless const_defined?(:Error, false)
|
|
7
|
+
|
|
8
|
+
def self.compile(_component)
|
|
9
|
+
nil
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def self.compile_file(_path)
|
|
13
|
+
nil
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require "ruby_lsp/addon"
|
|
4
|
+
|
|
5
|
+
module RubyLsp
|
|
6
|
+
module Phlex
|
|
7
|
+
class Addon < ::RubyLsp::Addon
|
|
8
|
+
def activate(_global_state, _message_queue)
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def deactivate
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def name
|
|
15
|
+
"Phlex"
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def version
|
|
19
|
+
"0.1.0"
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: homura-runtime
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.17
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kazuhiro Homma
|
|
@@ -37,20 +37,6 @@ dependencies:
|
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
39
|
version: '3.3'
|
|
40
|
-
- !ruby/object:Gem::Dependency
|
|
41
|
-
name: sexp_processor
|
|
42
|
-
requirement: !ruby/object:Gem::Requirement
|
|
43
|
-
requirements:
|
|
44
|
-
- - "~>"
|
|
45
|
-
- !ruby/object:Gem::Version
|
|
46
|
-
version: '4.17'
|
|
47
|
-
type: :runtime
|
|
48
|
-
prerelease: false
|
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
-
requirements:
|
|
51
|
-
- - "~>"
|
|
52
|
-
- !ruby/object:Gem::Version
|
|
53
|
-
version: '4.17'
|
|
54
40
|
description: |
|
|
55
41
|
Sinatra-free core for running Opal-compiled Ruby on Cloudflare Workers:
|
|
56
42
|
Rack handler, D1/KV/R2/AI/Queue/Durable Object adapters, multipart/streaming,
|
|
@@ -88,7 +74,11 @@ files:
|
|
|
88
74
|
- lib/literal/opal_compat.rb
|
|
89
75
|
- lib/monitor.rb
|
|
90
76
|
- lib/opal_patches.rb
|
|
77
|
+
- lib/phlex/compiler.rb
|
|
78
|
+
- lib/phlex/compiler/method_compiler.rb
|
|
91
79
|
- lib/phlex/opal_compat.rb
|
|
80
|
+
- lib/ruby_lsp/addon.rb
|
|
81
|
+
- lib/ruby_lsp/phlex/addon.rb
|
|
92
82
|
- lib/zeitwerk/opal_compat.rb
|
|
93
83
|
- runtime/patch-opal-evals.mjs
|
|
94
84
|
- runtime/setup-node-crypto.mjs
|