Skip to content

Celluloid::Method should respond to Method methods#300

Merged
halorgium merged 1 commit intocelluloid:masterfrom
LTe:support-for-other-methods
Oct 12, 2013
Merged

Celluloid::Method should respond to Method methods#300
halorgium merged 1 commit intocelluloid:masterfrom
LTe:support-for-other-methods

Conversation

@LTe
Copy link
Copy Markdown
Contributor

@LTe LTe commented Jul 12, 2013

When you use Celluloid Actor you will use proxy class Celluloid::Method
to execute code through actor in sync or async way. Some libraries expects
that Method (Celluloid::Method) object will be respond to methods from
standard library Method.

This bug is related to: psyho/bogus#24

Comment thread spec/support/actor_examples.rb Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turning the method into a Proc is a little bit scary as the calling of the Proc should probably occur inside the actor.

@ghost ghost assigned halorgium Aug 7, 2013
@halorgium
Copy link
Copy Markdown
Contributor

@LTe I don't think we can accept this as it currently stands.
I do think we should support the safe methods such as name and parameters.
Could you make the change to instead only forward those methods through?

When you use Celluloid Actor you will use proxy class Celluloid::Method
to execute code through actor in sync or async way. Some libraries expects
that Method (Celluloid::Method) object will be respond to methods from
standard library Method.
@LTe
Copy link
Copy Markdown
Contributor Author

LTe commented Oct 9, 2013

@halorgium updated. I implemented only name and parameters methods. I also rebased to current master.

@halorgium
Copy link
Copy Markdown
Contributor

@LTe thanks so much! I'll merge once the tests are green.

@LTe
Copy link
Copy Markdown
Contributor Author

LTe commented Oct 9, 2013

@halorgium this is strange because in this build 1.9.3 pass and 2.0.0 failed and in this 1.9.3 failed.
Do the tests are unstable?

@halorgium
Copy link
Copy Markdown
Contributor

@LTe there are 1 or 2 tests which still can cause deadlocks.

halorgium added a commit that referenced this pull request Oct 12, 2013
Celluloid::Method should respond to Method methods
@halorgium halorgium merged commit d359daa into celluloid:master Oct 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants