panda_pal 5.6.10 → 5.6.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c935b2a3eae094ada04fdc46e45f25414c61b2e9afbf9c77d81ae611343548a
4
- data.tar.gz: 96a098c934a92e921dc951ea0c492a0af5a5c2d8ebfbe57028a344a025c4e718
3
+ metadata.gz: 29034766a62fed97c43d0e3ef2754e1f04a4d925b8a467bd78dda5a2f5d87f1e
4
+ data.tar.gz: d4c3c29aa255a8311bbe00d1dbe0358f247425fa8ed1f7eddfca1ec7315897d5
5
5
  SHA512:
6
- metadata.gz: e63f7e0b91ce15a03e1baa5f64ec479fb28a921f1301daaac2c5376f3da8aea0728c0639f25836ef9e5e228fe7dd82424935df92511c50d3ad6ca0afa10c55c4
7
- data.tar.gz: 3e8ffeff4dc35b093d8c2a2b243a1f5a496902508e3207a564285617b7465c803e7d875a21703e452c5afd53529ceb2f660f7e77bfdecd479178be9567f805c0
6
+ metadata.gz: e4ca709472f506cb84cfc9020b254e3ddafdf756f6dd83325f314910914878adfc1ea3363c8bca938f3933a27852205ccb9e1832df7a67a501bc442d4e3e3b80
7
+ data.tar.gz: 72fe59902312a2da78350ab1a095808e8c1e902ca02e208474413fa06989f6bbb0f8c1174e929555b501674754b21f4ebdbfce7d73404f7ffe0d27595b7546ad
data/README.md CHANGED
@@ -28,6 +28,8 @@ org.install_lti(
28
28
  host: "https://your_lti.herokuapp.com",
29
29
  context: "account/self", # (Optional) Or "account/3", "course/1", etc
30
30
  exists: :error, # (Optional) Action to take if an LTI with the same Key already exists. Options are :error, :replace, :duplicate
31
+ version: "v1p3", # (Optional, default `v1p3`) LTI Version. Accepts `v1p0` or `v1p3`.
32
+ dedicated_deployment: false, # (Optional) If true, the Organization will be updated to link to a single deployment rather then to the general LTI Key. (experimental)
31
33
  )
32
34
  ```
33
35
 
@@ -44,11 +44,13 @@ module PandaPal
44
44
  def install_lti(host: nil, context: :root_account, version: 'v1p3', exists: :error, dedicated_deployment: false)
45
45
  raise "Automatically installing this LTI requires Bearcat." unless defined?(Bearcat)
46
46
 
47
+ version = version.to_s
48
+
47
49
  run_callbacks :lti_install do
48
50
  ctype, cid = _parse_lti_context(context)
49
51
 
50
52
  if version == 'v1p0'
51
- existing_installs = _find_existing_installs(exists: exists) do |lti|
53
+ existing_installs = _find_existing_installs(context, exists: exists) do |lti|
52
54
  lti[:consumer_key] == self.key
53
55
  end
54
56
 
@@ -103,7 +103,7 @@ module PandaPal
103
103
 
104
104
  initializer "panda_pal.serialze_symbols" do |app|
105
105
  app.config.active_record.yaml_column_permitted_classes ||= []
106
- app.config.active_record.yaml_column_permitted_classes |= [Symbol]
106
+ app.config.active_record.yaml_column_permitted_classes |= [Symbol, ActiveSupport::Duration]
107
107
  rescue
108
108
  end
109
109
 
@@ -1,3 +1,3 @@
1
1
  module PandaPal
2
- VERSION = "5.6.10"
2
+ VERSION = "5.6.12"
3
3
  end
data/panda_pal.gemspec CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
24
24
  s.add_dependency 'ros-apartment', '~> 2.2'
25
25
  s.add_dependency 'ims-lti', '~> 1.2.4'
26
26
  s.add_dependency 'browser', '2.5.0'
27
- s.add_dependency 'attr_encrypted', '~> 3.0.0'
27
+ s.add_dependency 'attr_encrypted', '~> 4.0.0'
28
28
  s.add_dependency 'secure_headers', '~> 6.1'
29
29
  s.add_dependency 'json-jwt'
30
30
  s.add_dependency 'jwt'