origen 0.61.3 → 0.61.4
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 +4 -4
- data/config/version.rb +1 -1
- data/lib/origen.rb +6 -4
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: de55af21a90c04613a1ff7832f675da5c9f2c667b7c4bafc7c0a7af9df206bf5
|
|
4
|
+
data.tar.gz: b84a97c22be2ccaae7df92afa0695158271394ec56f122b1ec5e4b820c4f4655
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 838cdb21f09e536bea161809af89d0b3b7b4a49fe875a952f2125fb9ee0f9dfea5c3c94dfe421a0146d17b8e1fbbb6e0b414d6a54d3aade8fd5362d15454eb0c
|
|
7
|
+
data.tar.gz: 358abe430463757978b3d2f47b3783d714815ccfb67deac10adc7f3fe7e00a535c46b1c0b6060407b89af32ada4a009544dcacf58a0467feaf393852cf898126
|
data/config/version.rb
CHANGED
data/lib/origen.rb
CHANGED
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
# our original internal version (RGen)
|
|
3
3
|
unless defined? RGen::ORIGENTRANSITION
|
|
4
4
|
# ActiveSupport 4.2 wraps to_json via alias_method_chain, which causes infinite
|
|
5
|
-
# recursion on Ruby
|
|
6
|
-
#
|
|
7
|
-
#
|
|
8
|
-
|
|
5
|
+
# recursion on Ruby 3.x and 4.x (to_json_without_active_support_encoder ends up
|
|
6
|
+
# calling back into to_json_with_active_support_encoder). The trigger is a Ruby 3.0+
|
|
7
|
+
# method-resolution change, NOT the json gem version (json 2.x ships on 2.6 too, yet
|
|
8
|
+
# 2.6 does not recurse). So the shim must apply to all of Ruby 3 and 4, not just 4.
|
|
9
|
+
# Intercept the alias for the :to_json target before ActiveSupport's json core_ext loads.
|
|
10
|
+
if RUBY_VERSION >= '3'
|
|
9
11
|
require 'json'
|
|
10
12
|
require 'active_support/core_ext/module/aliasing'
|
|
11
13
|
|