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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb8c3c39f3e1f5d4b3d2319fdcb3368157e0cfdc5c22562cbcc8969a059f12be
4
- data.tar.gz: fcb174edfc70f4f72caf44dfc0d3e5d86d6bdb5c06ffbfd36747322236c264ee
3
+ metadata.gz: 02f30932987224ee4dbc81ee2d7888e8e01c4bb3f713a4686d053431d90f155d
4
+ data.tar.gz: 79fcb6fea081f0885b353bbda622861d6d427a385326e372d91a6b6b9024eae8
5
5
  SHA512:
6
- metadata.gz: a3a2614cebb9f890c8965a7fbcdf0b1a4dd89189257b3980c276c9da0a38c747276a08f819de0dc6ebaee9df6c6a4066f5356529fedf1722ac51020b2fe863d3
7
- data.tar.gz: b0f2d3893f44b40592b3b7817fb763c6f230b63558d5230721beb1859a50efa122b673f206cf1775c42fb1edf3bd809a382044ccffafc2897e7e6d45e6f40af2
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
@@ -1,3 +1,3 @@
1
1
  module PandaPal
2
- VERSION = "5.9.1"
2
+ VERSION = "5.9.3"
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.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-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