Skip to content

Commit

Permalink
adding the required gems
Browse files Browse the repository at this point in the history
  • Loading branch information
gtrias committed Aug 20, 2024
1 parent 9515d4e commit 12702af
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 656 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ source 'https://rubygems.org'

# gem "rails"
gem 'rspec'
gem 'sorbet-static-and-runtime', '>= 0.5.11511'

8 changes: 8 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,21 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
sorbet (0.5.11531)
sorbet-static (= 0.5.11531)
sorbet-runtime (0.5.11531)
sorbet-static (0.5.11531-x86_64-linux)
sorbet-static-and-runtime (0.5.11531)
sorbet (= 0.5.11531)
sorbet-runtime (= 0.5.11531)

PLATFORMS
ruby
x86_64-linux

DEPENDENCIES
rspec
sorbet-static-and-runtime (>= 0.5.11511)

BUNDLED WITH
2.5.11
4 changes: 3 additions & 1 deletion lib/public/relationship.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ class Relationship < T::Struct
const :optional, T::Boolean

# Are there multiple resources in the other side of the relationship?
delegate :many_cardinality?, to: :type
def many_cardinality?
type.many_cardinality?
end

sig { returns(T::Hash[String, T.untyped]) }
def dump
Expand Down
3 changes: 3 additions & 0 deletions spec/i18n_keys_for_resource_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# typed: strict
# frozen_string_literal: true

require 'spec_helper'
require_relative '../lib/public/i18n_keys_for_resource'

RSpec.describe ResourceRegistry::I18nKeysForResource do
subject { described_class.new(resource) }

Expand Down
Loading

0 comments on commit 12702af

Please sign in to comment.