bearcat 1.5.13 → 1.5.15

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: f2a7b22542969559af4be8d31fb93a89a71f3276033556837fb1a260db339045
4
- data.tar.gz: cb509029dafd72f8dac67f8824326fc42fc788f4eb7177ac4fab5ff9ba5e3292
3
+ metadata.gz: 50e784a85d316e9f8179ad461f069eaa8b436871f261608c72b0056a21fcb027
4
+ data.tar.gz: 39ed2b005e162188f2a37777152f8ed1369165fc4b060a719d7cac336d82b4b9
5
5
  SHA512:
6
- metadata.gz: d3936c82995990b417cec404e05cb4033e2693921a0ff61616f526cd23010aaf520c0ff2a3ab5a7bea96e620bf29aecdcdcb563854898961efd51f4afcd5de99
7
- data.tar.gz: f29c2b969ae44a7cb406d6b01b18ddc68bca5047ceba4502e56a09e2f60466e899180854501b61ff969ea2f74918f4cab5aaa50aa3a8980ed4600f2c2f8479a8
6
+ metadata.gz: 417ac58a63930dbe2fac92f3b639ba9aed765c6d208da98872b03d4455d892f05dde0c91be37e0bad32085119dc43363869f60df0b96748924e6b9c6ab6e4855
7
+ data.tar.gz: 422c748f8fa04f8ecabb139e19e0a4793c848b3ab0d4de65552725cb2235f81c2d991711494d8d0e24cbe3f617e86ab796bad2e982d323e7d61a9504733f4f2c
@@ -92,6 +92,8 @@ module Bearcat
92
92
  val = val.canvas_id if val.respond_to?(:canvas_id)
93
93
  val = val.id if val.respond_to?(:id)
94
94
  val = val['id'].presence || val[:id].presence || val if val.is_a?(Hash)
95
+ val = val.to_s
96
+ val = URI.encode_uri_component(val)
95
97
  val
96
98
  end
97
99
  end
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '1.5.13' unless defined?(Bearcat::VERSION)
2
+ VERSION = '1.5.15' unless defined?(Bearcat::VERSION)
3
3
  end
data/lib/bearcat.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  require 'bearcat/version'
2
2
  require 'bearcat/client'
3
- require 'bearcat/redis_connection'
4
3
 
5
4
  module Bearcat
6
5
  class << self
@@ -41,6 +40,7 @@ module Bearcat
41
40
  end
42
41
 
43
42
  def redis_pool
43
+ require 'bearcat/redis_connection'
44
44
  @redis_pool ||= RedisConnection.create(env_prefix: "BEARCAT")
45
45
  end
46
46
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bearcat
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.13
4
+ version: 1.5.15
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-30 00:00:00.000000000 Z
11
+ date: 2024-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake