Comments (4)
If I read the code right - the problem is that the * in "*args" was getting applied twice, while it should have been applied once.
It got applied once by pipe_result's 'block.call(*args)'.
And then again byforkoff's 'Forkoff.send( strategy_method, *args, &block ).
I made a patch removing one of those calls and it seems to make it work as expected for me.
http://github.com/ramayer/forkoff/commit/e0b6ba20ecfc1d6d0854c13aec3d5c109eb77d2b
from forkoff.
Yeah, there was a confusion in the code. In particular, the args in each_with_index(args, i)
should have been singular. Fix with tests in http://github.com/marcandre/forkoff/commit/4ad80bb3f4a4d58ca3dd23f8bb4e9e0149e2ad06
from forkoff.
Any chance that'll be pushed as a new gem?
The command
gem install forkoff
still seems to install the broken version.
from forkoff.
v1.2.0 has this fix.
from forkoff.
Related Issues (2)
- blows up on 1.9.1 HOT 2
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 forkoff.