mirror of
https://github.com/atom/atom.git
synced 2026-01-24 14:28:14 -05:00
no false alarms on gemfiles please.
(aka we still need to add support for the `gemspec` method)
This commit is contained in:
@@ -15,14 +15,15 @@ class Gemfile extends Extension
|
||||
urls = @project.urls()
|
||||
gemfile = _.detect urls, ({url}) -> /Gemfile/i.test url
|
||||
{url} = gemfile if gemfile
|
||||
gems = @gems url if url
|
||||
|
||||
if url
|
||||
if url and gems.length > 0
|
||||
@project.settings.extraURLs[@project.url] = [
|
||||
name: "RubyGems"
|
||||
url: "http://rubygems.org/"
|
||||
type: 'dir'
|
||||
]
|
||||
gems = @gems url
|
||||
|
||||
@project.settings.extraURLs["http://rubygems.org/"] = gems
|
||||
@pane = new ModalSelector -> gems
|
||||
|
||||
|
||||
Reference in New Issue
Block a user