Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[FAQ] Is it possible to install simple gems? If not, how to simulate doing so?

Open
#404 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
ruby, wasm
Domain
documentation

Research direction

Review the existing FAQ and the ruby.wasm gem support described in the issue. Establish whether simple gems can be installed or simulated through embedded Ruby source and File.read(), then document the supported approach, limitations, and an example for the HelloWorld case.

Written by the indexing model from the issue text.

Description

I suggest a new FAQ entry e. g. dealing with ruby gems via ruby.wasm.

Now, I assume right now this is not possible - that is ok. Please mention it in the FAQ.

But ... let's assume that some gems are simple.

Like a hello world gem:

class HelloWorld
  def initialize
  end
  def result?
    'Hello world!'
  end
end

So we can use the ruby.wasm .write() method onto result? (or any other
method name that is similar, this here is just an example).

Such code should work just fine. Just that it may be stored in a .gem file.

Is there a way to get support for that? In such a simple case we can probably
just embed the text (content of hello_world.rb) into the String that is evaluated,
so just File.read() should suffice. But I wonder whether there is some official
support for this via ruby.wasm. Many simple gems could be made to work
that way. (Of course other gems that are more complicated or require
Thread may not work, but perhaps in the future.)

Dominant language
Ruby
Stars
875
Forks
68
Avg merge
9d 5h
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ruby/ruby.wasm

All issues in ruby/ruby.wasm

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.