lib/synvert/snippet.rb in synvert-0.4.2 vs lib/synvert/snippet.rb in synvert-0.5.0
- old
+ new
@@ -8,12 +8,12 @@
# synchronize snippets from github.
def self.sync
snippets_path = Core::Configuration.instance.get :default_snippets_path
if File.exist?(snippets_path)
FileUtils.cd snippets_path
- `git pull --rebase --quiet`
+ system("git pull --rebase")
else
- `git clone https://github.com/xinminlabs/synvert-snippets.git #{snippets_path} --quiet`
+ system("git clone https://github.com/xinminlabs/synvert-snippets.git #{snippets_path}")
end
end
def self.fetch_core_version
content = open("https://rubygems.org/api/v1/versions/synvert-core.json").read