mirror of
https://git.freebsd.org/ports.git
synced 2025-07-07 04:19:17 -04:00
BigDecimal provides an arbitrary-precision decimal floating-point number class. WWW: https://github.com/ruby/bigdecimal
11 lines
445 B
Ruby
11 lines
445 B
Ruby
--- ext/bigdecimal/extconf.rb.orig 2020-08-21 18:03:52 UTC
|
|
+++ ext/bigdecimal/extconf.rb
|
|
@@ -6,7 +6,7 @@ def check_bigdecimal_version(gemspec_path)
|
|
|
|
bigdecimal_version =
|
|
IO.readlines(gemspec_path)
|
|
- .grep(/\Abigdecimal_version\s+=\s+/)[0][/\'([^\']+)\'/, 1]
|
|
+ .grep(/\s+s.version\s+=\s+/)[0][/\"([^\']+)\"/, 1]
|
|
|
|
version_components = bigdecimal_version.split('.')
|
|
bigdecimal_version = version_components[0, 3].join('.')
|