-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include useful standard libraries (JSON, Set, Observable, etc.) #14
Comments
Good point. It would be nice to have modules like By the way, this brings up a security issue. I thought I had undefined |
Taking a quick peek at lib/ from ruby...
Probably others but that's what jumped out the most in quick look at 'lib/'. Probably okay to miss things as long as a clear way to include stdlib code is introduced so missing bits can be added later, right? |
Also, to go off topic on this ticket. Absolutely loving being able to play around with the DOM in Ruby. Match made in heaven. |
I'll look into including some or all of these libraries soon. I never knew about OpenStruct, and that might be a nice format to convert JSON to. Anyway, I'm glad you like it! Making anything cool? |
I'm playing with porting concepts I use in a personal js app framework to ruby https://github.com/collin/AlphaSimprini.rb/blob/master/app/assets/javascripts/alpha_simprini/core/view.rb So far it's a dream. |
Nice! I agree that it's kind of a dream to use Ruby in the browser. Back to the topic, I'm putting out a new binary soon, but it doesn't have the standard libraries. I'll work on adding these libraries for the next major update. |
I would love if you could include/load Math library by default, there is no pure ruby version Math library available |
@senthilnayagam Do you mean this Math library? If so, it's already in there. Try |
Thanks you saved my day :) |
is there a way to load a local ruby script in the web pages context. this way I can include my favourite scripts to automate testing, or crawling the pages, there are some javascript based tools like phantomjs which does this with javascript, but a ruby option would be awesome |
also some way to remotely connect to decaf instance like how pry-remote does with DRB, this way we can script it from a normal ruby script |
I'm not quite sure what you're looking for in the past two comments. Could you elaborate? |
I get something like
net/http
not being available, as the DOM provides interfaces. But things likeSet
andObservable
ought to be available, no?The text was updated successfully, but these errors were encountered: