canvas-lms/gems/turnitin_api
Brad Horrocks 6ee329eebc The turnitin submission endpoint should save originality data
Fires off delayed job that hits the turnitin callback url,
creates a submission, and maps originality data into the turnitin_data
field.

Fixes PLAT-1167
Fixes PLAT-1169

Test Plan:
You'll need to have the TurnItIn LTI tool installed, and delayed_jobs
running

Create an assignment with the submission set to the External Tool for
turnitin.
As a student, submit the assignment.
wait for the delayed job to run. check out /jobs to see whats going on
After the job has ran you should see turnitin data, as you would
normally with the plugin

Change-Id: I5d60d250e91b422b5e77255d715abf2e4712f130
Reviewed-on: https://gerrit.instructure.com/59942
Tested-by: Jenkins
Reviewed-by: Nathan Mills <nathanm@instructure.com>
Product-Review: Nathan Mills <nathanm@instructure.com>
QA-Review: Nathan Mills <nathanm@instructure.com>
2015-08-05 15:43:30 +00:00
..
bin Turnitin gem and delayed job skeleton 2015-07-30 14:02:15 +00:00
lib The turnitin submission endpoint should save originality data 2015-08-05 15:43:30 +00:00
spec submit orginal turnitin submission 2015-08-04 21:00:42 +00:00
.rspec Turnitin gem and delayed job skeleton 2015-07-30 14:02:15 +00:00
Gemfile Turnitin gem and delayed job skeleton 2015-07-30 14:02:15 +00:00
LICENSE.txt Turnitin gem and delayed job skeleton 2015-07-30 14:02:15 +00:00
README.md Turnitin gem and delayed job skeleton 2015-07-30 14:02:15 +00:00
Rakefile Turnitin gem and delayed job skeleton 2015-07-30 14:02:15 +00:00
test.sh Turnitin gem and delayed job skeleton 2015-07-30 14:02:15 +00:00
turnitin_api.gemspec Turnitin gem and delayed job skeleton 2015-07-30 14:02:15 +00:00

README.md

TurnitinApi

Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file lib/turnitin. To experiment with that code, run bin/console for an interactive prompt.

TODO: Delete this and the text above, and describe your gem

Installation

Add this line to your application's Gemfile:

gem 'turnitin'

And then execute:

$ bundle

Or install it yourself as:

$ gem install turnitin

Usage

TODO: Write usage instructions here

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake rspec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/turnitin.

License

The gem is available as open source under the terms of the MIT License.