panda_pal 5.6.10 → 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 +2 -0
- 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/panda_pal.gemspec +1 -1
- data/spec/dummy/log/test.log +19940 -0
- data/spec/models/panda_pal/organization_spec.rb +16 -0
- metadata +7 -6
@@ -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,14 +1,14 @@
|
|
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
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
75
|
+
version: 4.0.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
82
|
+
version: 4.0.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: secure_headers
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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
|
@@ -403,9 +404,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
403
404
|
version: '0'
|
404
405
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
405
406
|
requirements:
|
406
|
-
- - "
|
407
|
+
- - ">"
|
407
408
|
- !ruby/object:Gem::Version
|
408
|
-
version:
|
409
|
+
version: 1.3.1
|
409
410
|
requirements: []
|
410
411
|
rubygems_version: 3.1.6
|
411
412
|
signing_key:
|