Skip to content

Releases: mntnorv/to_lua

v0.2.1

16 Aug 10:37
Compare
Choose a tag to compare
  • Do not escape square brackets in Lua strings. These escapes were removed in Lua 5.1.

    # Previously
    '[]'.to_lua   # \[\]
    
    # Now
    '[]'.to_lua   # []

v0.2.0

16 May 09:23
Compare
Choose a tag to compare
  • Do not use the ["key"] syntax in lua tables if the key is a valid identifier

    # Key is a valid identifier
    {key: 'value'}.to_lua  # {key="value"}
    
    # Key is not a valid identifier
    {123: 'value'}.to_lua  # {["123"]="value"} 

v0.1.1

16 May 09:18
Compare
Choose a tag to compare
  • Bugfix: Fix outdated Gemfile.lock

v0.1.0

16 May 09:17
Compare
Choose a tag to compare
  • Add pretty formatting with .to_lua(pretty: true)