Skip to content

Commit

Permalink
Merge pull request #52 from epimorphics/issue/51-ruby-3-openstruct
Browse files Browse the repository at this point in the history
require 'ostruct'
  • Loading branch information
ajtucker authored Jun 3, 2024
2 parents fb466fa + 25f4fef commit 9649969
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/test-app.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
name: Ruby tests

on: [push]
on: [push, pull_request]

jobs:
test:
strategy:
matrix:
ruby: ['2.7', '3.0', '3.1', '3.2', '3.3']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Install dependencies (bundle)
run: bundle install
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run tests
run: rake test
run: bundle exec rake test
14 changes: 7 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
sapi-client-ruby (1.1.0)
sapi-client-ruby (1.1.2)
faraday_middleware (~> 1.0.0)
i18n (~> 1.5)

Expand All @@ -12,9 +12,9 @@ GEM
ast (2.4.2)
builder (3.2.4)
byebug (11.1.3)
concurrent-ruby (1.1.9)
concurrent-ruby (1.3.1)
docile (1.4.0)
faraday (1.10.0)
faraday (1.10.3)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
Expand All @@ -30,16 +30,16 @@ GEM
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-multipart (1.0.3)
multipart-post (>= 1.2, < 3)
faraday-multipart (1.0.4)
multipart-post (~> 2)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
faraday-rack (1.0.0)
faraday-retry (1.0.3)
faraday_middleware (1.0.0)
faraday (~> 1.0)
i18n (1.10.0)
i18n (1.14.5)
concurrent-ruby (~> 1.0)
minitest (5.15.0)
minitest-reporters (1.5.0)
Expand All @@ -48,7 +48,7 @@ GEM
minitest (>= 5.0)
ruby-progressbar
mocha (1.13.0)
multipart-post (2.1.1)
multipart-post (2.4.1)
parallel (1.21.0)
parser (3.1.1.0)
ast (~> 2.4.1)
Expand Down
1 change: 1 addition & 0 deletions lib/sapi_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
require 'json'
require 'logger'
require 'i18n'
require 'ostruct'

require 'sapi_client/version'
require 'sapi_client/sapi_endpoint'
Expand Down

0 comments on commit 9649969

Please sign in to comment.