Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid hash syntax #7

Closed
matkowal opened this issue May 16, 2016 · 2 comments
Closed

Invalid hash syntax #7

matkowal opened this issue May 16, 2016 · 2 comments

Comments

@matkowal
Copy link

After including the gem into Gemfile I started receiving syntax errors:

/Users/john/.rvm/gems/ruby-2.1.5@railsapp/gems/bundler-1.11.2/lib/bundler/runtime.rb:77:in `require': /Users/john/.rvm/gems/ruby-2.1.5@railsapp/gems/spreadsheet_architect-1.4.5/lib/spreadsheet_architect.rb:215: syntax error, unexpected ':', expecting keyword_end (SyntaxError)
            property :text, 'font-weight': :bold
                                          ^
/Users/john/.rvm/gems/ruby-2.1.5@railsapp/gems/spreadsheet_architect-1.4.5/lib/spreadsheet_architect.rb:218: syntax error, unexpected ':', expecting keyword_end
            property :text, 'align': options[:header_style][:align]
                                    ^
/Users/john/.rvm/gems/ruby-2.1.5@railsapp/gems/spreadsheet_architect-1.4.5/lib/spreadsheet_architect.rb:221: syntax error, unexpected ':', expecting keyword_end
            property :text, 'font-size': options[:header_style][:size]
                                        ^
/Users/john/.rvm/gems/ruby-2.1.5@railsapp/gems/spreadsheet_architect-1.4.5/lib/spreadsheet_architect.rb:224: syntax error, unexpected ':', expecting keyword_end
...       property :text, 'color': "##{options[:header_style][:...
...                               ^
/Users/john/.rvm/gems/ruby-2.1.5@railsapp/gems/spreadsheet_architect-1.4.5/lib/spreadsheet_architect.rb:231: syntax error, unexpected ':', expecting keyword_end
            property :text, 'font-weight': :bold
                                          ^
/Users/john/.rvm/gems/ruby-2.1.5@railsapp/gems/spreadsheet_architect-1.4.5/lib/spreadsheet_architect.rb:234: syntax error, unexpected ':', expecting keyword_end
            property :text, 'align': options[:row_style][:align]
                                    ^
/Users/john/.rvm/gems/ruby-2.1.5@railsapp/gems/spreadsheet_architect-1.4.5/lib/spreadsheet_architect.rb:237: syntax error, unexpected ':', expecting keyword_end
            property :text, 'font-size': options[:row_style][:size]
                                        ^
/Users/john/.rvm/gems/ruby-2.1.5@railsapp/gems/spreadsheet_architect-1.4.5/lib/spreadsheet_architect.rb:240: syntax error, unexpected ':', expecting keyword_end
            property :text, 'color': "##{options[:row_style][:color]}"




@westonganger
Copy link
Owner

westonganger commented May 16, 2016

This is the ruby 2.2+ hash syntax, I will fix it so it still works with 1.9.3+

@westonganger
Copy link
Owner

westonganger commented May 16, 2016

I just released v1.4.6 which fixes this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants