• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ruby-grape / grape / 36408633066
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: dblock/automate-gem-release
DEFAULT BRANCH: master
Ran 28 Sep 2026 10:15AM UTC
Jobs 32
Files 166
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Sep 2026 10:13AM UTC coverage: 100.0%. Remained the same
36408633066

Pull #3011

github

ericproulx
Reject a number with a fractional part for an Integer param

dry-types turns a number into an Integer with Kernel#Integer, which
truncates. So a JSON body's `{"quantity": 2.99}` passed
`requires :quantity, type: Integer` as 2, and -0.5 became 0, while the
same value sent as a string ("2.99" in a query) was rejected. The
truncation also reached Array[Integer] and Set[Integer] elements, let
`values: 1..10` accept 1.5 as 1, and made `types: [Integer, Float]` answer
2 for a JSON 2.99 but 2.99 for the query string, because the Integer
member never failed and the Float member never got a turn.

PrimitiveCoercer now refuses a real number with a fractional part when
the declared type is Integer. A whole number such as 1.0 still becomes 1,
so nothing that was coerced without loss changes.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Pull Request #3011: Reject a number with a fractional part for an Integer param

1498 of 1498 branches covered (100.0%)

Branch coverage included in aggregate %.

4 of 4 new or added lines in 1 file covered. (100.0%)

4324 of 4324 relevant lines covered (100.0%)

29252.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 run-4.0-gemfiles/rails_8_1.gemfile - 36408633066.1 28 Sep 2026 10:15AM UTC 166
98.81
GitHub Action Run
2 run-3.4-gemfiles/rails_8_1.gemfile - 36408633066.2 28 Sep 2026 10:15AM UTC 166
98.81
GitHub Action Run
3 run-3.3-gemfiles/rack_3_1.gemfile - 36408633066.3 28 Sep 2026 10:17AM UTC 165
98.83
GitHub Action Run
4 run-3.4-gemfiles/rack_2_2.gemfile - 36408633066.4 28 Sep 2026 10:15AM UTC 165
98.78
GitHub Action Run
5 run-4.0-Gemfile - 36408633066.5 28 Sep 2026 10:16AM UTC 165
98.81
GitHub Action Run
6 run-4.0-gemfiles/rails_7_2.gemfile - 36408633066.6 28 Sep 2026 10:17AM UTC 166
98.81
GitHub Action Run
7 run-3.4-gemfiles/rack_3_0.gemfile - 36408633066.7 28 Sep 2026 10:17AM UTC 165
98.81
GitHub Action Run
8 run-4.0-gemfiles/grape_entity.gemfile - 36408633066.8 28 Sep 2026 10:17AM UTC 164
48.69
GitHub Action Run
9 run-3.3-Gemfile - 36408633066.9 28 Sep 2026 10:16AM UTC 165
98.83
GitHub Action Run
10 run-3.4-gemfiles/rack_3_1.gemfile - 36408633066.10 28 Sep 2026 10:16AM UTC 165
98.81
GitHub Action Run
11 run-3.4-gemfiles/rails_8_0.gemfile - 36408633066.11 28 Sep 2026 10:15AM UTC 166
98.81
GitHub Action Run
12 run-4.0-gemfiles/rack_3_0.gemfile - 36408633066.12 28 Sep 2026 10:15AM UTC 165
98.81
GitHub Action Run
13 run-3.4-Gemfile - 36408633066.13 28 Sep 2026 10:15AM UTC 165
98.81
GitHub Action Run
14 run-4.0-gemfiles/multi_xml.gemfile - 36408633066.14 28 Sep 2026 10:15AM UTC 164
45.61
GitHub Action Run
15 run-4.0-gemfiles/rack_2_2.gemfile - 36408633066.15 28 Sep 2026 10:15AM UTC 165
98.78
GitHub Action Run
16 run-4.0-gemfiles/multi_xml_0_8.gemfile - 36408633066.16 28 Sep 2026 10:15AM UTC 164
45.65
GitHub Action Run
17 run-4.0-gemfiles/grape_swagger.gemfile - 36408633066.17 28 Sep 2026 10:17AM UTC 164
53.23
GitHub Action Run
18 run-4.0-gemfiles/hashie.gemfile - 36408633066.18 28 Sep 2026 10:15AM UTC 164
59.93
GitHub Action Run
19 run-4.0-gemfiles/multi_json.gemfile - 36408633066.19 28 Sep 2026 10:15AM UTC 164
45.92
GitHub Action Run
20 run-3.3-gemfiles/rails_8_1.gemfile - 36408633066.20 28 Sep 2026 10:16AM UTC 166
98.83
GitHub Action Run
21 run-3.4-gemfiles/rails_7_2.gemfile - 36408633066.21 28 Sep 2026 10:15AM UTC 166
98.81
GitHub Action Run
22 run-3.3-gemfiles/rails_7_2.gemfile - 36408633066.22 28 Sep 2026 10:15AM UTC 166
98.83
GitHub Action Run
23 run-3.3-gemfiles/rails_8_0.gemfile - 36408633066.23 28 Sep 2026 10:15AM UTC 166
98.83
GitHub Action Run
24 run-3.3-gemfiles/rack_3_0.gemfile - 36408633066.24 28 Sep 2026 10:15AM UTC 165
98.83
GitHub Action Run
25 run-4.0-gemfiles/rails_8_0.gemfile - 36408633066.25 28 Sep 2026 10:17AM UTC 166
98.81
GitHub Action Run
26 run-4.0-gemfiles/multi_json_1_20.gemfile - 36408633066.26 28 Sep 2026 10:17AM UTC 164
45.96
GitHub Action Run
27 run-4.0-gemfiles/dry_validation.gemfile - 36408633066.27 28 Sep 2026 10:16AM UTC 164
55.82
GitHub Action Run
28 run-4.0-gemfiles/rack_3_1.gemfile - 36408633066.28 28 Sep 2026 10:17AM UTC 165
98.81
GitHub Action Run
29 run-3.3-gemfiles/rack_2_2.gemfile - 36408633066.29 28 Sep 2026 10:15AM UTC 165
98.8
GitHub Action Run
30 run-3.3-gemfiles/rack_3_2.gemfile - 36408633066.30 28 Sep 2026 10:15AM UTC 165
98.83
GitHub Action Run
31 run-4.0-gemfiles/rack_3_2.gemfile - 36408633066.31 28 Sep 2026 10:16AM UTC 165
98.81
GitHub Action Run
32 run-3.4-gemfiles/rack_3_2.gemfile - 36408633066.32 28 Sep 2026 10:15AM UTC 165
98.81
GitHub Action Run
Source Files on build 36408633066
  • Tree
  • List 166
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #36408633066
  • Pull Request #3011
  • PR Base - master (#36276811501)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc