bigdecimal 1.3.3 → 1.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58d7e0c80b71e36acf67381960d3bdf551aa713c
4
- data.tar.gz: 296291e66a2b2d04e5ac9bbb5f55fc72dda16fb4
3
+ metadata.gz: 809506d82cca1f6385d66ab03efa53a8fc63c56d
4
+ data.tar.gz: f7528b2353d5e44055c3d2ed0f22badf972176ae
5
5
  SHA512:
6
- metadata.gz: 70767732235c4c5594e75a2c6aeb44d5c37d4e9eaad3972744dcad4f1c236d30d872b610ee199243144d743c59a4a395532eee0f95024403f099e58338177084
7
- data.tar.gz: 3ccbceef117a07b0cac34d0f23598a1728e94277b9a765b99458ba7d1fe7ba36cb90cac98568ced6adc84c56c6152af46d7cdc325962a0513781504967e932f5
6
+ metadata.gz: af0068aa8ac383fe3da838fab35e1df659138f4d54e2793c452c44cbd938d55333d896b069110d6ebf9cf63b4cfae09c3cec8eff87c3b3669502dd7f2b0ad662
7
+ data.tar.gz: 01e793a0921a5b48e02a0ea05309718e46e4b5c68f33b9283c407adb45fd4a7eb4bee247fe8040e98145c9dc950c7a6441f8b6b2f5353833c5baa9b65d7180fd
@@ -1,6 +1,6 @@
1
1
  # coding: utf-8
2
2
 
3
- bigdecimal_version = '1.3.3'
3
+ bigdecimal_version = '1.3.4'
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "bigdecimal"
@@ -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
- rb_warning("BigDecimal#clone is deprecated.");
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", BigDecimal_dup, 0);
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);
@@ -1,12 +1,12 @@
1
1
  # frozen_string_literal: false
2
2
  require 'mkmf'
3
3
 
4
- case
5
- when File.file?(File.expand_path('../bigdecimal.gemspec', __FILE__))
6
- gemspec_path = File.expand_path('../bigdecimal.gemspec', __FILE__)
7
- when File.file?(File.expand_path('../../../bigdecimal.gemspec', __FILE__))
8
- gemspec_path = File.expand_path('../../../bigdecimal.gemspec', __FILE__)
9
- else
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.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 00:00:00.000000000 Z
13
+ date: 2017-12-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake