You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not actually using the gem but I was looking how it's implemented and noticed that when rescue URI::InvalidURIError is triggered you are applying :url instead of options.fetch(:message)
fixesperfectline#122.
I could only run the specs by removing Gemfile.lock and would recommend perfectline#150 to be merged before this PR.
Several examples were red with NoMethodErrors before I made any changes. I had to add the `value && ` to fix that.
The example `does not allow a url with only a scheme` was also red. I had to add the `host.empty?` check to fix that one.
fixes#122.
I could only run the specs by removing Gemfile.lock and would recommend #150 to be merged before this PR.
Several examples were red with NoMethodErrors before I made any changes. I had to add the `value && ` to fix that.
The example `does not allow a url with only a scheme` was also red. I had to add the `host.empty?` check to fix that one.
I'm not actually using the gem but I was looking how it's implemented and noticed that when
rescue URI::InvalidURIError
is triggered you are applying:url
instead ofoptions.fetch(:message)
https://github.com/perfectline/validates_url/blob/master/lib/validate_url.rb#L66
The text was updated successfully, but these errors were encountered: