Skip to content

Commit

Permalink
Add TruffleRuby head to CI
Browse files Browse the repository at this point in the history
This is an clean version of #118 against current master head.  Thanks to @eregon for the original submission
  • Loading branch information
petergoldstein committed Feb 14, 2022
1 parent f964fec commit cafee93
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
- "3.1"
- ruby-head
- jruby-9.3
- truffleruby-head
steps:
- uses: actions/checkout@v1
- name: Set up Ruby
Expand Down
13 changes: 6 additions & 7 deletions spec/prawn_manual_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
require 'digest/sha2'

MANUAL_HASH =
case RUBY_ENGINE
when 'ruby'
'2c0279e0bff2a9120494a52aa46216c1871902b5e66a3537bd4d3cbd66db0096b43b6e1ae0e4e189b561c4db9fa1afacb6c41f260e3aaf942faae2fee352d35b'
when 'jruby'
'51baf6440907e9e38d22f50deafa91572aec1174e621c044ae077cfe3d4361982a505dae5f013dd06f64f38cb9b3a38d5a3f8f0903849591774e298a3c91d39a'
end
{
'ruby' => '2c0279e0bff2a9120494a52aa46216c1871902b5e66a3537bd4d3cbd66db0096b43b6e1ae0e4e189b561c4db9fa1afacb6c41f260e3aaf942faae2fee352d35b',
'jruby' => '51baf6440907e9e38d22f50deafa91572aec1174e621c044ae077cfe3d4361982a505dae5f013dd06f64f38cb9b3a38d5a3f8f0903849591774e298a3c91d39a',
'truffleruby' => '2d001a18e27582cce60a6610ca0239de96e7413b0c2a657af5ef364cdc793f3ecd22fbf0ca88bd33cbc24f08cbf0f055cc24a9c2661087047b8ddd14c4554fa5'
}.freeze

RSpec.describe Prawn do
describe 'manual' do
Expand All @@ -27,7 +26,7 @@

hash = Digest::SHA512.hexdigest(s)

expect(hash).to eq MANUAL_HASH
expect(hash).to eq MANUAL_HASH[RUBY_ENGINE]
end
end
end

0 comments on commit cafee93

Please sign in to comment.