bigdecimal 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bigdecimal.gemspec +1 -1
- data/ext/bigdecimal/bigdecimal.c +3 -11
- data/ext/bigdecimal/extconf.rb +9 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 809506d82cca1f6385d66ab03efa53a8fc63c56d
|
4
|
+
data.tar.gz: f7528b2353d5e44055c3d2ed0f22badf972176ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af0068aa8ac383fe3da838fab35e1df659138f4d54e2793c452c44cbd938d55333d896b069110d6ebf9cf63b4cfae09c3cec8eff87c3b3669502dd7f2b0ad662
|
7
|
+
data.tar.gz: 01e793a0921a5b48e02a0ea05309718e46e4b5c68f33b9283c407adb45fd4a7eb4bee247fe8040e98145c9dc950c7a6441f8b6b2f5353833c5baa9b65d7180fd
|
data/bigdecimal.gemspec
CHANGED
data/ext/bigdecimal/bigdecimal.c
CHANGED
@@ -2602,7 +2602,7 @@ static Real *BigDecimal_new(int argc, VALUE *argv);
|
|
2602
2602
|
static VALUE
|
2603
2603
|
BigDecimal_s_new(int argc, VALUE *argv, VALUE self)
|
2604
2604
|
{
|
2605
|
-
rb_warning("BigDecimal.new is deprecated");
|
2605
|
+
rb_warning("BigDecimal.new is deprecated; use Kernel.BigDecimal method instead.");
|
2606
2606
|
return rb_call_super(argc, argv);
|
2607
2607
|
}
|
2608
2608
|
|
@@ -2645,15 +2645,7 @@ BigDecimal_initialize_copy(VALUE self, VALUE other)
|
|
2645
2645
|
static VALUE
|
2646
2646
|
BigDecimal_clone(VALUE self)
|
2647
2647
|
{
|
2648
|
-
|
2649
|
-
return rb_call_super(0, NULL);
|
2650
|
-
}
|
2651
|
-
|
2652
|
-
static VALUE
|
2653
|
-
BigDecimal_dup(VALUE self)
|
2654
|
-
{
|
2655
|
-
rb_warning("BigDecimal#dup is deprecated.");
|
2656
|
-
return rb_call_super(0, NULL);
|
2648
|
+
return self;
|
2657
2649
|
}
|
2658
2650
|
|
2659
2651
|
static Real *
|
@@ -3449,7 +3441,7 @@ Init_bigdecimal(void)
|
|
3449
3441
|
rb_define_method(rb_cBigDecimal, "remainder", BigDecimal_remainder, 1);
|
3450
3442
|
rb_define_method(rb_cBigDecimal, "divmod", BigDecimal_divmod, 1);
|
3451
3443
|
rb_define_method(rb_cBigDecimal, "clone", BigDecimal_clone, 0);
|
3452
|
-
rb_define_method(rb_cBigDecimal, "dup",
|
3444
|
+
rb_define_method(rb_cBigDecimal, "dup", BigDecimal_clone, 0);
|
3453
3445
|
rb_define_method(rb_cBigDecimal, "to_f", BigDecimal_to_f, 0);
|
3454
3446
|
rb_define_method(rb_cBigDecimal, "abs", BigDecimal_abs, 0);
|
3455
3447
|
rb_define_method(rb_cBigDecimal, "sqrt", BigDecimal_sqrt, 1);
|
data/ext/bigdecimal/extconf.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
# frozen_string_literal: false
|
2
2
|
require 'mkmf'
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
4
|
+
gemspec_name = gemspec_path = nil
|
5
|
+
unless ['', '../../'].any? {|dir|
|
6
|
+
gemspec_name = "#{dir}bigdecimal.gemspec"
|
7
|
+
gemspec_path = File.expand_path("../#{gemspec_name}", __FILE__)
|
8
|
+
File.file?(gemspec_path)
|
9
|
+
}
|
10
10
|
$stderr.puts "Unable to find bigdecimal.gemspec"
|
11
11
|
abort
|
12
12
|
end
|
@@ -30,4 +30,6 @@ have_func("rb_rational_den", "ruby.h")
|
|
30
30
|
have_func("rb_array_const_ptr", "ruby.h")
|
31
31
|
have_func("rb_sym2str", "ruby.h")
|
32
32
|
|
33
|
-
create_makefile('bigdecimal')
|
33
|
+
create_makefile('bigdecimal') {|mf|
|
34
|
+
mf << "\nall:\n\nextconf.h: $(srcdir)/#{gemspec_name}\n"
|
35
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bigdecimal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenta Murata
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-12-
|
13
|
+
date: 2017-12-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|