bin/mdv in mdv-0.4.1 vs bin/mdv in mdv-0.5.0
- old
+ new
@@ -1,15 +1,15 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
-require 'mdv'
+require "mdv"
Gtk.init
-WebKit2Gtk::WebContext.default.set_cache_model :document_viewer
+WebKit2::WebContext.get_default.set_cache_model :document_viewer
file = ARGV[0]
-raise 'Need file' unless file
+raise "Need file" unless file
MDV::MarkdownViewer.new file
Gtk.main