samsymons / RedditKit.rb

[Deprecated] A Ruby wrapper for the reddit API
https://redditkit.com/
MIT License
152 stars 26 forks source link

Permalink contains extra / #34

Closed blakejakopovic closed 9 years ago

blakejakopovic commented 9 years ago

It looks like an extra forward slash has found it's way back into the permalink method. I had a look in the code, but it isn't obvious where it's happening. I don't believe that it was caused by either of the newest commits for permalink.

require 'redditkit'
reddit = RedditKit::Client.new "username", "password"
post = reddit.my_content(category: :saved).first
post.permalink
=> "http://reddit.com//r/technology/comments/2k8dqo/new_evidence_of_the_nsa_deliberately_weakening/"

Note: Using version 1.0.1

samsymons commented 9 years ago

Thanks for reporting this – wonder what caused the regression on this. I'll see about getting this fixed today.

samsymons commented 9 years ago

I found what the issue was; I'll get a new release out today with a bunch of bug fixes.

samsymons commented 9 years ago

1.0.2 is now out and should fix this issue.