lib/synvert/cli.rb in synvert-0.4.0 vs lib/synvert/cli.rb in synvert-0.4.2

- old
+ new

@@ -1,8 +1,7 @@ # coding: utf-8 require 'optparse' -require 'open-uri' module Synvert # Synvert command line interface. class CLI # Initialize the cli and run. @@ -159,8 +158,12 @@ # sync snippets def sync_snippets Snippet.sync puts "synvert snippets are synced" + core_version = Snippet.fetch_core_version + if Gem::Version.new(core_version) > Gem::Version.new(Synvert::Core::VERSION) + puts "synvert-core is updated, please install synvert-core #{core_version}" + end end end end