lib/synvert/cli.rb in synvert-1.2.2 vs lib/synvert/cli.rb in synvert-1.2.4

- old
+ new

@@ -1,11 +1,9 @@ # frozen_string_literal: true require 'optparse' require 'json' -require 'uri' -require 'open-uri' require 'fileutils' module Synvert # Synvert command line interface. class CLI @@ -145,11 +143,11 @@ end # List and print all available rewriters. def list_available_rewriters if Core::Rewriter.availables.empty? - puts "There is no snippet under #{default_snippets_name}, please run `synvert-ruby --sync` to fetch snippets." + puts "There is no snippet under #{default_snippets_home}, please run `synvert-ruby --sync` to fetch snippets." return end if plain_output? Core::Rewriter.availables.each do |group, rewriters| @@ -222,14 +220,9 @@ # sync snippets def sync_snippets Snippet.new(default_snippets_home).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, installing synvert-core #{core_version}" - system('gem install synvert-core') - end end # eval snippet name by user input def eval_snippet_name_by_input(input) eval(input)