Skip to content

Commit

Permalink
fixed build failig issues
Browse files Browse the repository at this point in the history
  • Loading branch information
suleman-uzair committed Dec 20, 2024
1 parent 70bc22e commit e931bf6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:mantic
FROM ubuntu:24.04

RUN apt-get update && apt-get upgrade -y && apt-get install -y ragel ruby gcc g++ ruby-dev npm git wget make ruby-bundler libyaml-dev && apt-get clean

Expand Down
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ gem 'equivalent-xml', path: 'vendor/equivalent-xml'
gem 'ruby-ll', path: 'vendor/ruby-ll'
gem 'htmlentities', path: 'vendor/htmlentities'
gem 'opal', path: 'vendor/opal'
gem 'mml', git: 'https://github.com/plurimath/mml.git', branch: 'update/plurimath-js-support'

gem 'opal-rspec', '>= 1.1.0a'

Expand All @@ -23,4 +24,4 @@ gem 'rackup'
gem 'simplecov'
gem 'ox'
gem 'unitsml'
gem 'java'
gem 'monitor'
9 changes: 5 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,18 @@ bundle exec opal --esm -sjruby \
-rcorelib/array/pack \
-ropal-parser \
-gunitsml \
-gnokogiri \
-gjava \
-ghtmlentities \
-goga \
-gparslet \
-gzeitwerk \
-gmonitor \
-sox \
-sox/ox \
-sox.so \
-gparslet \
-Ivendor/oga/lib/ \
-Ivendor/oga/xml/ \
-Ivendor/oga/xpath/ \
-Ivendor/oga/ext/pureruby/ \
-Ivendor/ruby-ll/lib/ \
-Ivendor/ruby-ll/ext/pureruby/ \
-Iplurimath/lib \
-pplurimath \
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"scripts": {
"test": "npm run test:js && npm run test:rb",
"test:js": "npm run build && jest",
"test:rb": "podman run --rm -it -v.:/srv:z plurimath-js /bin/bash -c './setup.sh && env/plurimath'",
"test:rb": "podman run --rm -it -v $(pwd):/srv:z plurimath-js /bin/bash -c './setup.sh && env/plurimath'",
"podman:build": "podman build -t plurimath-js .",
"podman:shell": "podman run --rm -it -v.:/srv:z plurimath-js",
"podman:bundle": "podman run --rm -it -v.:/srv:z plurimath-js /bin/bash -c './setup.sh && ./build.sh'",
"podman:shell": "podman run --rm -it -v $(pwd):/srv:z plurimath-js",
"podman:bundle": "podman run --rm -it -v $(pwd):/srv:z plurimath-js /bin/bash -c './setup.sh && ./build.sh'",
"build": "npm run podman:build && npm run podman:bundle",
"submodule:init": "git submodule init && npm run submodule:update",
"submodule:update": "git submodule update"
Expand Down Expand Up @@ -42,4 +42,4 @@
"terser": "^5.20.0",
"typescript": "^5.2.2"
}
}
}

0 comments on commit e931bf6

Please sign in to comment.