panda_pal 5.16.19 → 5.16.20

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2084614ff92319be90975d3e612f5985de36db36d45d6e6e0c7506a9ec892164
4
- data.tar.gz: de902294aa7269c141eebcdd576f028914111a620be4985bcc752ed774eceb2d
3
+ metadata.gz: ac02fef85d3184d63c9c8573a8695e52a424678747ab7a541a5f9483167ccc18
4
+ data.tar.gz: 54c1fbd8ad4d2f352f1d9b2843ef4c2705c63c8892942cedc8e5784840cb7820
5
5
  SHA512:
6
- metadata.gz: 357c528a5efbf54c96aaf2d8310097141249dbfbc74c1c0573e59ebb3f85f81b289cd05813583b96baee7158d6bdbaf2a8d690760b575d868e558649e2af7d96
7
- data.tar.gz: f2590c014e5108c4bfa2f2b703a1e42eff45908668c5aa517243c3d065ed7e3de78178f75ac8e7789af537774517c5353835d6b37fc5a82e7ef647402eaf9f42
6
+ metadata.gz: c64c54373faafee3164496661d8bed6ae5a68d2852296966b1ffef4d738c82f29c675694bcbf0f7bc5f7c22246c6cacedc676393a7bcfa7bb4fd998d0033bcd5
7
+ data.tar.gz: aeb94f2be05936dc753d66172426d028ae1b47417410c506e819b76b40c8adb8932fb0ec8dc9933497b676f414794cc285ba36408daad537ca18ef0c2febeb9a
@@ -191,8 +191,11 @@ module Apartment
191
191
  end
192
192
  end
193
193
 
194
- # Fix Apartment's lack of support for load_async
195
- ::ActiveRecord::FutureResult.prepend CorePatches::ActiveRecord::FutureResult
194
+ # Fix Apartment's lack of support for load_async (Rails 7.0+ only; earlier
195
+ # versions have no ActiveRecord::FutureResult / load_async to patch).
196
+ if defined?(::ActiveRecord::FutureResult)
197
+ ::ActiveRecord::FutureResult.prepend CorePatches::ActiveRecord::FutureResult
198
+ end
196
199
 
197
200
  # Hack ActiveRecord shards/connection_pooling to support our multi-DB approach
198
201
  ::ActiveRecord::Base.include CorePatches::ActiveRecord::Base
@@ -1,4 +1,4 @@
1
- class RenameSessionSessionKey < ActiveRecord::Migration[7.1]
1
+ class RenameSessionSessionKey < ActiveRecord::Migration[6.1]
2
2
  def change
3
3
  rename_column :panda_pal_sessions, :session_key, :session_secret
4
4
  end
@@ -1,3 +1,3 @@
1
1
  module PandaPal
2
- VERSION = '5.16.19'
2
+ VERSION = '5.16.20'
3
3
  end
data/panda_pal.gemspec CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25
25
  s.add_dependency 'ims-lti', '~> 1.2.4'
26
26
  s.add_dependency 'browser', '2.5.0'
27
27
  s.add_dependency 'attr_encrypted', '~> 4.0.0'
28
- s.add_dependency 'secure_headers', '~> 6.1'
28
+ s.add_dependency 'secure_headers', '>= 6.1', '< 8'
29
29
  s.add_dependency 'jwt'
30
30
  s.add_dependency 'httparty'
31
31
  end
@@ -53,7 +53,8 @@ RSpec.describe PandaPal::Organization, type: :model do
53
53
  expect(PandaPal::ApiCall.connection.exec_query("SELECT current_database()").pluck("current_database")[0]).to eq("panda_pal_test2")
54
54
  end
55
55
 
56
- context "load_async" do
56
+ # load_async is a Rails 7.0+ feature.
57
+ context "load_async", skip: (ActiveRecord::Relation.method_defined?(:load_async) ? false : "requires Rails 7.0+ load_async") do
57
58
  it "works across shards" do
58
59
  qs = []
59
60
  PandaPal::Organization.all.each do |org|
data/spec/spec_helper.rb CHANGED
@@ -66,10 +66,15 @@ RSpec.configure do |config|
66
66
  }
67
67
  end
68
68
 
69
- # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
70
- config.fixture_paths |= [
71
- "#{::Rails.root}/spec/fixtures"
72
- ]
69
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures.
70
+ # Rails 7.1+ uses the plural fixture_paths (array); earlier versions use the
71
+ # singular fixture_path (string).
72
+ fixtures_dir = "#{::Rails.root}/spec/fixtures"
73
+ if config.respond_to?(:fixture_paths=)
74
+ config.fixture_paths |= [fixtures_dir]
75
+ else
76
+ config.fixture_path = fixtures_dir
77
+ end
73
78
 
74
79
  # If you're not using ActiveRecord, or you'd prefer not to run each of your
75
80
  # examples within a transaction, remove the following line or assign false
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: 5.16.19
4
+ version: 5.16.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure CustomDev
@@ -83,16 +83,22 @@ dependencies:
83
83
  name: secure_headers
84
84
  requirement: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - "~>"
86
+ - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '6.1'
89
+ - - "<"
90
+ - !ruby/object:Gem::Version
91
+ version: '8'
89
92
  type: :runtime
90
93
  prerelease: false
91
94
  version_requirements: !ruby/object:Gem::Requirement
92
95
  requirements:
93
- - - "~>"
96
+ - - ">="
94
97
  - !ruby/object:Gem::Version
95
98
  version: '6.1'
99
+ - - "<"
100
+ - !ruby/object:Gem::Version
101
+ version: '8'
96
102
  - !ruby/object:Gem::Dependency
97
103
  name: jwt
98
104
  requirement: !ruby/object:Gem::Requirement