-
Notifications
You must be signed in to change notification settings - Fork 132
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
Doesn't work well with frozen strings #172
Comments
Thanks for the report. I'll hopefully get to it soon. If I don't, feel free
to submit a PR!
I actually never thought about this case. I will keep it in mind moving
forward.
On Mar 6, 2017 8:33 AM, "Jacob" <[email protected]> wrote:
ruby version - ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin16]
VideoInfo version - 2.7
Reproduce:
url = "//player.vimeo.com/video/22439234".freezeVideoInfo.new(url)
Error:
RuntimeError: can't modify frozen String
from /usr/local/lib/ruby/gems/2.4.0/gems/video_info-2.7/lib/
video_info/providers/vkontakte.rb:16:instrip!'`
Looks like there are two places in the vkontakte.rb file where strip! is
used. It should be fairly easy to move those over to .strip. I can work up
a PR sometime later this week if that would be welcome.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#172>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAs5GHMnWqa_rrZDCWIxpxnoyCYC6grcks5rjDVKgaJpZM4MUYTS>
.
|
@Mrjaco12 Fix should be in master now! It'll be pushed out in a new version soon enough. For now, you can use this in your Gemfile:
|
Dude, great work! Thanks a ton. It's always great to use an active well maintained project. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ruby version -
ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-darwin16]
VideoInfo version -
2.7
Reproduce:
Error:
RuntimeError: can't modify frozen String
from /usr/local/lib/ruby/gems/2.4.0/gems/video_info-2.7/lib/video_info/providers/vkontakte.rb:16:in 'strip!'
Looks like there are two places in the
vkontakte.rb
file wherestrip!
is used. It should be fairly easy to move those over to.strip
. I can work up a PR sometime later this week if that would be welcome.The text was updated successfully, but these errors were encountered: