mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
parent
4b3792562a
commit
46617f02c6
1 changed files with 9 additions and 5 deletions
|
@ -181,9 +181,13 @@ module Rails
|
|||
super
|
||||
end
|
||||
|
||||
def self.github(name, github, comment = nil)
|
||||
def self.github(name, github, branch = nil, comment = nil)
|
||||
if branch
|
||||
new(name, nil, comment, github: github, branch: branch)
|
||||
else
|
||||
new(name, nil, comment, github: github)
|
||||
end
|
||||
end
|
||||
|
||||
def self.version(name, version, comment = nil)
|
||||
new(name, version, comment)
|
||||
|
@ -238,7 +242,7 @@ module Rails
|
|||
|
||||
gems = []
|
||||
if options.dev? || options.edge?
|
||||
gems << GemfileEntry.github('sass-rails', 'rails/sass-rails',
|
||||
gems << GemfileEntry.github('sass-rails', 'rails/sass-rails', nil,
|
||||
'Use SCSS for stylesheets')
|
||||
else
|
||||
gems << GemfileEntry.version('sass-rails', '~> 4.0',
|
||||
|
@ -265,7 +269,7 @@ module Rails
|
|||
def console_gemfile_entry
|
||||
comment = 'Use Rails Console on the Browser'
|
||||
if options.dev? || options.edge?
|
||||
GemfileEntry.github 'web-console', 'rails/web-console', comment
|
||||
GemfileEntry.github 'web-console', 'rails/web-console', nil, comment
|
||||
else
|
||||
[]
|
||||
end
|
||||
|
@ -274,7 +278,7 @@ module Rails
|
|||
def coffee_gemfile_entry
|
||||
comment = 'Use CoffeeScript for .coffee assets and views'
|
||||
if options.dev? || options.edge?
|
||||
GemfileEntry.github 'coffee-rails', 'rails/coffee-rails', comment
|
||||
GemfileEntry.github 'coffee-rails', 'rails/coffee-rails', nil, comment
|
||||
else
|
||||
GemfileEntry.version 'coffee-rails', '~> 4.1.0', comment
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue