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

force conversion to UTF-8 #7

Merged
merged 1 commit into from Jul 20, 2015

Conversation

michaelshobbs
Copy link
Contributor

No description provided.

@michaelshobbs michaelshobbs changed the title force conversion to UTF-8. fixes #6 force conversion to UTF-8 Jul 9, 2015
@zuazo
Copy link
Owner

zuazo commented Jul 10, 2015

OK. Thanks @michaelshobbs. Could you add some tests?

@michaelshobbs
Copy link
Contributor Author

My ruby skills are shoddy at best. If you want to point me in the right direction, I'm willing to take a stab at it though.

As a side note, I confirmed that this works in my OpsWorks situation.

@zuazo
Copy link
Owner

zuazo commented Jul 10, 2015

OK. Don't worry.

Currently I'm not using SNS. Could you check whether SNS (mail?) messages are sent in UTF-8?

@michaelshobbs
Copy link
Contributor Author

Looking at the headers I see this:

Content-Type: text/plain; charset=UTF-8

@zuazo zuazo added the bug label Jul 11, 2015
@michaelshobbs
Copy link
Contributor Author

Thoughts on where to go from here?

@zuazo
Copy link
Owner

zuazo commented Jul 15, 2015

Sorry @michaelshobbs. I want to merge this PR. But I want to add some tests before. Give me a couple of days.

@michaelshobbs
Copy link
Contributor Author

no worries. i appreciate you looking at it for sure.

@zuazo zuazo merged commit 221a75e into zuazo:master Jul 20, 2015
@zuazo
Copy link
Owner

zuazo commented Jul 20, 2015

Hello @michaelshobbs,

I merged this in 712a5bc. Then I improved it in e36a38b, including some tests.

I just want to clarify that this fix works only for Ruby >= 2.1.0. Let me know if that is not enough.

@michaelshobbs
Copy link
Contributor Author

Sounds good. I'll test it out ASAP

@michaelshobbs
Copy link
Contributor Author

It looks like OpsWorks is using Ruby 2.0.0.
http://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-ruby.html

root@host:/var/lib/aws/opsworks/chef# /opt/aws/opsworks/local/bin/ruby --version
ruby 2.0.0p645 (2015-04-13 revision 50299) [x86_64-linux]

Any way we can get support for that?

@zuazo
Copy link
Owner

zuazo commented Jul 20, 2015

@michaelshobbs, thanks for your fast feedback 😉

Fixed for Ruby >= 1.9.2 in 61e7b60.

@michaelshobbs
Copy link
Contributor Author

Excellent! Is this in a release yet? If not I think I can just copy the new sns.rb into place over a chef-handler-sns-1.2.0 install, correct?

@zuazo
Copy link
Owner

zuazo commented Jul 20, 2015

It's not released yet. But yes, you can test it by copying the sns.rb file.

@zuazo
Copy link
Owner

zuazo commented Dec 28, 2015

Released in 2.0.0.

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.

None yet

2 participants