Skip to content

Commit b0c09c7

Browse files
Stop using bundled gems in the example
Bundled gems are unavailable as gems when commit hash is specified in the `lib/bundled_gems` file of ruby/ruby because `.gemspec` files are not installed for hash-specified gems.
1 parent d7b4444 commit b0c09c7

File tree

1 file changed

+3
-7
lines changed
  • packages/npm-packages/ruby-wasm-wasi/example/require_relative

1 file changed

+3
-7
lines changed

packages/npm-packages/ruby-wasm-wasi/example/require_relative/index.html

+3-7
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,9 @@
2121
end
2222
end
2323

24-
# "bundle install --standalone" does not care about bundled gems, so we need
25-
# to activate them manually.
26-
Gem::Dependency.new("csv").to_spec.activate
27-
28-
# The above patch does not break the original require_relative
29-
require 'csv'
30-
csv = CSV.new "foo\nbar\n"
24+
# The above patch should not break the original require_relative
25+
require 'uri'
26+
URI.parse('http://example.com')
3127

3228
# Load the main script
3329
require_relative 'main'

0 commit comments

Comments
 (0)