bigdecimal 1.4.0.pre.20181121a → 1.4.0.pre.20181130a

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99a815d308c0d5b1b7322467c01377b875f93c77d4fa889bc111cc2cf3d65a5f
4
- data.tar.gz: 9d678c52b52993a8b095861bf042f7032058bd5cb382dc5825c5b1095d5ac11f
3
+ metadata.gz: 5feef7369a59fe24f0c6c235b860ae376fc818ce75017edd4e072b65f66fa0f6
4
+ data.tar.gz: bc46a83aeef02e6acc38827b1d62175fb3c16e7f4f2306f5b1ae529b1026af44
5
5
  SHA512:
6
- metadata.gz: 76c9776bec807971122e42d5f3a8e7e40c5105d0d49ba35349f6c6ba1b9fb2310e13d5f33ab1fe98b9d40424a5ffd55b6300c774fb29a0268b39b269cd204ba9
7
- data.tar.gz: 66a1ae81965bb1276b990c8dbd622fd7ee01f66590abdbb9c724c30dec0c4726573b92044d0cb97128c4262e579b3b0863489219ae63a6edc93db46bb1b327ee
6
+ metadata.gz: 395bcbed4906f0928b70861586d1e577caa1938ae599700a6f2b60011124e899cc6ac0dd50ea297c3f1a486fccca6a5c17835a72f1084fc4aa900ab2b5c00497
7
+ data.tar.gz: 888f8a07210e091fd51a8b5c005e99e739f1dbdc08067f7874244f24ee7524cc3824df9e083d0fd40159c09210cb307f0dbbcee974f2d0eb1376531635213ebd
data/bigdecimal.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  # coding: utf-8
2
2
 
3
- bigdecimal_version = '1.4.0.pre.20181121a'
3
+ bigdecimal_version = '1.4.0.pre.20181130a'
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "bigdecimal"
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.files = %w[
19
19
  bigdecimal.gemspec
20
20
  ext/bigdecimal/bigdecimal.c
21
+ ext/bigdecimal/bigdecimal.def
21
22
  ext/bigdecimal/bigdecimal.h
22
23
  ext/bigdecimal/depend
23
24
  ext/bigdecimal/extconf.rb
@@ -0,0 +1,3 @@
1
+ EXPORTS
2
+ rmpd_util_str_to_d
3
+ Init_bigdecimal
@@ -32,10 +32,25 @@ have_func("rb_rational_den", "ruby.h")
32
32
  have_func("rb_array_const_ptr", "ruby.h")
33
33
  have_func("rb_sym2str", "ruby.h")
34
34
 
35
+ if windows_platform?
36
+ library_base_name = "ruby-bigdecimal"
37
+ case RUBY_PLATFORM
38
+ when /cygwin|mingw/
39
+ import_library_name = "libruby-bigdecimal.a"
40
+ when /mswin/
41
+ import_library_name = "bigdecimal-$(arch).lib"
42
+ end
43
+ end
44
+
35
45
  checking_for(checking_message("Windows")) do
36
46
  if windows_platform?
37
- import_library_name = "libruby-bigdecimal.a"
38
- $DLDFLAGS << " $(srcdir)/bigdecimal.def -Wl,--out-implib=#{import_library_name}"
47
+ case RUBY_PLATFORM
48
+ when /cygwin|mingw/
49
+ $DLDFLAGS << " $(srcdir)/bigdecimal.def"
50
+ $DLDFLAGS << " -Wl,--out-implib=$(TARGET_SO_DIR)#{import_library_name}"
51
+ when /mswin/
52
+ $DLDFLAGS << " /DEF:$(srcdir)/bigdecimal.def"
53
+ end
39
54
  $cleanfiles << import_library_name
40
55
  true
41
56
  else
@@ -45,4 +60,10 @@ end
45
60
 
46
61
  create_makefile('bigdecimal') {|mf|
47
62
  mf << "\nall:\n\nextconf.h: $(srcdir)/#{gemspec_name}\n"
63
+ case RUBY_PLATFORM
64
+ when /mswin/
65
+ mf << "\nall:\n\tdir $(TARGET_SO_DIR)"
66
+ else
67
+ mf << "\nall:\n\tls $(TARGET_SO_DIR)"
68
+ end
48
69
  }
@@ -5,18 +5,31 @@ def windows_platform?
5
5
  /cygwin|mingw|mswin/ === RUBY_PLATFORM
6
6
  end
7
7
 
8
+ if windows_platform?
9
+ library_base_name = "ruby-bigdecimal"
10
+ case RUBY_PLATFORM
11
+ when /cygwin|mingw/
12
+ import_library_name = "libruby-bigdecimal.a"
13
+ when /mswin/
14
+ import_library_name = "bigdecimal-$(arch).lib"
15
+ end
16
+ end
17
+
8
18
  checking_for(checking_message("Windows")) do
9
19
  if windows_platform?
10
- base_dir = File.expand_path('../../../..', __FILE__)
11
- build_dir = File.join(base_dir, "tmp", RUBY_PLATFORM, "bigdecimal", RUBY_VERSION)
12
- library_base_name = "ruby-bigdecimal"
20
+ if defined?($extlist)
21
+ build_dir = "$(TARGET_SO_DIR)../"
22
+ else
23
+ base_dir = File.expand_path('../../../..', __FILE__)
24
+ build_dir = File.join(base_dir, "tmp", RUBY_PLATFORM, "bigdecimal", RUBY_VERSION)
25
+ end
13
26
  case RUBY_PLATFORM
14
27
  when /cygwin|mingw/
15
- $LDFLAGS << " -L#{build_dir}"
28
+ $LDFLAGS << " -L#{build_dir} -L.. -L .."
16
29
  $libs << " -l#{library_base_name}"
17
30
  when /mswin/
18
- $DLDFLAGS << " /libpath:#{build_dir}"
19
- $libs << " lib#{library_base_name}.lib"
31
+ $DLDFLAGS << " /libpath:#{build_dir} /libpath:.."
32
+ $libs << " #{import_library_name}"
20
33
  end
21
34
  true
22
35
  else
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.4.0.pre.20181121a
4
+ version: 1.4.0.pre.20181130a
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: 2018-11-22 00:00:00.000000000 Z
13
+ date: 2018-11-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake
@@ -94,6 +94,7 @@ extra_rdoc_files: []
94
94
  files:
95
95
  - bigdecimal.gemspec
96
96
  - ext/bigdecimal/bigdecimal.c
97
+ - ext/bigdecimal/bigdecimal.def
97
98
  - ext/bigdecimal/bigdecimal.h
98
99
  - ext/bigdecimal/depend
99
100
  - ext/bigdecimal/extconf.rb