File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 22
22
runs-on : ubuntu-latest
23
23
strategy :
24
24
matrix :
25
- ruby-version : ['2.6 ', '2.7 ', '3.0 ']
25
+ ruby-version : ['3.0 ', '3.1 ', '3.2 ']
26
26
27
27
steps :
28
28
- uses : actions/checkout@v3
Original file line number Diff line number Diff line change 6
6
NewCops : enable
7
7
Exclude :
8
8
- spec/**/*
9
- TargetRubyVersion : 2.6
9
+ TargetRubyVersion : 3.2
10
10
11
11
Metrics/ClassLength :
12
12
Max : 150
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
gem . version = Grape ::Jsonapi ::VERSION
18
18
gem . licenses = [ 'MIT' ]
19
19
20
- gem . required_ruby_version = '>= 2.6 .0'
20
+ gem . required_ruby_version = '>= 3.2 .0'
21
21
22
22
gem . add_dependency 'grape'
23
23
gem . add_dependency 'jsonapi-serializer'
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def default_schema_object
47
47
48
48
def enrich_with_attributes ( schema )
49
49
attributes_hash . each do |attribute , type |
50
- schema [ :data ] [ :properties ] [ :attributes ] [ :properties ] [ attribute ] = { type : type }
50
+ schema [ :data ] [ :properties ] [ :attributes ] [ :properties ] [ attribute ] = { type : }
51
51
example_method = "#{ type } _example"
52
52
unless respond_to? ( example_method , true )
53
53
puts "WARN unexpected type encountered, missing #{ example_method } --use string example instead"
@@ -144,7 +144,7 @@ def relationships_example(relationship_data)
144
144
145
145
data = [ data ] if relationship_data [ :relationship_type ] == :has_many
146
146
147
- { data : data }
147
+ { data : }
148
148
end
149
149
150
150
def integer_example
You can’t perform that action at this time.
0 commit comments