File tree Expand file tree Collapse file tree 4 files changed +5
-2
lines changed
Expand file tree Collapse file tree 4 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 11PATH
22 remote: .
33 specs:
4- shale-builder (0.5.1 )
4+ shale-builder (0.5.2 )
55 booleans (>= 0.1 )
66 shale (< 2.0 )
77 sorbet-runtime (> 0.5 )
Original file line number Diff line number Diff line change 22
33module Shale
44 module Builder
5- VERSION = '0.5.1 '
5+ VERSION = '0.5.2 '
66 end
77end
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ def decorate
4040 attribute = constant . attributes [ attribute_name ] #: ::Shale::Attribute
4141 if ( type = attribute . return_type )
4242 return_type = type
43+ nilable = true
4344 else
4445 return_type , nilable = shale_type_to_sorbet_return_type ( attribute )
4546 end
@@ -58,6 +59,7 @@ def decorate
5859
5960 if ( type = attribute . return_type || attribute . setter_type )
6061 setter_type = type
62+ nilable = true
6163 else
6264 setter_type , nilable = shale_type_to_sorbet_setter_type ( attribute )
6365 end
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ class TestTransactionResponseType < ::Shale::Mapper
2626 attribute :cvv_code , ::Shale ::Type ::String
2727 attribute :amount , TestAmountType
2828 attribute :success , ::Shale ::Type ::Boolean
29+ attribute :aux , ::Shale ::Type ::Value , return_type : Integer
2930 end
3031
3132 class TestTransactionType < ::Shale ::Mapper
You can’t perform that action at this time.
0 commit comments