New:Socket for Asana Is Now Available.Learn more
Get Started

lti

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lti - npm Package Compare versions

Comparing version
0.3.4
to
0.3.5
+11
-11
Gruntfile.coffee

@@ -20,17 +20,17 @@ module.exports = (grunt) ->

copy: test: files: ['build/etc/toolconsumer-test.config.json': 'resource/test/json/etc/toolconsumer-test.config.json']
cafemocha:
all:
src: ['build/**/*-test.js']
options: timeout: 8000
travis:
src: ['build/**/*-test.js']
options: timeout: 16000
mochacov:
options:
files: ['build/**/*-test.js']
require: ['should']
slow: 500
timeout: 16000
test: options: reporter: 'spec'
coverage: options: coveralls: serviceName: 'travis-ci'
grunt.loadNpmTasks('grunt-cafe-mocha')
grunt.loadNpmTasks('grunt-contrib-coffee')
grunt.loadNpmTasks('grunt-contrib-copy')
grunt.loadNpmTasks('grunt-mocha-cov')
grunt.registerTask('default', ['coffee', 'copy'])
grunt.registerTask('test', ['default', 'cafemocha:all'])
grunt.registerTask('travis', ['default', 'cafemocha:travis'])
grunt.registerTask('test', ['default', 'mochacov:test'])
grunt.registerTask('travis', ['test', 'mochacov:coverage'])
{
"homepage": "http://rockymadden.com/lti.js/",
"author": "Rocky Madden (http://rockymadden.com/)",
"dependencies": {

@@ -13,9 +13,12 @@ "bilby": "0.0.x",

"grunt": "0.4.x",
"grunt-cli": "0.1.9",
"grunt-cafe-mocha": "0.1.x",
"grunt-cli": "0.1.x",
"grunt-contrib-coffee": "0.7.x",
"grunt-contrib-copy": "0.4.x",
"mocha": "1.11.x",
"should": "1.2.x"
"grunt-mocha-cov": "0.1.x",
"mocha": "1.15.x",
"should": "2.1.x"
},
"engines": {"node": ">=0.10.0"},
"homepage": "http://rockymadden.com/lti.js/",
"keywords": ["lti", "oauth", "learning tools interoperability", "ims", "ims global", "education"],
"main": "build/lti.js",

@@ -28,5 +31,6 @@ "name": "lti",

"scripts": {
"blanket": {"pattern": ["build"]},
"prepublish": "grunt"
},
"version": "0.3.4"
"version": "0.3.5"
}

@@ -1,2 +0,2 @@

#lti.js [![Build Status](https://travis-ci.org/rockymadden/lti.js.png?branch=master)](http://travis-ci.org/rockymadden/lti.js)
#lti.js [![Build Status](https://travis-ci.org/rockymadden/lti.js.png?branch=master)](http://travis-ci.org/rockymadden/lti.js) [![Coverage Status](https://coveralls.io/repos/rockymadden/lti.js/badge.png)](https://coveralls.io/r/rockymadden/lti.js)
Functional library for interacting, via server-to-server communications, with Learning Tools Interoperability (LTI) tool providers. The project makes heavy use of [bilby.js](https://github.com/puffnfresh/bilby.js) and [Q](https://github.com/kriskowal/q). You will likely need a familiarity with basic functional programming concepts and promises to be successful.

@@ -21,3 +21,3 @@

* __Tool Contexts:__ Tool contexts are immutable structures made up of the consumer key, consumer/shared secret, host, path, port (default: 443), and UTC offset (default: 0). It is unusual for contexts to change per request, but it is possible depending upon the tool provider. If new contexts are needed, create a base context. This will provide lens-like behavior in which new contexts only need to specify what is different. See [bilby.js](http://bilby.brianmckenna.org/#environment) for more information.
* __Tool Consumers:__ Tool consumers allow you to issue one or more asynchronous requests and handle the response(s). Responses return Q based promises. Each contains an option monad. See [Q](https://github.com/kriskowal/q) and [bilby.js](http://bilby.brianmckenna.org/#option) for more information.
* __Tool Consumers:__ Tool consumers allow you to issue one or more asynchronous requests to tool providers and handle the response(s). Responses return Q based promises. Each contains an option monad. See [Q](https://github.com/kriskowal/q) and [bilby.js](http://bilby.brianmckenna.org/#option) for more information.

@@ -27,3 +27,3 @@ ## Using

```coffeescript
# Setup the tool context (hence the name).
# Setup tool context.
context = lti.ToolContext

@@ -36,2 +36,3 @@ .property('consumerKey', 'consumerKey')

context.withSession((consumer) ->
# Setup tool parameters.
parameters =

@@ -42,3 +43,3 @@ lti_version: 'LTI-1p0'

# Simple one-off request, we could also make a large array of promises and asynchronously
# Simple one-off request. We could also make a large array of promises and asynchronously
# execute all of them. Check out: https://github.com/kriskowal/q/wiki/API-Reference#promiseall

@@ -45,0 +46,0 @@ consumer.request(parameters)