Comments (2)
Thanks for the report! This has been something I've been putting off for a while, but Laser should be able to handle something like ostruct. I'm thinking right now the best solution is to accept an environment variable and/or switch which sets the LOAD_PATH that Laser should use during simulation (in addition to its own stuff). LASER_LOAD_PATH and --load-path sound good to me.
from laser.
I've added some preliminary support for this feature in 1bcc99a.
The -I option passable to Ruby is now supported, and by default, Laser will consider the environment variable LASER_RUBYPATH, then RUBYPATH, then the current $LOAD_PATH variable (before any modifications made by Laser itself).
You will, however, get "unused method" warnings from the standard library classes you've require
d. Still pondering how to approach that without hiding unused methods in user code.
from laser.
Related Issues (19)
- $ gem install laser # don't work! HOT 5
- Getting stacktrace for anything I do
- Rails?
- Readme is not clear as far as usage HOT 1
- crash parser when defining method inside block HOT 2
- Include option doesn't work
- cannot load such file -- treetop (LoadError) HOT 1
- Simulate_require fails to require if extension is given
- Security coverage HOT 1
- Ripper problems on 1.8 HOT 3
- Move or get rid of metric_fu requirement on Rakefile line 58? HOT 1
- Doesn't compile on cygwin / windows HOT 1
- Comparable#== will no more rescue exceptions of #<=> in the next release (after 2.2.2).
- laser requires laser HOT 3
- Compilation error on Windows HOT 6
- loading issues HOT 5
- A ruby file with begin rescue statement seem to break this HOT 1
- "rake build" gives Syck error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laser.