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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6f064942345eb93ab16ae60109dc8f9a0bd5f5af22cadc841ef56ceafad4a65
|
4
|
+
data.tar.gz: facea824b2a113bd22bc5a15c249372a8a5d37eec883cc77a39e7a976b48243f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bf3a0531b0c9826230334166d8fee5ea90b589b9ead5ebc22af2d03b4850384e87ec9b4da9932cedb63443b1ed60123207fd63f5b73544f20e29bd66fa3f30d
|
7
|
+
data.tar.gz: 6f0fc0e4a71c5868cbcbf3b91a9dcfd60d80984b3720038e8f1ad7e93ccc13310afdf5ff328e6a15e3f7c9968eb893f2c530cef95969cf19ae22f414b47427cf
|
@@ -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
|
data/lib/panda_pal/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2023-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|