decimal 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +2 -5
- data/TODO +4 -3
- data/decimal.c +2 -1
- data/decimal.gemspec +10 -7
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 185bf749e80766d69e2d39797f59b92ffb861bf2
|
4
|
+
data.tar.gz: 164920bd3e42a04416ecfd8de3f4dd4da8fa4b46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05482d0f108ca11411f3bf08743253403081ce561c89c1282e54bc8284422853495e58df25072d6ed1317e5e47ad8f142e6ef1244f14645f6cc0db98c9af44ce
|
7
|
+
data.tar.gz: e2d9b40705dab6daa19e8604b0feae2d1410882a857d2b7db0f21852f5de0acd93b14c2eb59c2f7388e215d4d34282833bcd660f4578b03ec091caf6da119dea
|
data/README.rdoc
CHANGED
@@ -6,11 +6,8 @@ precise, stable and easy-to-use solution.
|
|
6
6
|
|
7
7
|
== Webpages
|
8
8
|
|
9
|
-
* {Home}[
|
10
|
-
* {
|
11
|
-
* {Latest API Documents}[http://decimal.rubyforge.org/rdoc/]
|
12
|
-
* {Project Page at RubyForge}[http://rubyforge.org/projects/decimal/]
|
13
|
-
* {Mailing Lists}[http://rubyforge.org/mail/?group_id=1994]
|
9
|
+
* {Home}[https://github.com/tadd/decimal]
|
10
|
+
* {Latest API Documents}[http://www.rubydoc.info/gems/decimal/]
|
14
11
|
|
15
12
|
== Requirements
|
16
13
|
|
data/TODO
CHANGED
@@ -1,13 +1,14 @@
|
|
1
|
+
* Modernize file location
|
2
|
+
* Use TypedData
|
1
3
|
* Preserve scale of zeros
|
2
4
|
* Implement "decimal/compat/bigdecimal", a bigdecimal-compatible layer
|
3
5
|
* Be a good friend with other Numeric classes (using Kernel.autoload?)
|
4
6
|
- OtherNumerics#to_decimal, Decimal#to_*
|
5
7
|
* Define `marshal_dump' and `marshal_load'
|
6
8
|
|
7
|
-
* Implement Decimal.pi / Decimal.e with a precise option
|
9
|
+
* Implement Decimal::Math.pi / Decimal::Math.e with a precise option
|
8
10
|
* Decimal#format_s based on format of Excel
|
9
11
|
* Embedded decimal32/64 (that size equals to pointer's)
|
10
|
-
* GMP support with "--with-gmp" and inumgmp.h
|
11
12
|
* Static value for well-used value like 0, 1 or 10 ?
|
12
13
|
|
13
14
|
done:
|
@@ -21,4 +22,4 @@ done:
|
|
21
22
|
- Write RDocs
|
22
23
|
- Implement decimal ** fixnum
|
23
24
|
- Create .document
|
24
|
-
|
25
|
+
- GMP support with "--with-gmp" and inumgmp.h (via Ruby 2.1)
|
data/decimal.c
CHANGED
@@ -1216,7 +1216,8 @@ power_body(VALUE x, VALUE y, VALUE scale, VALUE mode)
|
|
1216
1216
|
int y_negative_p, y_finite_p, y_integer_p, y_zero_p, y_positive_p,
|
1217
1217
|
y_odd_p, y_pinf_p, y_ninf_p, y_nan_p, y_one_p;
|
1218
1218
|
int x_finite_p, x_negative_p, x_nan_p, x_pone_p, x_none_p, x_zero_p,
|
1219
|
-
|
1219
|
+
x_abs_lt_1, x_abs_gt_1, x_ninf_p, x_pinf_p;
|
1220
|
+
VALUE x_abs;
|
1220
1221
|
long l = 0; /* dummy value */
|
1221
1222
|
|
1222
1223
|
if (FIXNUM_P(y)) {
|
data/decimal.gemspec
CHANGED
@@ -1,14 +1,19 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "decimal"
|
3
|
-
s.
|
4
|
-
s.version = "0.1.1"
|
5
|
-
s.date = "2014-10-28"
|
3
|
+
s.version = "0.1.2"
|
6
4
|
s.summary = "(yet another) multi-precision decimal arithmetic library"
|
7
|
-
s.homepage = "http://decimal.rubyforge.org/"
|
8
5
|
s.description = <<-EOS.split("\n").map{|l|l.lstrip}.join(" ")
|
9
6
|
Decimal is (yet another) multi-precision decimal arithmetic library. It
|
10
7
|
provides simple, compact, fast, precise, stable and easy-to-use solution.
|
11
8
|
EOS
|
9
|
+
|
10
|
+
s.required_ruby_version = '>= 1.9.3'
|
11
|
+
s.license = 'Ruby'
|
12
|
+
|
13
|
+
s.author = "Tadashi Saito"
|
14
|
+
s.email = "tad.a.digger@gmail.com"
|
15
|
+
s.homepage = "http://github.com/tadd/decimal"
|
16
|
+
|
12
17
|
s.extensions = "extconf.rb"
|
13
18
|
s.files = %w(.document COPYING BSDL INSTALL README.1st README.rdoc TODO decimal.c
|
14
19
|
decimal.gemspec depend extconf.rb inum193.h inum200.h inum21.h inum22.h
|
@@ -17,8 +22,6 @@ Gem::Specification.new do |s|
|
|
17
22
|
s.has_rdoc = true
|
18
23
|
s.rdoc_options = %w(-t Decimal -m README.rdoc)
|
19
24
|
s.extra_rdoc_files = %w(README.rdoc decimal.c)
|
20
|
-
|
21
|
-
s.email = "tad.a.digger@gmail.com"
|
22
|
-
s.license = 'Ruby'
|
25
|
+
|
23
26
|
s.post_install_message = "\n\t\t" << IO.read("README.1st") << "\n"
|
24
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decimal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tadashi Saito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-10-12 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Decimal is (yet another) multi-precision decimal arithmetic library. It
|
14
14
|
provides simple, compact, fast, precise, stable and easy-to-use solution.
|
@@ -39,7 +39,7 @@ files:
|
|
39
39
|
- lib/decimal/math.rb
|
40
40
|
- ruby18compat.h
|
41
41
|
- test_decimal.rb
|
42
|
-
homepage: http://
|
42
|
+
homepage: http://github.com/tadd/decimal
|
43
43
|
licenses:
|
44
44
|
- Ruby
|
45
45
|
metadata: {}
|
@@ -55,15 +55,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
55
55
|
requirements:
|
56
56
|
- - ">="
|
57
57
|
- !ruby/object:Gem::Version
|
58
|
-
version:
|
58
|
+
version: 1.9.3
|
59
59
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
63
|
version: '0'
|
64
64
|
requirements: []
|
65
|
-
rubyforge_project:
|
66
|
-
rubygems_version: 2.4.1
|
65
|
+
rubyforge_project:
|
66
|
+
rubygems_version: 2.4.5.1
|
67
67
|
signing_key:
|
68
68
|
specification_version: 4
|
69
69
|
summary: "(yet another) multi-precision decimal arithmetic library"
|