Skip to content

Commit

Permalink
[LINT] Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
ssunday committed Jun 24, 2024
1 parent 015ceef commit 7dea37b
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion spec/dummy/app/models/test_model_complex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ class TestModelComplex
string_attr :post_title
string_attr :post_body
string_set_attr :tags, default_value: Set.new
datetime_attr :created_at, database_attribute_name: "PostCreatedAtTime"
datetime_attr :created_at, database_attribute_name: 'PostCreatedAtTime'
boolean_attr :moderation, default_value: false
end
2 changes: 1 addition & 1 deletion spec/dummy/app/models/test_model_gsi_basic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TestModelGsiBasic
:SecondaryIndex,
hash_key: :gsi_hkey,
projection: {
projection_type: "ALL"
projection_type: 'ALL'
}
)
end
2 changes: 1 addition & 1 deletion spec/dummy/app/models/test_model_gsi_keys.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TestModelGsiKeys
hash_key: :gsi_hkey,
range_key: :gsi_rkey,
projection: {
projection_type: "ALL"
projection_type: 'ALL'
}
)
end
4 changes: 2 additions & 2 deletions spec/dummy/app/models/test_model_gsi_mult.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ class TestModelGsiMult
:SecondaryIndex,
hash_key: :gsi_hkey,
projection: {
projection_type: "ALL"
projection_type: 'ALL'
}
)

global_secondary_index(
:SecondaryIndex2,
hash_key: :gsi2_hkey,
projection: {
projection_type: "ALL"
projection_type: 'ALL'
}
)
end
2 changes: 1 addition & 1 deletion spec/dummy/app/models/test_model_set_table_name.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ class TestModelSetTableName
include Aws::Record

string_attr :uuid, hash_key: true
set_table_name "CustomTableName"
set_table_name 'CustomTableName'
end
4 changes: 2 additions & 2 deletions spec/dummy/app/models/test_table_config_gsi_mult.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ class TestTableConfigGsiMult
:SecondaryIndex,
hash_key: :gsi_hkey,
projection: {
projection_type: "ALL"
projection_type: 'ALL'
}
)

global_secondary_index(
:SecondaryIndex2,
hash_key: :gsi2_hkey,
projection: {
projection_type: "ALL"
projection_type: 'ALL'
}
)
end
2 changes: 1 addition & 1 deletion spec/dummy/app/models/test_table_config_gsi_provided.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TestTableConfigGsiProvided
:SecondaryIndex,
hash_key: :gsi_hkey,
projection: {
projection_type: "ALL"
projection_type: 'ALL'
}
)
end
2 changes: 1 addition & 1 deletion spec/fixtures/models/test_model_complex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ class TestModelComplex
string_attr :post_title
string_attr :post_body
string_set_attr :tags, default_value: Set.new
datetime_attr :created_at, database_attribute_name: "PostCreatedAtTime"
datetime_attr :created_at, database_attribute_name: 'PostCreatedAtTime'
boolean_attr :moderation, default_value: false
end
2 changes: 1 addition & 1 deletion spec/fixtures/models/test_model_gsi_basic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class TestModelGsiBasic
:SecondaryIndex,
hash_key: :gsi_hkey,
projection: {
projection_type: "ALL"
projection_type: 'ALL'
}
)
end
2 changes: 1 addition & 1 deletion spec/fixtures/models/test_model_gsi_keys.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TestModelGsiKeys
hash_key: :gsi_hkey,
range_key: :gsi_rkey,
projection: {
projection_type: "ALL"
projection_type: 'ALL'
}
)
end
4 changes: 2 additions & 2 deletions spec/fixtures/models/test_model_gsi_mult.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ class TestModelGsiMult
:SecondaryIndex,
hash_key: :gsi_hkey,
projection: {
projection_type: "ALL"
projection_type: 'ALL'
}
)

global_secondary_index(
:SecondaryIndex2,
hash_key: :gsi2_hkey,
projection: {
projection_type: "ALL"
projection_type: 'ALL'
}
)
end
2 changes: 1 addition & 1 deletion spec/fixtures/models/test_model_set_table_name.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ class TestModelSetTableName
include Aws::Record

string_attr :uuid, hash_key: true
set_table_name "CustomTableName"
set_table_name 'CustomTableName'
end

0 comments on commit 7dea37b

Please sign in to comment.