update proforma gem
This commit is contained in:
2
Gemfile
2
Gemfile
@ -37,7 +37,7 @@ gem 'rest-client'
|
|||||||
gem 'rubyzip'
|
gem 'rubyzip'
|
||||||
gem 'mnemosyne-ruby'
|
gem 'mnemosyne-ruby'
|
||||||
gem 'faraday'
|
gem 'faraday'
|
||||||
gem 'proforma', path: '../proforma' #, git: 'git://github.com/openHPI/proforma.git' # use version not master
|
gem 'proforma', git: 'https://github.com/openHPI/proforma.git', tag: 'v0.3.2'
|
||||||
gem 'whenever', require: false
|
gem 'whenever', require: false
|
||||||
gem 'rails-timeago'
|
gem 'rails-timeago'
|
||||||
|
|
||||||
|
@ -7,10 +7,12 @@ GIT
|
|||||||
rack (>= 1.5.0)
|
rack (>= 1.5.0)
|
||||||
websocket (>= 1.1.0)
|
websocket (>= 1.1.0)
|
||||||
|
|
||||||
PATH
|
GIT
|
||||||
remote: ../proforma
|
remote: https://github.com/openHPI/proforma.git
|
||||||
|
revision: 6784ace5bb4449fd53f419fa1eb40dfc04e8f086
|
||||||
|
tag: v0.3.2
|
||||||
specs:
|
specs:
|
||||||
proforma (0.1.0)
|
proforma (0.3.2)
|
||||||
activemodel (~> 5.2.3)
|
activemodel (~> 5.2.3)
|
||||||
activesupport (~> 5.2.3)
|
activesupport (~> 5.2.3)
|
||||||
nokogiri (~> 1.10.2)
|
nokogiri (~> 1.10.2)
|
||||||
|
@ -177,11 +177,10 @@ class ExercisesController < ApplicationController
|
|||||||
exercise.save!
|
exercise.save!
|
||||||
return render json: {}, status: 201
|
return render json: {}, status: 201
|
||||||
end
|
end
|
||||||
# logger.info(exercise.errors.full_messages)
|
|
||||||
# render json: {}, status: 400
|
|
||||||
rescue Proforma::ProformaError
|
rescue Proforma::ProformaError
|
||||||
render json: t('exercises.export_codeharbor.export_errors.invalid'), status: 400
|
render json: t('exercises.export_codeharbor.export_errors.invalid'), status: 400
|
||||||
rescue StandardError
|
rescue StandardError
|
||||||
|
logger.info(exercise.errors.full_messages)
|
||||||
render json: t('exercises.export_codeharbor.export_errors.internal_error'), status: 500
|
render json: t('exercises.export_codeharbor.export_errors.internal_error'), status: 500
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user