yeah ... we should be installing the gem :)

This commit is contained in:
Sam
2013-08-26 13:52:15 +10:00
parent 818bf1355d
commit afd1a3ac7b
2 changed files with 1 additions and 2 deletions

View File

@ -454,7 +454,6 @@ class UsersController < ApplicationController
authenticator.after_create_account(user, auth) authenticator.after_create_account(user, auth)
end end
def register_nickname(user) def register_nickname(user)
if user.valid? && SiteSetting.call_discourse_hub? if user.valid? && SiteSetting.call_discourse_hub?
DiscourseHub.register_nickname(user.username, user.email) DiscourseHub.register_nickname(user.username, user.email)

View File

@ -176,7 +176,7 @@ class Plugin::Instance
unless File.exists? spec_file unless File.exists? spec_file
command = "gem install #{name} -v #{version} -i #{gems_path} --no-rdoc --no-ri" command = "gem install #{name} -v #{version} -i #{gems_path} --no-rdoc --no-ri"
puts command puts command
puts `command` puts `#{command}`
end end
if File.exists? spec_file if File.exists? spec_file
spec = Gem::Specification.load spec_file spec = Gem::Specification.load spec_file