remi / teamocil

There's no I in Teamocil. At least not where you think. Teamocil is a simple tool used to automatically create windows and panes in tmux with YAML files.
MIT License
2.36k stars 101 forks source link

Syntax error with Ruby 1.9 walking through initial setup #73

Closed Fuzion24 closed 10 years ago

Fuzion24 commented 10 years ago
➜  ~  teamocil --edit sample 
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /var/lib/gems/1.9.1/gems/teamocil-1.0.5/lib/teamocil.rb:55: syntax error, unexpected tLABEL, expecting ')' (SyntaxError)
  def self.parse_options!(arguments: nil)
                                    ^
/var/lib/gems/1.9.1/gems/teamocil-1.0.5/lib/teamocil.rb:59: syntax error, unexpected keyword_end, expecting $end
        from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from /var/lib/gems/1.9.1/gems/teamocil-1.0.5/bin/teamocil:4:in `<top (required)>'
        from /usr/local/bin/teamocil:23:in `load'
        from /usr/local/bin/teamocil:23:in `<main>'
remi commented 10 years ago

Unfortunately, Teamocil 1.0+ requires Ruby 2.0 since it uses named arguments. Teamocil 0.4.5 is the last version to support Ruby 1.9.

artm commented 10 years ago

Can't the gem itself specify minimal ruby versions it requires?