Skip to content

Commit

Permalink
Switch to bigdecimal gem
Browse files Browse the repository at this point in the history
The bigdecimal gem now releases a -java version that contains only
the .rb files we also use. As a result, we can now depend on it
and remove the Ruby sources from our repository.

See ruby/bigdecimal#169
  • Loading branch information
headius committed Sep 5, 2023
1 parent 656f9d6 commit 8b6c97f
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 689 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ lib/ruby/stdlib/abbrev*
lib/ruby/stdlib/ant*
lib/ruby/stdlib/base64*
lib/ruby/stdlib/benchmark*
lib/ruby/stdlib/bigdecimal*
lib/ruby/stdlib/bundler*
lib/ruby/stdlib/cgi*
lib/ruby/stdlib/csv*
Expand Down
3 changes: 1 addition & 2 deletions lib/pom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ def log(message=nil)
['abbrev', '0.1.0'],
['base64', '0.1.1'],
['benchmark', '0.2.0'],
# https://github.com/ruby/bigdecimal/issues/169
# ['bigdecimal', '3.1.1'],
['bigdecimal', '3.1.4'],
['bundler', '2.3.26'],
['cgi', '0.3.6'],
['csv', '3.2.5'],
Expand Down
16 changes: 16 additions & 0 deletions lib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,19 @@ DO NOT MODIFY - GENERATED CODE
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>bigdecimal</artifactId>
<version>3.1.4</version>
<type>gem</type>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>rubygems</groupId>
<artifactId>jar-dependencies</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>rubygems</groupId>
<artifactId>bundler</artifactId>
Expand Down Expand Up @@ -1057,6 +1070,7 @@ DO NOT MODIFY - GENERATED CODE
<include>specifications/abbrev-0.1.0*</include>
<include>specifications/base64-0.1.1*</include>
<include>specifications/benchmark-0.2.0*</include>
<include>specifications/bigdecimal-3.1.4*</include>
<include>specifications/bundler-2.3.26*</include>
<include>specifications/cgi-0.3.6*</include>
<include>specifications/csv-3.2.5*</include>
Expand Down Expand Up @@ -1134,6 +1148,7 @@ DO NOT MODIFY - GENERATED CODE
<include>gems/abbrev-0.1.0*/**/*</include>
<include>gems/base64-0.1.1*/**/*</include>
<include>gems/benchmark-0.2.0*/**/*</include>
<include>gems/bigdecimal-3.1.4*/**/*</include>
<include>gems/bundler-2.3.26*/**/*</include>
<include>gems/cgi-0.3.6*/**/*</include>
<include>gems/csv-3.2.5*/**/*</include>
Expand Down Expand Up @@ -1211,6 +1226,7 @@ DO NOT MODIFY - GENERATED CODE
<include>cache/abbrev-0.1.0*</include>
<include>cache/base64-0.1.1*</include>
<include>cache/benchmark-0.2.0*</include>
<include>cache/bigdecimal-3.1.4*</include>
<include>cache/bundler-2.3.26*</include>
<include>cache/cgi-0.3.6*</include>
<include>cache/csv-3.2.5*</include>
Expand Down
2 changes: 0 additions & 2 deletions lib/ruby/stdlib/bigdecimal.rb

This file was deleted.

90 changes: 0 additions & 90 deletions lib/ruby/stdlib/bigdecimal/jacobian.rb

This file was deleted.

89 changes: 0 additions & 89 deletions lib/ruby/stdlib/bigdecimal/ludcmp.rb

This file was deleted.

Loading

0 comments on commit 8b6c97f

Please sign in to comment.