Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ jobs:
build:
strategy:
matrix:
version: ["ruby:3.3", "ruby:3.2", "ruby:3.1"]
version: ["ruby:3.4", "ruby:3.3", "ruby:3.2"]
runs-on: ubuntu-latest
container: ${{ matrix.version }}
steps:
- uses: actions/checkout@v2
- name: Bundler cache
uses: actions/cache@v1
uses: actions/cache@v4
with:
path: vendor/bundle
key: ${{ runner.os }}-${{ matrix.version }}-bundler-${{ hashFiles('Gemfile.lock') }}
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.4
3.4.4
2 changes: 0 additions & 2 deletions lib/reynard/context.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

require 'ostruct'

class Reynard
# Exposes a public interface to build a request context.
class Context
Expand Down
2 changes: 0 additions & 2 deletions lib/reynard/object_builder.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

require 'ostruct'

class Reynard
# Defines dynamic classes based on schema and instantiates them for a response.
class ObjectBuilder
Expand Down
2 changes: 1 addition & 1 deletion lib/reynard/specification/finder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def find_each(&)
def find_into(path, &block)
data = @specification.dig(*path)

yield path if data.respond_to?(:key?) && (data.key?('type') && (@query.type == data['type']))
yield path if data.respond_to?(:key?) && data.key?('type') && (@query.type == data['type'])

return unless data.respond_to?(:each_key)

Expand Down
2 changes: 2 additions & 0 deletions test/integration/reynard_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

require_relative '../test_helper'

require 'open3'

module Integration
class ReynardTest < Reynard::Test
def setup
Expand Down
3 changes: 0 additions & 3 deletions test/support/simple_service.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# frozen_string_literal: true

require 'open3'
require 'ostruct'

require 'multi_json'
require 'webrick'

Expand Down
1 change: 0 additions & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

require 'minitest/autorun'
require 'webmock/minitest'
require 'ostruct'
require 'logger'

$LOAD_PATH << File.expand_path('../lib', __dir__)
Expand Down