ims-lti 1.1.11 → 1.1.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog +6 -3
- data/lib/ims/lti/role_checks.rb +5 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3519a3ee6fb782c4ed97fcb89652c2011a3bb602
|
4
|
+
data.tar.gz: 495e959fd7bcddd71da5ead3ec88745109aae5c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a046a0db9890831af84705ca31d11d409ee3095b58e56e1bfd1eb458163a9856fbbff51bd7738d87a776d97bc7a88fc74b62980a64a8553437bb66592178499f
|
7
|
+
data.tar.gz: ac7793788cb184c463f10e977dfac0f448c840f99ca4f9a11cc9bd1af6142d6896b9d1a1fa8419afd404b16c4ca6967315e38429cf0c17ccfb719e0273998371
|
data/Changelog
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
2016-06-16 Version 1.1.12
|
2
|
+
* Add support for detecting observer role
|
3
|
+
|
1
4
|
2015-02-20 Version 1.1.8
|
2
5
|
* Replace usage of the 'uuid' gem with SecureRandom
|
3
6
|
* Update the outcome extension doc example
|
@@ -24,13 +27,13 @@
|
|
24
27
|
* Fix tests reliant on random ordering
|
25
28
|
* Add rails 3 note to readme install docs
|
26
29
|
* Create Changelog
|
27
|
-
|
30
|
+
|
28
31
|
|
29
32
|
2012-03-14 Version 1.0.2
|
30
33
|
|
31
34
|
* Refactor OAuth validation into its own module
|
32
|
-
|
33
|
-
|
35
|
+
|
36
|
+
|
34
37
|
2012-03-13 Version 1.0.1
|
35
38
|
|
36
39
|
* Add gem dependencies to gemspec
|
data/lib/ims/lti/role_checks.rb
CHANGED
@@ -92,5 +92,10 @@ module IMS::LTI
|
|
92
92
|
def context_ta?
|
93
93
|
has_exact_role?('TeachingAssistant') || has_exact_role?('urn:lti:role:ims/lis/TeachingAssistant')
|
94
94
|
end
|
95
|
+
|
96
|
+
# Convenience method for checking if the user has 'Observer' role in the current launch context
|
97
|
+
def context_observer?
|
98
|
+
has_exact_role?('Observer') || has_exact_role?('urn:lti:instrole:ims/lis/Observer')
|
99
|
+
end
|
95
100
|
end
|
96
101
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ims-lti
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Instructure
|
@@ -112,8 +112,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
version: '0'
|
113
113
|
requirements: []
|
114
114
|
rubyforge_project:
|
115
|
-
rubygems_version: 2.
|
115
|
+
rubygems_version: 2.5.1
|
116
116
|
signing_key:
|
117
117
|
specification_version: 4
|
118
118
|
summary: Ruby library for creating IMS LTI tool providers and consumers
|
119
119
|
test_files: []
|
120
|
+
has_rdoc:
|