examples/env.rb in tty-editor-0.4.1 vs examples/env.rb in tty-editor-0.5.0
- old
+ new
@@ -1,7 +1,7 @@
-# encoding: utf-8
+# frozen_string_literal: true
-require 'tty-editor'
+require_relative '../lib/tty-editor'
path = File.join(File.expand_path(File.dirname(__FILE__)), '../README.md')
TTY::Editor.open(path, env: {"FOO" => "bar"})