panda_pal 3.1.1 → 3.1.2

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
  SHA1:
3
- metadata.gz: 68557ed534e331c2efb01692b9d7cedab193fb84
4
- data.tar.gz: 3d6ff74d97f48eae34792ffa7a49ce28de72e757
3
+ metadata.gz: fc63b71fd71ca6563dd61d115da4d247b6aab7db
4
+ data.tar.gz: 51c531a1b825b1c54dba337f92db068aae5e3dbe
5
5
  SHA512:
6
- metadata.gz: cea120df0d666fc195b85f2579b09daab8d1150c8a67074e782116d7a9c6e8db1567de0792d8b19dcbecdda3bde46216a2cbb427e14c0ac3af78e3aaa242b8fe
7
- data.tar.gz: 7078d249571751fc2e4208bdd04d28a50a746dfa4014b0b75f0d40059c8a3995369f3168d780db138fa7594e750e19e1ea129fcb45405543b02ce38f66b569be
6
+ metadata.gz: 65f467b94bee045c2d771e5a5ac07d3ced63c43ce203b26df9e7a25bcb5260b0d0fc5823dcf65ea466d5990a5af92f00ab94f93c9577df5b60e36e3f8bb3e70e
7
+ data.tar.gz: b897fbac6c53bd258e71954cc3564487b3caa17007e818d49246ba56ef5b9d02c34907039c5eb405b2715042825ff39e7d6d7f35d324279360530ce169362069
@@ -1,5 +1,10 @@
1
1
  require 'apartment/elevators/generic'
2
-
2
+ # Just stencil in the routes if pandapal isn't initialized.
3
+ if ENV['NO_PANDAPAL_INIT']
4
+ def lti_nav(junk)
5
+ end
6
+ return
7
+ end
3
8
  Apartment.configure do |config|
4
9
  config.excluded_models = ['PandaPal::Organization', 'PandaPal::Session']
5
10
 
data/lib/panda_pal.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require "panda_pal/engine" unless ENV['NO_PANDAPAL_INIT']
2
- require 'panda_pal/plugins'
3
- require 'panda_pal/helpers'
2
+ require "panda_pal/empty_engine" if ENV['NO_PANDAPAL_INIT']
3
+ require 'panda_pal/plugins' unless ENV['NO_PANDAPAL_INIT']
4
+ require 'panda_pal/helpers' unless ENV['NO_PANDAPAL_INIT']
4
5
 
5
6
  module PandaPal
6
7
  class LtiNavigationInUse < StandardError;end
@@ -0,0 +1,5 @@
1
+ module PandaPal
2
+ class Engine < ::Rails::Engine
3
+ isolate_namespace PandaPal
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module PandaPal
2
- VERSION = "3.1.1"
2
+ VERSION = "3.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panda_pal
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.1
4
+ version: 3.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure ProServe
@@ -156,6 +156,7 @@ files:
156
156
  - db/migrate/20171205183457_encrypt_organization_settings.rb
157
157
  - db/migrate/20171205194657_remove_old_organization_settings.rb
158
158
  - lib/panda_pal.rb
159
+ - lib/panda_pal/empty_engine.rb
159
160
  - lib/panda_pal/engine.rb
160
161
  - lib/panda_pal/helpers.rb
161
162
  - lib/panda_pal/helpers/controller_helper.rb