lib/prism/ffi.rb in prism-0.19.0 vs lib/prism/ffi.rb in prism-0.20.0
- old
+ new
@@ -294,11 +294,11 @@
template << "A*"
else
values << 0
end
- template << "L"
+ template << "l"
values << options.fetch(:line, 1)
template << "L"
if (encoding = options[:encoding])
name = encoding.name
@@ -310,10 +310,10 @@
template << "C"
values << (options.fetch(:frozen_string_literal, false) ? 1 : 0)
template << "C"
- values << (options.fetch(:verbose, true) ? 0 : 1)
+ values << { nil => 0, "3.3.0" => 1, "latest" => 0 }.fetch(options[:version])
template << "L"
if (scopes = options[:scopes])
values << scopes.length