homura-runtime 0.2.14 → 0.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f9563f8e7aae9b3faa946423aa2f7dc13c48767572c744546397ada20dd1015
4
- data.tar.gz: 946de6742c7518ced26da901ce064d894d52607e3139c8365914d21fe5a2b539
3
+ metadata.gz: 694836eb27a5ada6280795e386907320274633bcc5d1c6c06c923946d6f25d4a
4
+ data.tar.gz: bfdf7f444a17af66deff9ebe693c1251c1a8215b0dc48bde5fd050afc0c21c7b
5
5
  SHA512:
6
- metadata.gz: 185534dd8a467b7b04fe44456c856d84f0124bdd6d487f9a756676d71479228e081b4fdaa72d7635d1428d6cf2b0868db3b2103668b9f696ec9487f0f8c9b2a7
7
- data.tar.gz: 91fce4ded7da7402431a993225969618fa88f538d77a6e5791a4c5acc72391941a706f446ab59a74996528f7575b5a186a852b483e276bb5a312fdb009b78311
6
+ metadata.gz: a9137328c2e78d8fd8911cf704f3fd2431d193a5ef798aa5f54eb8d8d10a9d40647df0eafcd53d26903ad6fbca18ddb27fc2ad14df44514aa5d29e8541da1e1b
7
+ data.tar.gz: 1ae649dca3329e6ba13d2690a989842388702d0ee2b8788ca4bcd38fdbc69e141a0dd62f0f3cc73d4141973a7945170d572a674d30b6d2b75efa00e351642c08
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CloudflareWorkers
4
- VERSION = '0.2.14'
4
+ VERSION = '0.2.15'
5
5
  end
data/lib/opal_patches.rb CHANGED
@@ -456,10 +456,12 @@ module ::SecureRandom
456
456
  padding ? s : s.delete('=')
457
457
  end
458
458
 
459
- def self.random_number(n = 0)
460
- # Not used at class-init time; real implementations welcome.
461
- 0
462
- end
459
+ # NOTE: `SecureRandom.random_number` is provided by `Random::Formatter`
460
+ # (extended into `SecureRandom` by stdlib/securerandom.rb). Defining a
461
+ # `self.random_number` stub here used to shadow that real implementation
462
+ # and pin the result to `0`, which silently broke any caller that did
463
+ # the canonical `format('%06d', SecureRandom.random_number(1_000_000))`.
464
+ # Leave the formatter implementation alone; do NOT redefine here.
463
465
 
464
466
  # Returns a hex string of `n` random bytes, or nil when no entropy
465
467
  # source is available. Tries node:crypto.randomBytes first (works
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: homura-runtime
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuhiro Homma