Skip to content
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

Updating Celluloid logger reference #47

Closed
wants to merge 13 commits into from

Conversation

jlyonsmith
Copy link

No description provided.

@dblock
Copy link
Collaborator

dblock commented Jan 11, 2016

First question, why is the integration test succeeding without this change? Or is Celluloid::Logger resolving automagically to Celluiloid::Internals::Logger?

Either way, please do rebase/squash the commits.

@jlyonsmith
Copy link
Author

I don't see celluloid or celluloid-io pulled in by the .gemspec file (which makes sense as you are trying to dynamically support either one) Therefore you must have an older version installed on your dev box.

@dblock
Copy link
Collaborator

dblock commented Jan 11, 2016

Hm, nope, https://travis-ci.org/dblock/slack-ruby-client/jobs/101613182#L107 has pulled in 0.17.2.

screen shot 2016-01-11 at 10 56 55 am

Locally you can run rm Gemfile.lock ; CONCURRENCY=celluloid-io SLACK_API_TOKEN=... bundle, then CONCURRENCY=celluloid-io SLACK_API_TOKEN=... rspec spec/integration.

What do you see when you run this?

@jlyonsmith
Copy link
Author

I see 2 successful tests. What do you see with my merge? I'm running Ruby 2.0.0-p645.

RSpec.txt

@dblock
Copy link
Collaborator

dblock commented Jan 11, 2016

I am saying that even without your merge I am seeing 2 successful tests.

@jlyonsmith
Copy link
Author

You could try integrating slack-ruby-client into a new project with Celluloid and Reel and see what happens when you try and run it. It's definitely the case that the current version of Celluloid uses Celluloid::Internal::Logging

@dblock
Copy link
Collaborator

dblock commented Jan 11, 2016

So what happens when you try to run it? What output do you get?

I know this is a trivial change and it seems like it's the right thing, I am just trying to understand what's going on, not being annoying :) I'd like a test that reproduces whatever error you're getting.

@jlyonsmith
Copy link
Author

No problem. This reproduces the issue. Just run bundle ; SLACK_API_TOKEN=... ruby main.rb

Isn't spec_helper.rb missing require 'bundler/setup'?

test-ruby-slack-client.tar.gz

@dblock dblock closed this in 33360aa Jan 11, 2016
@dblock
Copy link
Collaborator

dblock commented Jan 11, 2016

I figured it out, Celluiloid docs say in https://github.com/celluloid/celluloid:

screen shot 2016-01-11 at 4 57 11 pm

You did require celluloid/current, which caused a subsequent require celluloid/io not to load the "backported" mode, the default. Adding that on top of celluloid.rb in slack-ruby-client reproduced the issue.

Fixed in dblock@33360aa. Can you try with gem 'slack-ruby-client', github: 'dblock/slack-ruby-client' to confirm? I'll cut a release then.

@jlyonsmith
Copy link
Author

Confirmed that I everything builds fine now. Thanks!

@dblock
Copy link
Collaborator

dblock commented Jan 12, 2016

@jlyonsmith I cut 0.5.3, thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants