Skip to content

Commit

Permalink
rename swift to swiftpm
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Jul 22, 2016
1 parent e5a92b0 commit cb05d6b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/recommendable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def platform_language_mapping
'Go': 'Go',
'JavaScript': 'NPM',
'Objective-C': 'CocoaPods',
'Swift': 'CocoaPods',
'Swift': 'SwiftPM',
'HTML': 'Bower',
'CSS': 'Bower',
'CoffeeScript': 'NPM',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Repositories
class Swift < Base
class SwiftPM < Base
HAS_VERSIONS = false
HAS_DEPENDENCIES = false
LIBRARIAN_SUPPORT = false
Expand Down
6 changes: 6 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@
get '/rails/mailers/*path' => "rails/mailers#preview"
end

get '/swift/', to: redirect("/SwiftPM")
get '/Swift/', to: redirect("/SwiftPM")

get '/swift/:name', to: redirect("/SwiftPM/%{name}"), constraints: { :name => /.*/ }
get '/Swift/:name', to: redirect("/SwiftPM/%{name}"), constraints: { :name => /.*/ }

get '/:platform/:name/suggestions', to: 'project_suggestions#new', as: :project_suggestions, constraints: { :name => /.*/ }
post '/:platform/:name/suggestions', to: 'project_suggestions#create', constraints: { :name => /.*/ }

Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/download.rake
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ namespace :download do
end

task swift: :environment do
Repositories::Swift.import
Repositories::SwiftPM.import
end

task sublime: :environment do
Expand Down

0 comments on commit cb05d6b

Please sign in to comment.