Skip to content

Commit

Permalink
Change to correct syntax for calling a class method (how did this eve…
Browse files Browse the repository at this point in the history
…r work?!) (derp)
  • Loading branch information
mbishop-fiksu committed Nov 11, 2014
1 parent 59a92f8 commit 5c2e682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cocoapods-downloader/http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def should_flatten?
end

def type_with_url(url)
path = URI::parse(url).path
path = URI.parse(url).path
if path =~ /.zip$/
:zip
elsif path =~ /.(tgz|tar\.gz)$/
Expand Down

1 comment on commit 5c2e682

@alloy
Copy link
Member

@alloy alloy commented on 5c2e682 Nov 17, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That syntax works fine:

irb(main):001:0> class X; def self.foo; p :ok; end; end
=> nil
irb(main):002:0> X::foo
:ok

But it is definitely not our syntax of choice, so thanks for the change regardless :) 👍

Please sign in to comment.