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

Optional encoding option #278

Merged
4 commits merged into from
Jan 9, 2015
Merged

Optional encoding option #278

4 commits merged into from
Jan 9, 2015

Conversation

tarlepp
Copy link
Contributor

@tarlepp tarlepp commented Jan 7, 2015

No description provided.

@jirwin
Copy link
Collaborator

jirwin commented Jan 8, 2015

+1 once the build passes

@jirwin
Copy link
Collaborator

jirwin commented Jan 8, 2015

Actually -1 for now. We need to figure out a good story for heavy dependencies like this.

@tarlepp
Copy link
Contributor Author

tarlepp commented Jan 8, 2015

Yeah that node-icu-charset-detector need some stuff, didn't find any other solution for this though. Any ideas?

@ghost
Copy link

ghost commented Jan 8, 2015

We've discussed this on IRC (##node-irc on freenode; come join us!)
and have evaluated the options that we can find. It looks like
node-icu-charset-detector is the least worst option (despite the
native dependencies). I experimented with this pull req on my
branch, and you need to add - sudo apt-get -y install libicu-dev
to the before_install array in .travis.yml. Doing that, I saw
that there are some style issues.

Can you please fix the style issues, and make this an optional
dependency (both in package.json and in the code), so that those
who don't have a C compiler / access to the native library can keep
using node-irc? Thanks!

On 01/08/2015 01:48 PM, Tarmo Leppänen wrote:

Yeah that |node-icu-charset-detector| need some stuff, didn't find
any other solution for this though. Any ideas?


Reply to this email directly or view it on GitHub
#278 (comment).

@tarlepp
Copy link
Contributor Author

tarlepp commented Jan 9, 2015

Made necessary fixes.

@jirwin
Copy link
Collaborator

jirwin commented Jan 9, 2015

@tarlepp Thanks! Can you move the node-icu-charset-detector dependency to the optionalDependencies section of package.json? You'll have to create it. Read more about it here: https://docs.npmjs.com/files/package.json.

I believe in your original PR you didn't require the new libraries unless an encoding setting was configured? I'd prefer to go back to this model so that these new libraries won't actually cause issues if the setting isn't specified.

…Dependencies. Also make little tweak to code to support this right.
@jirwin
Copy link
Collaborator

jirwin commented Jan 9, 2015

LGTM +1

ghost pushed a commit that referenced this pull request Jan 9, 2015
Optional encoding option
@ghost ghost merged commit b6e9772 into martynsmith:master Jan 9, 2015
@ghost ghost mentioned this pull request Jan 9, 2015
This pull request was closed.
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