panda_pal 5.9.1 → 5.9.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb8c3c39f3e1f5d4b3d2319fdcb3368157e0cfdc5c22562cbcc8969a059f12be
4
- data.tar.gz: fcb174edfc70f4f72caf44dfc0d3e5d86d6bdb5c06ffbfd36747322236c264ee
3
+ metadata.gz: c6f064942345eb93ab16ae60109dc8f9a0bd5f5af22cadc841ef56ceafad4a65
4
+ data.tar.gz: facea824b2a113bd22bc5a15c249372a8a5d37eec883cc77a39e7a976b48243f
5
5
  SHA512:
6
- metadata.gz: a3a2614cebb9f890c8965a7fbcdf0b1a4dd89189257b3980c276c9da0a38c747276a08f819de0dc6ebaee9df6c6a4066f5356529fedf1722ac51020b2fe863d3
7
- data.tar.gz: b0f2d3893f44b40592b3b7817fb763c6f230b63558d5230721beb1859a50efa122b673f206cf1775c42fb1edf3bd809a382044ccffafc2897e7e6d45e6f40af2
6
+ metadata.gz: 7bf3a0531b0c9826230334166d8fee5ea90b589b9ead5ebc22af2d03b4850384e87ec9b4da9932cedb63443b1ed60123207fd63f5b73544f20e29bd66fa3f30d
7
+ data.tar.gz: 6f0fc0e4a71c5868cbcbf3b91a9dcfd60d80984b3720038e8f1ad7e93ccc13310afdf5ff328e6a15e3f7c9968eb893f2c530cef95969cf19ae22f414b47427cf
@@ -328,7 +328,7 @@ module PandaPal
328
328
 
329
329
  Bearcat::Client.new(
330
330
  prefix: canvas_url,
331
- token: canvas_token,
331
+ token: canvas_api_token,
332
332
  )
333
333
  end
334
334
  end
@@ -17,6 +17,8 @@ end
17
17
  Rails.application.config.middleware.use Apartment::Elevators::Generic, lambda { |request|
18
18
  if match = request.path.match(/\/(?:orgs?|organizations?)\/(\d+)/)
19
19
  PandaPal::Organization.find_by(id: match[1]).try(:name)
20
+ elsif match = request.path.match(/\/(?:orgs?|organizations?|o)\/(\w+)/)
21
+ PandaPal::Organization.find_by(name: match[1]).try(:name)
20
22
  elsif request.path.start_with?('/rails/active_storage/blobs/')
21
23
  PandaPal::Organization.find_by(id: request.params['organization_id']).try(:name)
22
24
  end
@@ -33,7 +33,7 @@ module PandaPal
33
33
  prompt = prompt + " (#{default})" if default.present?
34
34
  puts prompt
35
35
  print "> "
36
- v = gets.chomp.downcase
36
+ v = STDIN.gets.chomp.downcase
37
37
  return default if v == ""
38
38
  v
39
39
  end
@@ -46,7 +46,7 @@ module PandaPal
46
46
  puts prompt
47
47
  print "> "
48
48
  i += 1
49
- v = gets.chomp.downcase
49
+ v = STDIN.gets.chomp.downcase
50
50
  return v if options.include?(v)
51
51
  return default if v == ""
52
52
  return nil if i > 3
@@ -1,3 +1,3 @@
1
1
  module PandaPal
2
- VERSION = "5.9.1"
2
+ VERSION = "5.9.4"
3
3
  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.9.1
4
+ version: 5.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure CustomDev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-16 00:00:00.000000000 Z
11
+ date: 2023-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails