panda_pal 5.9.1 → 5.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/initializers/apartment.rb +2 -0
- data/lib/panda_pal/helpers/console_helpers.rb +2 -2
- data/lib/panda_pal/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02f30932987224ee4dbc81ee2d7888e8e01c4bb3f713a4686d053431d90f155d
|
4
|
+
data.tar.gz: 79fcb6fea081f0885b353bbda622861d6d427a385326e372d91a6b6b9024eae8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1c3097e5e4307bf9128d32b03a11859cf45a6bce285805c9b6c7de267565650851b7ab7b17061c9a30f39b4ed381a0d7d2eea2622d93decc879ef1efcaee341
|
7
|
+
data.tar.gz: cba44e33b10770af13d91ee778e7e299c4871ce9d6ed299e4e9c2135be9cc99de0428ef88128472c065905147cc50cee0730a8420192d164f723d40b062ecf6c
|
@@ -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.3
|
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
|