Skip to content

Commit 45a4205

Browse files
authored
Merge branch 'ruby:master' into add_bigmath_tan
2 parents d0d8bba + 23144a7 commit 45a4205

22 files changed

+1932
-2620
lines changed

.github/workflows/benchmark.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- { os: windows-latest , ruby: "3.2" }
4444

4545
steps:
46-
- uses: actions/checkout@v4
46+
- uses: actions/checkout@v5
4747

4848
- name: Set up Ruby
4949
uses: ruby/setup-ruby@v1
@@ -53,7 +53,7 @@ jobs:
5353
- name: Install dependencies
5454
run: |
5555
bundle install
56-
gem install bigdecimal -v 3.0.0
56+
gem install bigdecimal -v 3.1.1
5757
5858
- run: rake compile
5959

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020

2121
host:
2222
needs: ruby-versions
23-
name: ${{ matrix.os }} ${{ matrix.ruby }}
23+
name: ${{ matrix.os }} ${{ matrix.ruby }} decdig-${{ matrix.decdig_bits }}bit
2424
runs-on: ${{ matrix.os }}
2525
strategy:
2626
fail-fast: false
@@ -31,7 +31,9 @@ jobs:
3131
- macos-14
3232
- windows-latest
3333
ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }}
34+
decdig_bits: [32]
3435
include:
36+
- { os: ubuntu-latest, ruby: "3.4", decdig_bits: 16 }
3537
- { os: windows-latest , ruby: mingw }
3638
- { os: windows-latest , ruby: mswin }
3739
exclude:
@@ -40,9 +42,12 @@ jobs:
4042
- { os: windows-latest , ruby: debug }
4143
- { os: windows-latest , ruby: truffleruby }
4244
- { os: windows-latest , ruby: truffleruby-head }
45+
env:
46+
BIGDECIMAL_USE_DECDIG_UINT16_T: ${{ matrix.decdig_bits == 16 }}
47+
BIGDECIMAL_USE_VP_TEST_METHODS: true
4348

4449
steps:
45-
- uses: actions/checkout@v4
50+
- uses: actions/checkout@v5
4651

4752
- name: Set up Ruby
4853
uses: ruby/setup-ruby@v1

.github/workflows/jruby_test.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: JRuby-test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
types:
9+
- opened
10+
- synchronize
11+
- reopened
12+
13+
jobs:
14+
host:
15+
name: ${{ matrix.ruby }}
16+
runs-on: ubuntu-latest
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
ruby:
21+
- jruby
22+
- jruby-head
23+
24+
steps:
25+
- uses: actions/checkout@v5
26+
27+
- name: Set up Ruby
28+
uses: ruby/setup-ruby@v1
29+
with:
30+
ruby-version: ${{ matrix.ruby }}
31+
32+
- run: bundle install
33+
34+
- run: rake compile
35+
36+
- run: rake test TEST=test/bigdecimal/test_jruby.rb
37+
38+
- run: rake build
39+
40+
- run: gem install pkg/*.gem

.github/workflows/push_gem.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ jobs:
2727

2828
steps:
2929
- name: Harden Runner
30-
uses: step-security/harden-runner@002fdce3c6a235733a90a27c80493a3241e56863 # v2.12.1
30+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
3131
with:
3232
egress-policy: audit
3333

34-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
34+
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.2.2
3535

3636
- name: Set up Ruby
3737
uses: ruby/setup-ruby@13e7a03dc3ac6c3798f4570bfead2aed4d96abfb # v1.244.0

CHANGES.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# CHANGES
22

3+
## 3.2.3
4+
5+
* Allow BigDecimal accept Float without precision [GH-314]
6+
7+
**@mrzasa**
8+
9+
* Ruby implementation pow, log, exp and sqrt [GH-347] [GH-381]
10+
11+
**@tompng**
12+
13+
* Update document [GH-348] [GH-360] [GH-365]
14+
15+
**@timcraft** **@dduugg** **@mame**
16+
17+
* Lots of bug fixes and refactoring
18+
319
## 3.2.2
420

521
* Make precision calculation in bigdecimal.div(value, 0) gc-compaction safe. [GH-340]

benchmark/from_float.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ loop_count: 100000
22

33
contexts:
44
- gems:
5-
bigdecimal: 3.0.0
5+
bigdecimal: 3.1.1
66
- name: "master"
77
prelude: |-
88
$LOAD_PATH.unshift(File.expand_path("lib"))

benchmark/from_large_integer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ loop_count: 1000
22

33
contexts:
44
- gems:
5-
bigdecimal: 3.0.0
5+
bigdecimal: 3.1.1
66
- name: "master"
77
prelude: |-
88
$LOAD_PATH.unshift(File.expand_path("lib"))

benchmark/from_small_integer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ loop_count: 100000
22

33
contexts:
44
- gems:
5-
bigdecimal: 3.0.0
5+
bigdecimal: 3.1.1
66
- name: "master"
77
prelude: |-
88
$LOAD_PATH.unshift(File.expand_path("lib"))

0 commit comments

Comments
 (0)