ruby_wasm 2.7.1-x64-mingw-ucrt → 2.7.2-x64-mingw-ucrt

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.
data/package.json CHANGED
@@ -6,10 +6,10 @@
6
6
  ],
7
7
  "devDependencies": {
8
8
  "@bytecodealliance/jco": "1.4.4",
9
- "@playwright/test": "^1.49.0",
10
- "@rollup/plugin-node-resolve": "^15.3.0",
9
+ "@playwright/test": "^1.54.1",
10
+ "@rollup/plugin-node-resolve": "^16.0.1",
11
11
  "@rollup/plugin-json": "^6.1.0",
12
- "rollup": "^4.28.0",
13
- "typedoc": "^0.27.2"
12
+ "rollup": "^4.46.2",
13
+ "typedoc": "^0.28.8"
14
14
  }
15
15
  }
data/rakelib/ci.rake CHANGED
@@ -132,6 +132,40 @@ namespace :ci do
132
132
  end
133
133
  end
134
134
 
135
+ desc "Prune old caches in GitHub Actions"
136
+ task :prune_caches, [:days] do |_, args|
137
+ RubyWasm::Toolchain.check_executable("gh")
138
+
139
+ days = (args[:days] || 1).to_i
140
+ repo = ENV["GITHUB_REPOSITORY"] || "ruby/ruby.wasm"
141
+ cutoff = (Time.now.utc - days * 86_400).iso8601
142
+
143
+ puts "Deleting caches last accessed before #{cutoff}…"
144
+
145
+ page = 1
146
+ deleted = 0
147
+
148
+ loop do
149
+ resp = `gh api -H 'Accept: application/vnd.github+json' "/repos/#{repo}/actions/caches?per_page=100&page=#{page}"`
150
+ raise "gh api failed" unless $?.success?
151
+
152
+ data = JSON.parse(resp)
153
+ caches = data["actions_caches"]
154
+
155
+ old = caches.select { |c| c["last_accessed_at"] < cutoff }
156
+ old.each do |c|
157
+ id = c["id"]
158
+ system("gh api -X DELETE /repos/#{repo}/actions/caches/#{id}")
159
+ deleted += 1
160
+ end
161
+
162
+ break if caches.size < 100
163
+ page += 1
164
+ end
165
+
166
+ puts "Deleted #{deleted} caches older than #{days} days."
167
+ end
168
+
135
169
  desc "Publish artifacts as a GitHub Release"
136
170
  task :publish, [:tag] do |t, args|
137
171
  RubyWasm::Toolchain.check_executable("gh")
@@ -29,7 +29,10 @@ module RubyWasm
29
29
 
30
30
  def initialize: (stdout: IO, stderr: IO) -> void
31
31
 
32
+ def run: (Array[String] args) -> void
33
+
32
34
  def build: (Array[String] args) -> void
35
+ def do_build_with_force_ruby_platform: (cli_options options) -> void
33
36
  def pack: (Array[String] args) -> void
34
37
 
35
38
  private
@@ -49,5 +52,6 @@ module RubyWasm
49
52
 
50
53
  self.@logger: Logger?
51
54
  def self.logger: () -> Logger
55
+ def self.logger=: (Logger) -> void
52
56
  attr_accessor self.log_level: Symbol
53
57
  end
@@ -70,8 +70,12 @@ class RubyWasm::Packager
70
70
  def build_strategy: () -> BuildStrategy
71
71
 
72
72
  class BuildStrategy
73
+ include RubyWasm::_Cacheable
74
+
73
75
  @packager: RubyWasm::Packager
74
76
  def initialize: (RubyWasm::Packager) -> void
77
+ def target: () -> RubyWasm::Target
78
+ def artifact: () -> string
75
79
  def build: (RubyWasm::BuildExecutor, untyped options) -> String
76
80
  def specs_with_extensions: () -> Array[[untyped, Array[string]]]
77
81
  def build_gem_exts: (RubyWasm::BuildExecutor, string gem_home) -> void
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_wasm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.1
4
+ version: 2.7.2
5
5
  platform: x64-mingw-ucrt
6
6
  authors:
7
7
  - Yuta Saito
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-01-23 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2025-10-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: logger
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  description: Ruby to WebAssembly toolkit. This gem takes Ruby code and Gemfile, and
14
28
  packages them with Ruby runtime into a WebAssembly binary.
15
29
  email:
@@ -34,9 +48,7 @@ files:
34
48
  - exe/rbwasm
35
49
  - ext/ruby_wasm/README.md
36
50
  - lib/ruby_wasm.rb
37
- - lib/ruby_wasm/3.1/ruby_wasm.so
38
51
  - lib/ruby_wasm/3.2/ruby_wasm.so
39
- - lib/ruby_wasm/3.3/ruby_wasm.so
40
52
  - lib/ruby_wasm/3.4/ruby_wasm.so
41
53
  - lib/ruby_wasm/build.rb
42
54
  - lib/ruby_wasm/build/build_params.rb
@@ -97,7 +109,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
97
109
  requirements:
98
110
  - - ">="
99
111
  - !ruby/object:Gem::Version
100
- version: '3.1'
112
+ version: '3.2'
101
113
  - - "<"
102
114
  - !ruby/object:Gem::Version
103
115
  version: 3.5.dev
Binary file
Binary file