File tree Expand file tree Collapse file tree 3 files changed +15
-3
lines changed
bundler/vendor/securerandom/lib
rubygems/vendor/securerandom/lib Expand file tree Collapse file tree 3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 4141module Bundler ::SecureRandom
4242
4343 # The version
44- VERSION = "0.4.0 "
44+ VERSION = "0.4.1 "
4545
4646 class << self
4747 # Returns a random binary string containing +size+ bytes.
@@ -51,6 +51,12 @@ def bytes(n)
5151 return gen_random ( n )
5252 end
5353
54+ # Compatibility methods for Ruby 3.2, we can remove this after dropping to support Ruby 3.2
55+ def alphanumeric ( n = nil , chars : ALPHANUMERIC )
56+ n = 16 if n . nil?
57+ choose ( chars , n )
58+ end if RUBY_VERSION < '3.3'
59+
5460 private
5561
5662 # :stopdoc:
Original file line number Diff line number Diff line change 4141module Gem ::SecureRandom
4242
4343 # The version
44- VERSION = "0.4.0 "
44+ VERSION = "0.4.1 "
4545
4646 class << self
4747 # Returns a random binary string containing +size+ bytes.
@@ -51,6 +51,12 @@ def bytes(n)
5151 return gen_random ( n )
5252 end
5353
54+ # Compatibility methods for Ruby 3.2, we can remove this after dropping to support Ruby 3.2
55+ def alphanumeric ( n = nil , chars : ALPHANUMERIC )
56+ n = 16 if n . nil?
57+ choose ( chars , n )
58+ end if RUBY_VERSION < '3.3'
59+
5460 private
5561
5662 # :stopdoc:
Original file line number Diff line number Diff line change 1010gem "optparse" , "0.6.0"
1111gem "pub_grub" , github : "jhawthorn/pub_grub"
1212gem "resolv" , "0.6.0"
13- gem "securerandom" , "0.4.0 "
13+ gem "securerandom" , "0.4.1 "
1414gem "timeout" , "0.4.3"
1515gem "thor" , "1.3.2"
1616gem "tsort" , "0.2.0"
You can’t perform that action at this time.
0 commit comments