ims-lti 1.2.8 → 1.2.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Changelog +22 -0
  3. data/README.md +13 -0
  4. data/lib/ims/lti/version.rb +5 -0
  5. metadata +4 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd3a02081dfe2714b9f8e53f518bb79fbf680778e9766d373adb3d323fe461bc
4
- data.tar.gz: b0aac62837a91c996b60aa062bc34f527fe675533444dea10c4772957de2c6f8
3
+ metadata.gz: 801e423357504d51cc0289e45e364d026abd4bbad20dfca90107725796cd258f
4
+ data.tar.gz: cfdcb37216eef088886486f951af05f719b086f7f32f7d8d83dc04f3020b563e
5
5
  SHA512:
6
- metadata.gz: c999b9041264a369d4285d965f12d8808d4acd6a89de7ceaa8747ca93303fe8ae452a26e1ec5a42ea268a694bf02a171add2493944b3f9a64773f041436ad769
7
- data.tar.gz: c42d32e837ee89c6a464ba7028469042ce3bdec25eeba826f26134761912558d57a42b9efac2659190170b7893655f6d2bdf34e0cb687793b2f4559e572437bb
6
+ metadata.gz: fcc31ec46d3fccb7585bbe3d6dff5ab88227ccea12b4c056a2f8c588a864b26bb9d74d13601e2b08f7bcc404d215b4b0be14a3b96b613b79e795edfeb8ad2d0c
7
+ data.tar.gz: 0bfa98f889d2b848e03200a22f76447bab3df748c9b6a351d42d5ec9218838ba749f5751af59efd5ae8f7db701a28fcf5b8b92cecb253ebfc097cce3cfb7ff59
data/Changelog CHANGED
@@ -1,6 +1,28 @@
1
+ 2023-05-30 Version 1.2.9
2
+ * Loosen version requirement for OAuth gem
3
+
4
+ 2023-01-03 Version 1.2.8
5
+ * Add Ruby 3.0 support by requiring rexml
6
+ * Fix URI encoding bug for queries with an ampersand `&`
7
+
8
+ 2022-12-13 Version 1.2.7
9
+ * Fix content return parameter encoding
10
+
11
+ 2022-04-26 Version 1.2.6
12
+ * Add support for prioritizeNonToolGrade
13
+ * Add support for needsAdditionalReview
14
+
1
15
  2020-02-03 Version 1.2.4
2
16
  * Add support for submittedAt date
3
17
 
18
+ 2020-02-03 Version 1.2.3 -- yanked
19
+
20
+ 2017-06-19 Version 1.2.2
21
+ * Explicitly require 'oauth' gem and specify version range
22
+
23
+ 2017-04-13 Version 1.2.1
24
+ * Remove date field from gemspec
25
+
4
26
  2017-03-08 Version 1.2.0
5
27
  * Don't downcase roles
6
28
 
data/README.md CHANGED
@@ -112,5 +112,18 @@ As a Tool Consumer your app will POST an OAuth-signed launch requests to TPs wit
112
112
  [LTI launch data](http://www.imsglobal.org/LTI/v1p1/ltiIMGv1p1.html#_Toc319560465).
113
113
  This is covered in the [LTI security model](http://www.imsglobal.org/LTI/v1p1/ltiIMGv1p1.html#_Toc319560466)
114
114
 
115
+ ```ruby
116
+
117
+ params = { user_id: '123', lti_message_type: IMS::LTI::Models::Messages::BasicLTILaunchRequest::MESSAGE_TYPE }
118
+
119
+ header = SimpleOAuth::Header.new(:post, 'https://yoursite.com', params, consumer_key: oauth_consumer_key, consumer_secret: secret)
120
+
121
+ signed_params = header.signed_attributes.merge(params)
122
+
123
+ IMS::LTI::Services::MessageAuthenticator.new(launch_url, signed_params, secret)
124
+
125
+ ```
126
+
127
+ ## Contributing
115
128
  Here is an example of a simple TC Sinatra app using this gem:
116
129
  [LTI Tool Consumer](https://github.com/instructure/lti_tool_consumer_example)
@@ -0,0 +1,5 @@
1
+ module IMS
2
+ module LTI
3
+ VERSION = '1.2.9'.freeze
4
+ end
5
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ims-lti
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.8
4
+ version: 1.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-03 00:00:00.000000000 Z
11
+ date: 2023-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder
@@ -37,9 +37,6 @@ dependencies:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
39
  version: 0.4.5
40
- - - "<"
41
- - !ruby/object:Gem::Version
42
- version: '0.6'
43
40
  type: :runtime
44
41
  prerelease: false
45
42
  version_requirements: !ruby/object:Gem::Requirement
@@ -47,9 +44,6 @@ dependencies:
47
44
  - - ">="
48
45
  - !ruby/object:Gem::Version
49
46
  version: 0.4.5
50
- - - "<"
51
- - !ruby/object:Gem::Version
52
- version: '0.6'
53
47
  - !ruby/object:Gem::Dependency
54
48
  name: rexml
55
49
  requirement: !ruby/object:Gem::Requirement
@@ -110,6 +104,7 @@ files:
110
104
  - lib/ims/lti/tool_config.rb
111
105
  - lib/ims/lti/tool_consumer.rb
112
106
  - lib/ims/lti/tool_provider.rb
107
+ - lib/ims/lti/version.rb
113
108
  homepage: http://github.com/instructure/ims-lti
114
109
  licenses:
115
110
  - MIT
@@ -129,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
124
  - !ruby/object:Gem::Version
130
125
  version: '0'
131
126
  requirements: []
132
- rubygems_version: 3.2.22
127
+ rubygems_version: 3.1.6
133
128
  signing_key:
134
129
  specification_version: 4
135
130
  summary: Ruby library for creating IMS LTI tool providers and consumers