Closed KeyAmam closed 4 months ago
ViewComponentContrib::StyleVariants
syntax error, unexpected '=' ... def postprocess(compiled) = postprocessor.call(compiled) ... ^ /usr/local/bundle/gems/view_component-contrib-0.2.2/lib/view_component_contrib/style_variants.rb:211: syntax error, unexpected end-of-input, expecting `end'
ViewComponentContrib::StyleVariants::StyleConfig
Ruby Version: 2.7
Framework Version (Rails, whatever): 7.1.3
View Component Contrib Version: 0.2.2
Oh, my bad. It should have worked on Ruby 2.7, since we're using Ruby Next; but the transpiled filed were missing from the RubyGems package. Fixed in 0.2.3.
What did you do?
ViewComponentContrib::StyleVariants
in a view component classWhat did you expect to happen?
What actually happened?
Additional context
ViewComponentContrib::StyleVariants::StyleConfig
requires Ruby >=3.0 https://github.com/palkan/view_component-contrib/blob/fbec903198c2718cb97e432204344a22d1bf4e78/lib/view_component_contrib/style_variants.rb#L178Environment
Ruby Version: 2.7
Framework Version (Rails, whatever): 7.1.3
View Component Contrib Version: 0.2.2