Skip to content

Commit

Permalink
Merge pull request #62 from keyasuda/ruby320
Browse files Browse the repository at this point in the history
make it working with ruby 3.2.0 (and preview2)
  • Loading branch information
keyasuda authored Dec 30, 2022
2 parents c64316b + a2e3f18 commit e5e9c85
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.0-preview2
3.2.0
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [0.1.12] - 2022-12-30

- allow ruby 3.2.0

## [0.1.11] - 2022-12-03

- use ruby.wasm 0.5.0
Expand Down
2 changes: 1 addition & 1 deletion gem/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
bormashino (0.1.11)
bormashino (0.1.12)
json_pure (~> 2.6, >= 2.6.1)
os (~> 1.1, >= 1.1.4)
ruby2_keywords (= 0.0.4)
Expand Down
2 changes: 1 addition & 1 deletion gem/bormashino.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
DESCRIPTION
spec.homepage = 'https://github.com/keyasuda/bormashino'
spec.license = 'MIT'
spec.required_ruby_version = '>= 3.2.0-preview1'
spec.required_ruby_version = '~> 3.2.0-preview1'

spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = spec.homepage
Expand Down
2 changes: 1 addition & 1 deletion gem/lib/bormashino/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Bormashino
VERSION = '0.1.11'
VERSION = '0.1.12'
end
4 changes: 2 additions & 2 deletions npm/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "bormashino",
"description": "The package to build SPAs with Ruby",
"homepage": "https://github.com/keyasuda/bormashino",
"version": "0.1.11",
"version": "0.1.12",
"main": "src/index.js",
"scripts": {
"test": "jest --notify src/",
Expand Down
3 changes: 2 additions & 1 deletion npm/src/ruby.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ export const initVmFromRubyModule = async (
vm.initialize(initializeOption)

vm.eval(`
Gem.paths = {'GEM_PATH' => '/src/bundle/ruby/3.2.0+1'}
gem_path = Dir.glob('/src/bundle/ruby/*').join(':')
Gem.paths = {'GEM_PATH' => gem_path}
# workaround
require 'rack'
Rack::Response
Expand Down
2 changes: 1 addition & 1 deletion test-app/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: ../gem
specs:
bormashino (0.1.11)
bormashino (0.1.12)
json_pure (~> 2.6, >= 2.6.1)
os (~> 1.1, >= 1.1.4)
ruby2_keywords (= 0.0.4)
Expand Down
10 changes: 5 additions & 5 deletions test-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e5e9c85

Please sign in to comment.