Skip to content

Commit

Permalink
Merge pull request #245 from petergoldstein/feature/migrate_to_github…
Browse files Browse the repository at this point in the history
…_actions

Migrate CI to GitHub Actions
  • Loading branch information
kputnam authored Mar 8, 2022
2 parents 3a6b469 + 3ec699b commit f618e3d
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 37 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby

name: build

on: [pull_request, push]

jobs:
test:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
ruby:
- '3.1'
- '3.0'
- '2.7'
- '2.6'
- '2.5'
- '2.4'
- '2.3'
- '2.2'
- '2.1'
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

4 changes: 3 additions & 1 deletion lib/stupidedi/versions/common/element_types/r.rb
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,9 @@ def to_x12(truncate = true)
if rounded.zero?
"0" * definition.min_length
else
sign + rounded.abs.to_s("F").
base = rounded.abs
base = base.is_a?(BigDecimal) ? base : BigDecimal(base)
sign + base.to_s("F").
gsub(/^0+/, ""). # leading zeros
gsub(/0+$/, ""). # trailing zeros
gsub(/\.$/, ""). # trailing decimal point
Expand Down

0 comments on commit f618e3d

Please sign in to comment.