From fa87c6372c97191bd6f5640906b9463cd2c494c5 Mon Sep 17 00:00:00 2001 From: Thomas Thomassen Date: Tue, 26 Jun 2018 18:27:12 +0200 Subject: [PATCH] Quick-fix for #28 and #30. Missing tests. --- lib/skippy/installer/git.rb | 2 +- lib/skippy/module_manager.rb | 2 +- lib/skippy/version.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/skippy/installer/git.rb b/lib/skippy/installer/git.rb index e7f0e88..8db56b7 100644 --- a/lib/skippy/installer/git.rb +++ b/lib/skippy/installer/git.rb @@ -62,7 +62,7 @@ def update_repository(target) # @param [Git::Base] # @param [String] branch def checkout_branch(git, branch) - branches = git.braches.map(&:name) + branches = git.branches.map(&:name) info "Branches: #{branches.inspect}" unless branches.include?(branch) raise Skippy::BranchNotFound, "Found no branch named: '#{branch}'" diff --git a/lib/skippy/module_manager.rb b/lib/skippy/module_manager.rb index 128018e..8e7f5d4 100644 --- a/lib/skippy/module_manager.rb +++ b/lib/skippy/module_manager.rb @@ -150,7 +150,7 @@ def copy_file(lib_module, source, target) transform_module(content) File.write(target, content) else - File.copy(source, target) + FileUtils.copy(source, target) end end diff --git a/lib/skippy/version.rb b/lib/skippy/version.rb index 72ca0c0..ce9569d 100644 --- a/lib/skippy/version.rb +++ b/lib/skippy/version.rb @@ -1,5 +1,5 @@ module Skippy - VERSION = '0.4.0.a'.freeze + VERSION = '0.4.1.a'.freeze end