panda_pal 5.15.1.beta2 → 5.15.1.beta4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +0 -0
  3. data/Rakefile +0 -0
  4. data/app/assets/config/panda_pal_manifest.js +0 -0
  5. data/app/assets/javascripts/panda_pal/lti.js +0 -0
  6. data/app/assets/stylesheets/panda_pal/application.css +0 -0
  7. data/app/assets/stylesheets/panda_pal/lti.css +0 -0
  8. data/app/controllers/panda_pal/api_call_controller.rb +1 -2
  9. data/app/controllers/panda_pal/lti_controller.rb +1 -3
  10. data/app/controllers/panda_pal/lti_v1_p0_controller.rb +1 -3
  11. data/app/controllers/panda_pal/lti_v1_p3_controller.rb +1 -3
  12. data/app/controllers/panda_pal/{application_controller.rb → panda_pal_controller.rb} +1 -1
  13. data/app/helpers/panda_pal/application_helper.rb +0 -0
  14. data/app/jobs/panda_pal/jobs/grade_passback_job.rb +0 -0
  15. data/app/lib/lti_xml/base_platform.rb +0 -0
  16. data/app/lib/lti_xml/bridge_platform.rb +0 -0
  17. data/app/lib/lti_xml/canvas_platform.rb +0 -0
  18. data/app/lib/panda_pal/launch_url_helpers.rb +0 -0
  19. data/app/lib/panda_pal/lti_jwt_validator.rb +0 -0
  20. data/app/models/panda_pal/api_call.rb +0 -0
  21. data/app/models/panda_pal/organization_concerns/organization_builder.rb +0 -0
  22. data/app/models/panda_pal/organization_concerns/settings_validation.rb +0 -0
  23. data/app/models/panda_pal/organization_concerns/task_scheduling.rb +0 -0
  24. data/app/models/panda_pal/panda_pal_record.rb +0 -0
  25. data/app/models/panda_pal/platform.rb +0 -0
  26. data/app/views/layouts/panda_pal/application.html.erb +0 -0
  27. data/app/views/panda_pal/lti/launch.html.erb +0 -0
  28. data/app/views/panda_pal/lti_v1_p3/login.html.erb +0 -0
  29. data/app/views/panda_pal/partials/_auto_submit_form.html.erb +0 -0
  30. data/config/dev_lti_key.key +0 -0
  31. data/config/initializers/apartment.rb +32 -22
  32. data/config/routes.rb +0 -0
  33. data/db/migrate/20160412205931_create_panda_pal_organizations.rb +0 -0
  34. data/db/migrate/20160413135653_create_panda_pal_sessions.rb +0 -0
  35. data/db/migrate/20160425130344_add_panda_pal_organization_to_session.rb +0 -0
  36. data/db/migrate/20170106165533_add_salesforce_id_to_organizations.rb +0 -0
  37. data/db/migrate/20171205183457_encrypt_organization_settings.rb +0 -0
  38. data/db/migrate/20171205194657_remove_old_organization_settings.rb +0 -0
  39. data/db/migrate/20220721095653_create_panda_pal_api_calls.rb +0 -0
  40. data/lib/panda_pal/concerns/ability_helper.rb +0 -0
  41. data/lib/panda_pal/engine.rb +1 -0
  42. data/lib/panda_pal/helpers/console_helpers.rb +0 -0
  43. data/lib/panda_pal/helpers/misc_helper.rb +0 -0
  44. data/lib/panda_pal/helpers/route_helper.rb +0 -0
  45. data/lib/panda_pal/helpers/secure_headers.rb +0 -0
  46. data/lib/panda_pal/helpers.rb +0 -0
  47. data/lib/panda_pal/plugins.rb +0 -0
  48. data/lib/panda_pal/version.rb +1 -1
  49. data/lib/panda_pal.rb +0 -0
  50. data/lib/tasks/panda_pal_tasks.rake +0 -0
  51. data/panda_pal.gemspec +0 -14
  52. data/spec/controllers/panda_pal/api_call_controller_spec.rb +18 -20
  53. data/spec/core/apartment_multidb_spec.rb +1 -1
  54. data/spec/factories/panda_pal_organizations.rb +1 -1
  55. data/spec/factories/panda_pal_sessions.rb +4 -4
  56. data/spec/{dummy → internal}/config/database.yml +1 -12
  57. data/spec/{dummy → internal}/config/routes.rb +2 -1
  58. data/spec/internal/config/storage.yml +3 -0
  59. data/spec/internal/db/schema.rb +6 -0
  60. data/spec/models/panda_pal/api_call_spec.rb +1 -1
  61. data/spec/models/panda_pal/organization/settings_validation_spec.rb +1 -1
  62. data/spec/models/panda_pal/organization/task_scheduling_spec.rb +1 -1
  63. data/spec/models/panda_pal/organization_spec.rb +4 -4
  64. data/spec/models/panda_pal/session_spec.rb +1 -1
  65. data/spec/spec_helper.rb +54 -5
  66. metadata +10 -220
  67. data/spec/dummy/README.rdoc +0 -28
  68. data/spec/dummy/Rakefile +0 -6
  69. data/spec/dummy/app/assets/javascripts/application.js +0 -13
  70. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  71. data/spec/dummy/app/bin/bundle +0 -3
  72. data/spec/dummy/app/bin/rails +0 -4
  73. data/spec/dummy/app/bin/rake +0 -4
  74. data/spec/dummy/app/bin/setup +0 -29
  75. data/spec/dummy/app/controllers/application_controller.rb +0 -5
  76. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  77. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  78. data/spec/dummy/config/application.rb +0 -29
  79. data/spec/dummy/config/boot.rb +0 -5
  80. data/spec/dummy/config/environment.rb +0 -5
  81. data/spec/dummy/config/environments/development.rb +0 -27
  82. data/spec/dummy/config/environments/production.rb +0 -68
  83. data/spec/dummy/config/environments/test.rb +0 -47
  84. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  85. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -3
  86. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  87. data/spec/dummy/config/initializers/inflections.rb +0 -16
  88. data/spec/dummy/config/initializers/mime_types.rb +0 -4
  89. data/spec/dummy/config/initializers/session_store.rb +0 -3
  90. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  91. data/spec/dummy/config/locales/en.yml +0 -23
  92. data/spec/dummy/config/secrets.yml +0 -22
  93. data/spec/dummy/config.ru +0 -4
  94. data/spec/dummy/db/schema.rb +0 -49
  95. data/spec/dummy/db/test2_schema.rb +0 -49
  96. data/spec/dummy/public/404.html +0 -67
  97. data/spec/dummy/public/422.html +0 -67
  98. data/spec/dummy/public/500.html +0 -66
  99. data/spec/dummy/public/favicon.ico +0 -0
  100. data/spec/rails_helper.rb +0 -35
@@ -1,23 +0,0 @@
1
- # Files in the config/locales directory are used for internationalization
2
- # and are automatically loaded by Rails. If you want to use locales other
3
- # than English, add the necessary files in this directory.
4
- #
5
- # To use the locales, use `I18n.t`:
6
- #
7
- # I18n.t 'hello'
8
- #
9
- # In views, this is aliased to just `t`:
10
- #
11
- # <%= t('hello') %>
12
- #
13
- # To use a different locale, set it with `I18n.locale`:
14
- #
15
- # I18n.locale = :es
16
- #
17
- # This would use the information in config/locales/es.yml.
18
- #
19
- # To learn more, please read the Rails Internationalization guide
20
- # available at http://guides.rubyonrails.org/i18n.html.
21
-
22
- en:
23
- hello: "Hello world"
@@ -1,22 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key is used for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
-
6
- # Make sure the secret is at least 30 characters and all random,
7
- # no regular words or you'll be exposed to dictionary attacks.
8
- # You can use `rake secret` to generate a secure secret key.
9
-
10
- # Make sure the secrets in this file are kept private
11
- # if you're sharing your code publicly.
12
-
13
- development:
14
- secret_key_base: 4fc03e27b5bfc390d7beaf99e739c1a9ad4264d58cd2a1db40fbb83b6ed320e1fa77fb4e0dd7c24816811170a59d65b623bc887b4ca1e0bd0c57348e9e304f73
15
-
16
- test:
17
- secret_key_base: 7700238de042256ef63c58a57c6bf431b6ebca79f95f66ccd04b5ad8b89761db15a9b89a85b08ace8a69ae3867462cb9514eb21d0e591d8f3881de79d7b72675
18
-
19
- # Do not keep production secrets in the repository,
20
- # instead read values from the environment.
21
- production:
22
- secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
data/spec/dummy/config.ru DELETED
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run Rails.application
@@ -1,49 +0,0 @@
1
- # This file is auto-generated from the current state of the database. Instead
2
- # of editing this file, please use the migrations feature of Active Record to
3
- # incrementally modify your database, and then regenerate this schema definition.
4
- #
5
- # This file is the source Rails uses to define your schema when running `bin/rails
6
- # db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
7
- # be faster and is potentially less error prone than running all of your
8
- # migrations from scratch. Old migrations may fail to apply correctly if those
9
- # migrations use external dependencies or application code.
10
- #
11
- # It's strongly recommended that you check this file into your version control system.
12
-
13
- ActiveRecord::Schema[7.1].define(version: 2025_04_01_214421) do
14
- # These are extensions that must be enabled in order to support this database
15
- enable_extension "plpgsql"
16
-
17
- create_table "panda_pal_api_calls", id: :serial, force: :cascade do |t|
18
- t.text "logic"
19
- t.string "expiration"
20
- t.integer "uses_remaining"
21
- t.datetime "created_at", precision: nil, null: false
22
- t.datetime "updated_at", precision: nil, null: false
23
- end
24
-
25
- create_table "panda_pal_organizations", id: :serial, force: :cascade do |t|
26
- t.string "name"
27
- t.string "key"
28
- t.string "secret"
29
- t.string "canvas_account_id"
30
- t.datetime "created_at", precision: nil, null: false
31
- t.datetime "updated_at", precision: nil, null: false
32
- t.string "salesforce_id"
33
- t.text "encrypted_settings"
34
- t.string "encrypted_settings_iv"
35
- t.index ["key"], name: "index_panda_pal_organizations_on_key", unique: true
36
- t.index ["name"], name: "index_panda_pal_organizations_on_name", unique: true
37
- end
38
-
39
- create_table "panda_pal_sessions", id: :serial, force: :cascade do |t|
40
- t.string "session_secret"
41
- t.text "data"
42
- t.datetime "created_at", precision: nil, null: false
43
- t.datetime "updated_at", precision: nil, null: false
44
- t.integer "panda_pal_organization_id"
45
- t.index ["panda_pal_organization_id"], name: "index_panda_pal_sessions_on_panda_pal_organization_id"
46
- t.index ["session_secret"], name: "index_panda_pal_sessions_on_session_secret", unique: true
47
- end
48
-
49
- end
@@ -1,49 +0,0 @@
1
- # This file is auto-generated from the current state of the database. Instead
2
- # of editing this file, please use the migrations feature of Active Record to
3
- # incrementally modify your database, and then regenerate this schema definition.
4
- #
5
- # This file is the source Rails uses to define your schema when running `bin/rails
6
- # db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
7
- # be faster and is potentially less error prone than running all of your
8
- # migrations from scratch. Old migrations may fail to apply correctly if those
9
- # migrations use external dependencies or application code.
10
- #
11
- # It's strongly recommended that you check this file into your version control system.
12
-
13
- ActiveRecord::Schema[7.1].define(version: 2025_04_01_214421) do
14
- # These are extensions that must be enabled in order to support this database
15
- enable_extension "plpgsql"
16
-
17
- create_table "panda_pal_api_calls", id: :serial, force: :cascade do |t|
18
- t.text "logic"
19
- t.string "expiration"
20
- t.integer "uses_remaining"
21
- t.datetime "created_at", precision: nil, null: false
22
- t.datetime "updated_at", precision: nil, null: false
23
- end
24
-
25
- create_table "panda_pal_organizations", id: :serial, force: :cascade do |t|
26
- t.string "name"
27
- t.string "key"
28
- t.string "secret"
29
- t.string "canvas_account_id"
30
- t.datetime "created_at", precision: nil, null: false
31
- t.datetime "updated_at", precision: nil, null: false
32
- t.string "salesforce_id"
33
- t.text "encrypted_settings"
34
- t.string "encrypted_settings_iv"
35
- t.index ["key"], name: "index_panda_pal_organizations_on_key", unique: true
36
- t.index ["name"], name: "index_panda_pal_organizations_on_name", unique: true
37
- end
38
-
39
- create_table "panda_pal_sessions", id: :serial, force: :cascade do |t|
40
- t.string "session_secret"
41
- t.text "data"
42
- t.datetime "created_at", precision: nil, null: false
43
- t.datetime "updated_at", precision: nil, null: false
44
- t.integer "panda_pal_organization_id"
45
- t.index ["panda_pal_organization_id"], name: "index_panda_pal_sessions_on_panda_pal_organization_id"
46
- t.index ["session_secret"], name: "index_panda_pal_sessions_on_session_secret", unique: true
47
- end
48
-
49
- end
@@ -1,67 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The page you were looking for doesn't exist (404)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- body {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body>
58
- <!-- This file lives in public/404.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>The page you were looking for doesn't exist.</h1>
62
- <p>You may have mistyped the address or the page may have moved.</p>
63
- </div>
64
- <p>If you are the application owner check the logs for more information.</p>
65
- </div>
66
- </body>
67
- </html>
@@ -1,67 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>The change you wanted was rejected (422)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- body {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body>
58
- <!-- This file lives in public/422.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>The change you wanted was rejected.</h1>
62
- <p>Maybe you tried to change something you didn't have access to.</p>
63
- </div>
64
- <p>If you are the application owner check the logs for more information.</p>
65
- </div>
66
- </body>
67
- </html>
@@ -1,66 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>We're sorry, but something went wrong (500)</title>
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <style>
7
- body {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
14
-
15
- div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
20
-
21
- div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
33
-
34
- h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
39
-
40
- div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
54
- </style>
55
- </head>
56
-
57
- <body>
58
- <!-- This file lives in public/500.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>We're sorry, but something went wrong.</h1>
62
- </div>
63
- <p>If you are the application owner check the logs for more information.</p>
64
- </div>
65
- </body>
66
- </html>
File without changes
data/spec/rails_helper.rb DELETED
@@ -1,35 +0,0 @@
1
- ActiveRecord::Migration.maintain_test_schema!
2
-
3
- require "panda_pal/spec_helper"
4
-
5
- RSpec.configure do |config|
6
- config.include PandaPal::SpecHelper
7
-
8
- # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
9
- config.fixture_path = "#{::Rails.root}/spec/fixtures"
10
-
11
- # If you're not using ActiveRecord, or you'd prefer not to run each of your
12
- # examples within a transaction, remove the following line or assign false
13
- # instead of true.
14
- config.use_transactional_fixtures = true
15
-
16
- # RSpec Rails can automatically mix in different behaviours to your tests
17
- # based on their file location, for example enabling you to call `get` and
18
- # `post` in specs under `spec/controllers`.
19
- #
20
- # You can disable this behaviour by removing the line below, and instead
21
- # explicitly tag your specs with their type, e.g.:
22
- #
23
- # RSpec.describe UsersController, :type => :controller do
24
- # # ...
25
- # end
26
- #
27
- # The different available types are documented in the features, such as in
28
- # https://relishapp.com/rspec/rspec-rails/docs
29
- config.infer_spec_type_from_file_location!
30
-
31
- # Filter lines from Rails gems in backtraces.
32
- config.filter_rails_from_backtrace!
33
- # arbitrary gems may also be filtered via:
34
- # config.filter_gems_from_backtrace("gem name")
35
- end