ruby_wasm 2.7.1 → 2.7.2

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,14 +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: ruby
6
6
  authors:
7
7
  - Yuta Saito
8
+ autorequire:
8
9
  bindir: exe
9
10
  cert_chain: []
10
- date: 2025-01-23 00:00:00.000000000 Z
11
- 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'
12
27
  description: Ruby to WebAssembly toolkit. This gem takes Ruby code and Gemfile, and
13
28
  packages them with Ruby runtime into a WebAssembly binary.
14
29
  email:
@@ -90,6 +105,7 @@ licenses:
90
105
  metadata:
91
106
  homepage_uri: https://github.com/ruby/ruby.wasm
92
107
  source_code_uri: https://github.com/ruby/ruby.wasm
108
+ post_install_message:
93
109
  rdoc_options: []
94
110
  require_paths:
95
111
  - lib
@@ -104,7 +120,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
120
  - !ruby/object:Gem::Version
105
121
  version: '0'
106
122
  requirements: []
107
- rubygems_version: 3.6.0.dev
123
+ rubygems_version: 3.5.3
124
+ signing_key:
108
125
  specification_version: 4
109
126
  summary: Ruby to WebAssembly toolkit
110
127
  test_files: []