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

Add input_mode for FreeSWITCH compatibility #26

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

lpradovera
Copy link
Member

No description provided.

@lpradovera
Copy link
Member Author

@bklang and @benlangfeld, can I get a quick thumbs up please?

@bklang
Copy link
Member

bklang commented Jan 30, 2017

@lpradovera Can you make a corresponding fix for adhearsion develop branch?

@lpradovera
Copy link
Member Author

@bklang I think adhearsion develop does not bundle adhearsion-ivr, does it? That said, there is one snag here. The new nio4r version (which I updated to to solve compilation errors on a variety of platforms) is ruby 2.2+ only. Is that acceptable?

@input_mode || :voice
else
@input_mode = val
end
Copy link
Member

Choose a reason for hiding this comment

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

This whole block could be simplified to @input_mode = val || @input_mode || :voice, though I would note that simply calling the method with no arguments (looking like an accessor) has the side effect of actually changing the instance's internal state by setting @input_mode = :voice

@lpradovera
Copy link
Member Author

@bklang Good to go on this on your side?

@bklang
Copy link
Member

bklang commented Jul 11, 2017

@lpradovera Would you rebase? And see if you can get the tests passing?

@bklang
Copy link
Member

bklang commented Jul 11, 2017

Also, yes, it's ok to drop support for Ruby < 2.2

@lpradovera
Copy link
Member Author

@bklang This really needs some love. As soon as we have time, I'll sit down and do a general sweep of all the Adhearsion parts. If dropping Ruby < 2.2 is fine, it means we can just update all of the various gems and aim for a release, as this is not the only one held up by that.

@bklang
Copy link
Member

bklang commented Jul 11, 2017

@lpradovera Before merging this, I'd really like to see the tests passing on at least Ruby 2.2 or 2.3. They were passing before this PR.

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