panda_pal 5.14.0.beta2 → 5.14.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a169e8ab762d1277b843dcd3258f04f4c8d790c8451a3b71944972445a3131c
4
- data.tar.gz: 6e8c814fbab86bbefb78ed929deb82c55cc95c535b9219774779cb5741e57264
3
+ metadata.gz: 2d4a90a987ce86beeffae59c66c350d8c1c3f4e4d0f18c63379a9f7e7014bc26
4
+ data.tar.gz: ea34c39f969a62ba8ce313fb316b6ae54dc6db3c6027dd683ad67191708484c6
5
5
  SHA512:
6
- metadata.gz: 35640ce2bebedc8ee1fdcd8f280ae0d8c789e70a5173be1b750b829606232a620b2db920277fa13b6215c33d52561e337e1fc41b68df474578b160f2d0e7b991
7
- data.tar.gz: 12ec28ef838177337e4d7f10bdfda28a77d90db8d721d5aeaf2d95863fa48e288882400d4b86d0b8b15e6440cd055bcf982aa6b94569ad9284d32f9e276ec342
6
+ metadata.gz: 61f3853d04463655267c9107c07f819858daf4f21f06724a2e4d1a84623c74be983f9f69040f9cd7dc9231efef51f3b806e2390028fe7fcab7feb2ae0d4ef469
7
+ data.tar.gz: d68ed40aac052cecf6d972f201c949fc8766e365eecfb5ea7c0dbb835d477ee81ba26f0756e048250edd36ef029b83203a2fab6e57738dee9ff03b3aa23520bc
data/README.md CHANGED
@@ -465,7 +465,7 @@ OR `platform: 'bridgeapp.com'`
465
465
  ## Development:
466
466
  ### Running Specs:
467
467
  Initialize the Specs DB:
468
- `cd spec/dummy; bundle exec rake db:drop; bundle exec rake db:create; bundle exec rake db:schema:load`
468
+ `cd spec/dummy; bundle exec rails db:drop; bundle exec rails db:create; RAILS_ENV=test rails db:migrate`
469
469
  Then `bundle exec rspec`
470
470
 
471
471
  ## Safari Support
@@ -233,10 +233,10 @@ module PandaPal::Helpers
233
233
  end
234
234
 
235
235
  def self.extract_panda_token(request, params = request.params)
236
+ headers = request.respond_to?(:headers) ? request.headers : request.env
236
237
  token = headers['HTTP_X_PANDA_TOKEN'] || headers['X-Panda-Token']
237
238
 
238
239
  token ||= begin
239
- headers = request.respond_to?(:headers) ? request.headers : request.env
240
240
  if (auth_header = headers['HTTP_AUTHORIZATION'] || headers['Authorization']).present?
241
241
  match = auth_header.match(/Bearer panda:(.+)/)
242
242
  match ||= auth_header.match(/token=(.+)/) # Legacy Support
@@ -1,3 +1,3 @@
1
1
  module PandaPal
2
- VERSION = "5.14.0.beta2"
2
+ VERSION = "5.14.0.beta4"
3
3
  end
@@ -2,17 +2,48 @@
2
2
  # of editing this file, please use the migrations feature of Active Record to
3
3
  # incrementally modify your database, and then regenerate this schema definition.
4
4
  #
5
- # Note that this schema.rb definition is the authoritative source for your
6
- # database schema. If you need to create the application database on another
7
- # system, you should be using db:schema:load, not running all the migrations
8
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
- # you'll amass, the slower it'll run and the greater likelihood for issues).
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
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 2022_07_21_095653) do
14
-
13
+ ActiveRecord::Schema[7.1].define(version: 2025_04_01_214421) do
15
14
  # These are extensions that must be enabled in order to support this database
16
15
  enable_extension "plpgsql"
17
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
+
18
49
  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: 5.14.0.beta2
4
+ version: 5.14.0.beta4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure CustomDev