bigdecimal 1.2.6 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/bigdecimal.c +24 -0
- data/bigdecimal.gemspec +1 -1
- data/extconf.rb +4 -0
- metadata +10 -12
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5c6add6da22b46504455a11b1c80ee545605a98a
|
4
|
+
data.tar.gz: 65e574ee88d241c198ea1467d4093e2ca5a21983
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5a1d3f5c772c597c5940beaf4ab781eb656038b6ac38173c956b1f45bc83a0786e5e44a5630b52b292505f58b887d298b8b96b4928726302151b02c66920296e
|
7
|
+
data.tar.gz: 267b4cc7de1fcb5f75c761a599c56b26c4219468a1a04531f2a7aee88bd9b88cdff35d4a1a3695487ae2b9b6e1520f523c5452ff4a635537ec52b931ca9b2c5a
|
data/bigdecimal.c
CHANGED
@@ -109,6 +109,30 @@ static ID id_eq;
|
|
109
109
|
# define RB_OBJ_STRING(obj) StringValueCStr(obj)
|
110
110
|
#endif
|
111
111
|
|
112
|
+
#ifndef HAVE_RB_RATIONAL_NUM
|
113
|
+
static inline VALUE
|
114
|
+
rb_rational_num(VALUE rat)
|
115
|
+
{
|
116
|
+
#ifdef HAVE_TYPE_STRUCT_RRATIONAL
|
117
|
+
return RRATIONAL(rat)->num;
|
118
|
+
#else
|
119
|
+
return rb_funcall(rat, rb_intern("numerator"));
|
120
|
+
#endif
|
121
|
+
}
|
122
|
+
#endif
|
123
|
+
|
124
|
+
#ifndef HAVE_RB_RATIONAL_DEN
|
125
|
+
static inline VALUE
|
126
|
+
rb_rational_den(VALUE rat)
|
127
|
+
{
|
128
|
+
#ifdef HAVE_TYPE_STRUCT_RRATIONAL
|
129
|
+
return RRATIONAL(rat)->den;
|
130
|
+
#else
|
131
|
+
return rb_funcall(rat, rb_intern("denominator"));
|
132
|
+
#endif
|
133
|
+
}
|
134
|
+
#endif
|
135
|
+
|
112
136
|
/*
|
113
137
|
* ================== Ruby Interface part ==========================
|
114
138
|
*/
|
data/bigdecimal.gemspec
CHANGED
data/extconf.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bigdecimal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
5
|
-
prerelease:
|
4
|
+
version: 1.2.7
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Kenta Murata
|
@@ -11,7 +10,7 @@ authors:
|
|
11
10
|
autorequire:
|
12
11
|
bindir: bin
|
13
12
|
cert_chain: []
|
14
|
-
date: 2015-01-
|
13
|
+
date: 2015-01-29 00:00:00.000000000 Z
|
15
14
|
dependencies: []
|
16
15
|
description: This library provides arbitrary-precision decimal floating-point number
|
17
16
|
class.
|
@@ -21,10 +20,10 @@ extensions:
|
|
21
20
|
- extconf.rb
|
22
21
|
extra_rdoc_files: []
|
23
22
|
files:
|
24
|
-
-
|
23
|
+
- README
|
25
24
|
- bigdecimal.c
|
25
|
+
- bigdecimal.gemspec
|
26
26
|
- bigdecimal.h
|
27
|
-
- README
|
28
27
|
- depend
|
29
28
|
- extconf.rb
|
30
29
|
- lib/bigdecimal/jacobian.rb
|
@@ -37,26 +36,25 @@ files:
|
|
37
36
|
- sample/pi.rb
|
38
37
|
homepage: http://www.ruby-lang.org
|
39
38
|
licenses: []
|
39
|
+
metadata: {}
|
40
40
|
post_install_message:
|
41
41
|
rdoc_options: []
|
42
42
|
require_paths:
|
43
|
-
- .
|
43
|
+
- "."
|
44
44
|
required_ruby_version: !ruby/object:Gem::Requirement
|
45
|
-
none: false
|
46
45
|
requirements:
|
47
|
-
- -
|
46
|
+
- - ">="
|
48
47
|
- !ruby/object:Gem::Version
|
49
48
|
version: '0'
|
50
49
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
51
|
-
none: false
|
52
50
|
requirements:
|
53
|
-
- -
|
51
|
+
- - ">="
|
54
52
|
- !ruby/object:Gem::Version
|
55
53
|
version: '0'
|
56
54
|
requirements: []
|
57
55
|
rubyforge_project:
|
58
|
-
rubygems_version:
|
56
|
+
rubygems_version: 2.2.2
|
59
57
|
signing_key:
|
60
|
-
specification_version:
|
58
|
+
specification_version: 4
|
61
59
|
summary: Arbitrary-precision decimal floating-point number library.
|
62
60
|
test_files: []
|