panda_pal 5.6.11 → 5.7.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/models/panda_pal/api_call.rb +1 -1
- data/app/models/panda_pal/organization.rb +73 -20
- data/app/models/panda_pal/organization_concerns/settings_validation.rb +6 -1
- data/app/models/panda_pal/organization_concerns/task_scheduling.rb +1 -1
- data/app/models/panda_pal/panda_pal_record.rb +5 -0
- data/app/models/panda_pal/platform/canvas.rb +1 -3
- data/app/models/panda_pal/platform.rb +5 -3
- data/app/models/panda_pal/session.rb +1 -1
- data/lib/panda_pal/engine.rb +83 -19
- data/lib/panda_pal/version.rb +1 -1
- data/spec/dummy/log/development.log +162 -0
- data/spec/dummy/log/test.log +39540 -0
- data/spec/models/panda_pal/organization_spec.rb +16 -0
- metadata +45 -42
@@ -30,5 +30,21 @@ module PandaPal
|
|
30
30
|
org2 = build :panda_pal_organization, salesforce_id: 'salesforce'
|
31
31
|
expect(org2.valid?).to be_falsey
|
32
32
|
end
|
33
|
+
|
34
|
+
it 'stores setting as an indifferent Hash' do
|
35
|
+
org = create :panda_pal_organization
|
36
|
+
org.update!(settings: { a: 1 })
|
37
|
+
|
38
|
+
expect(Organization.last.settings).to be_a (ActiveSupport::HashWithIndifferentAccess)
|
39
|
+
|
40
|
+
org.settings = {}
|
41
|
+
expect(org.settings).to be_a (ActiveSupport::HashWithIndifferentAccess)
|
42
|
+
end
|
43
|
+
|
44
|
+
it 'stores settings' do
|
45
|
+
org = create :panda_pal_organization
|
46
|
+
org.update!(settings: { a: 1 })
|
47
|
+
expect(Organization.last.settings[:a]).to eql(1)
|
48
|
+
end
|
33
49
|
end
|
34
50
|
end
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: panda_pal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.7.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Instructure ProServe
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2023-04-19 00:00:00.000000000 Z
|
@@ -282,7 +282,7 @@ dependencies:
|
|
282
282
|
- - '='
|
283
283
|
- !ruby/object:Gem::Version
|
284
284
|
version: 2.7.1
|
285
|
-
description:
|
285
|
+
description:
|
286
286
|
email:
|
287
287
|
- pseng@instructure.com
|
288
288
|
executables: []
|
@@ -313,6 +313,7 @@ files:
|
|
313
313
|
- app/models/panda_pal/organization.rb
|
314
314
|
- app/models/panda_pal/organization_concerns/settings_validation.rb
|
315
315
|
- app/models/panda_pal/organization_concerns/task_scheduling.rb
|
316
|
+
- app/models/panda_pal/panda_pal_record.rb
|
316
317
|
- app/models/panda_pal/platform.rb
|
317
318
|
- app/models/panda_pal/platform/canvas.rb
|
318
319
|
- app/models/panda_pal/session.rb
|
@@ -373,6 +374,7 @@ files:
|
|
373
374
|
- spec/dummy/config/routes.rb
|
374
375
|
- spec/dummy/config/secrets.yml
|
375
376
|
- spec/dummy/db/schema.rb
|
377
|
+
- spec/dummy/log/development.log
|
376
378
|
- spec/dummy/log/test.log
|
377
379
|
- spec/dummy/public/404.html
|
378
380
|
- spec/dummy/public/422.html
|
@@ -391,7 +393,7 @@ homepage: http://instructure.com
|
|
391
393
|
licenses:
|
392
394
|
- MIT
|
393
395
|
metadata: {}
|
394
|
-
post_install_message:
|
396
|
+
post_install_message:
|
395
397
|
rdoc_options: []
|
396
398
|
require_paths:
|
397
399
|
- lib
|
@@ -402,57 +404,58 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
402
404
|
version: '0'
|
403
405
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
404
406
|
requirements:
|
405
|
-
- - "
|
407
|
+
- - ">"
|
406
408
|
- !ruby/object:Gem::Version
|
407
|
-
version:
|
409
|
+
version: 1.3.1
|
408
410
|
requirements: []
|
409
|
-
rubygems_version: 3.
|
410
|
-
signing_key:
|
411
|
+
rubygems_version: 3.1.6
|
412
|
+
signing_key:
|
411
413
|
specification_version: 4
|
412
414
|
summary: LTI mountable engine
|
413
415
|
test_files:
|
416
|
+
- spec/rails_helper.rb
|
417
|
+
- spec/models/panda_pal/api_call_spec.rb
|
418
|
+
- spec/models/panda_pal/organization_spec.rb
|
419
|
+
- spec/models/panda_pal/session_spec.rb
|
420
|
+
- spec/models/panda_pal/organization/settings_validation_spec.rb
|
421
|
+
- spec/models/panda_pal/organization/task_scheduling_spec.rb
|
414
422
|
- spec/controllers/panda_pal/api_call_controller_spec.rb
|
415
|
-
- spec/
|
423
|
+
- spec/spec_helper.rb
|
424
|
+
- spec/dummy/db/schema.rb
|
425
|
+
- spec/dummy/public/422.html
|
426
|
+
- spec/dummy/public/favicon.ico
|
427
|
+
- spec/dummy/public/404.html
|
428
|
+
- spec/dummy/public/500.html
|
416
429
|
- spec/dummy/Rakefile
|
417
|
-
- spec/dummy/app/
|
418
|
-
- spec/dummy/app/assets/stylesheets/application.css
|
430
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
419
431
|
- spec/dummy/app/controllers/application_controller.rb
|
420
432
|
- spec/dummy/app/helpers/application_helper.rb
|
421
|
-
- spec/dummy/app/
|
422
|
-
- spec/dummy/
|
423
|
-
- spec/dummy/
|
424
|
-
- spec/dummy/bin/rake
|
425
|
-
- spec/dummy/bin/setup
|
433
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
434
|
+
- spec/dummy/app/assets/javascripts/application.js
|
435
|
+
- spec/dummy/config/secrets.yml
|
426
436
|
- spec/dummy/config/application.rb
|
427
|
-
- spec/dummy/config/boot.rb
|
428
|
-
- spec/dummy/config/database.yml
|
429
|
-
- spec/dummy/config/environment.rb
|
430
|
-
- spec/dummy/config/environments/development.rb
|
431
|
-
- spec/dummy/config/environments/production.rb
|
432
|
-
- spec/dummy/config/environments/test.rb
|
433
|
-
- spec/dummy/config/initializers/backtrace_silencers.rb
|
434
|
-
- spec/dummy/config/initializers/cookies_serializer.rb
|
435
|
-
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
436
|
-
- spec/dummy/config/initializers/inflections.rb
|
437
|
-
- spec/dummy/config/initializers/mime_types.rb
|
438
437
|
- spec/dummy/config/initializers/session_store.rb
|
439
438
|
- spec/dummy/config/initializers/wrap_parameters.rb
|
440
|
-
- spec/dummy/config/
|
439
|
+
- spec/dummy/config/initializers/inflections.rb
|
440
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
441
|
+
- spec/dummy/config/initializers/mime_types.rb
|
442
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
443
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
444
|
+
- spec/dummy/config/environments/development.rb
|
445
|
+
- spec/dummy/config/environments/test.rb
|
446
|
+
- spec/dummy/config/environments/production.rb
|
447
|
+
- spec/dummy/config/database.yml
|
448
|
+
- spec/dummy/config/boot.rb
|
441
449
|
- spec/dummy/config/routes.rb
|
442
|
-
- spec/dummy/config/
|
443
|
-
- spec/dummy/config.
|
444
|
-
- spec/dummy/db/schema.rb
|
450
|
+
- spec/dummy/config/environment.rb
|
451
|
+
- spec/dummy/config/locales/en.yml
|
445
452
|
- spec/dummy/log/test.log
|
446
|
-
- spec/dummy/
|
447
|
-
- spec/dummy/
|
448
|
-
- spec/dummy/
|
449
|
-
- spec/dummy/
|
453
|
+
- spec/dummy/log/development.log
|
454
|
+
- spec/dummy/README.rdoc
|
455
|
+
- spec/dummy/config.ru
|
456
|
+
- spec/dummy/bin/bundle
|
457
|
+
- spec/dummy/bin/rake
|
458
|
+
- spec/dummy/bin/setup
|
459
|
+
- spec/dummy/bin/rails
|
450
460
|
- spec/factories/panda_pal_organizations.rb
|
451
461
|
- spec/factories/panda_pal_sessions.rb
|
452
|
-
- spec/models/panda_pal/api_call_spec.rb
|
453
|
-
- spec/models/panda_pal/organization/settings_validation_spec.rb
|
454
|
-
- spec/models/panda_pal/organization/task_scheduling_spec.rb
|
455
|
-
- spec/models/panda_pal/organization_spec.rb
|
456
|
-
- spec/models/panda_pal/session_spec.rb
|
457
|
-
- spec/rails_helper.rb
|
458
|
-
- spec/spec_helper.rb
|