git-fastclone 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7bf187b8673e91a3020f57e8c8160da9f9411b6f
4
- data.tar.gz: a152d68f2366421d048522a436f86bfe91c189d7
3
+ metadata.gz: fa8ba52df01d74a3798fed72acddffa3bc992974
4
+ data.tar.gz: b0f49213f8e3f587ed12e1d20d40a449f13c7ee7
5
5
  SHA512:
6
- metadata.gz: 5b830ddaece88719818f84f438546c62c01ec07a5a75eea884a01b403b13d8b2c51ba2d3b93aa521c4aabf421fa5b49ff426929bed4f343a4fb0744a4ea91f1e
7
- data.tar.gz: 721878ddc71145362d772cd8a0312a51934c109b4f54ee6039c80c85e660a4bdc852b6e9da8f112e545c451115573a480ed3dc1557b4cb55e8ed1d94b797baba
6
+ metadata.gz: 816d7ad30d46c24314c55d081cd09e067582a5843859bfd250e77634533048dc8a67f1332c36a77d8301a0bca144cd6b0d80f6540da5d083665e3853660c20b6
7
+ data.tar.gz: af9c0c61d35255847664418f66e651a4793128ff9bd6be39b9bfb45927028006caa1bd73e09e77ac67ef01facd0bf952aa35be56ce57161479060c2e2dee872b
@@ -16,7 +16,6 @@ require 'optparse'
16
16
  require 'fileutils'
17
17
  require 'logger'
18
18
  require 'cocaine'
19
- require 'colorize'
20
19
 
21
20
  # Contains helper module UrlHelper and execution class GitFastClone::Runner
22
21
  module GitFastClone
@@ -57,6 +56,8 @@ module GitFastClone
57
56
  # index will be incrementally updated. This prevents a large amount of data
58
57
  # copying.
59
58
  class Runner
59
+ require 'colorize'
60
+
60
61
  include GitFastClone::UrlHelper
61
62
 
62
63
  DEFAULT_REFERENCE_REPO_DIR = '/var/tmp/git-fastclone/reference'
@@ -93,8 +94,11 @@ module GitFastClone
93
94
  end
94
95
 
95
96
  def run
97
+ require_relative './git-fastclone/version'
98
+ puts "git-fastclone #{GitFastCloneVersion::VERSION}".yellow
99
+
96
100
  url, path, options = parse_inputs
97
- puts 'Cloning'.bold + " #{url} to #{File.join(abs_clone_path, path)}"
101
+ puts 'Cloning'.bold + " #{path_from_git_url(url)} to #{File.join(abs_clone_path, path)}"
98
102
  Cocaine::CommandLine.environment['GIT_ALLOW_PROTOCOL'] =
99
103
  ENV['GIT_ALLOW_PROTOCOL'] || DEFAULT_GIT_ALLOW_PROTOCOL
100
104
  clone(url, options[:branch], path)
@@ -114,6 +118,9 @@ module GitFastClone
114
118
  opts.on('-v', '--verbose', 'Verbose mode') do
115
119
  self.verbose = true
116
120
  self.logger = Logger.new(STDOUT)
121
+ logger.formatter = proc do |_severity, _datetime, _progname, msg|
122
+ "#{msg}\n"
123
+ end
117
124
  Cocaine::CommandLine.logger = logger
118
125
  end
119
126
  end.parse!
@@ -1,3 +1,3 @@
1
1
  module GitFastCloneVersion
2
- VERSION = '1.0.8'
2
+ VERSION = '1.0.9'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-fastclone
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Tauraso
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  requirements: []
80
80
  rubyforge_project:
81
- rubygems_version: 2.2.2
81
+ rubygems_version: 2.5.1
82
82
  signing_key:
83
83
  specification_version: 4
84
84
  summary: git-clone --recursive on steroids!