Skip to content

Commit d52796a

Browse files
authored
Merge pull request square#35 from square/segiddins/use-terrapin
Update to use Terrapin instead of Cocaine
2 parents de09d5e + 9556166 commit d52796a

15 files changed

+123
-93
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
*:lock
12
*.gem

.rubocop.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
inherit_from: .rubocop_todo.yml
22

33
AllCops:
4-
Include:
5-
- Rakefile
4+
TargetRubyVersion: 2.2
65

7-
Style/FileName:
6+
Naming/FileName:
87
Exclude:
98
- 'bin/git-fastclone'
109
- 'lib/git-fastclone.rb'

.rubocop_todo.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,36 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2016-03-29 21:03:41 -0700 using RuboCop version 0.35.1.
3+
# on 2019-01-17 09:51:29 -0800 using RuboCop version 0.63.0.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
77
# versions of RuboCop, may require this file to be generated again.
88

9+
# Offense count: 1
10+
Lint/AmbiguousBlockAssociation:
11+
Exclude:
12+
- 'spec/git_fastclone_runner_spec.rb'
13+
914
# Offense count: 5
1015
Metrics/AbcSize:
1116
Max: 25
1217

18+
# Offense count: 4
19+
# Configuration parameters: CountComments, ExcludedMethods.
20+
# ExcludedMethods: refine
21+
Metrics/BlockLength:
22+
Max: 216
23+
1324
# Offense count: 1
1425
Metrics/CyclomaticComplexity:
1526
Max: 7
1627

1728
# Offense count: 1
1829
Metrics/PerceivedComplexity:
1930
Max: 8
31+
32+
# Offense count: 6
33+
# Configuration parameters: .
34+
# SupportedStyles: inline, group
35+
Style/AccessModifierDeclarations:
36+
EnforcedStyle: inline

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ language:
22
ruby
33

44
rvm:
5+
- 2.1.3
56
- 2.2
7+
- 2.3.1
8+
- 2.6.0

Gemfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1+
# frozen_string_literal: true
2+
13
source 'https://rubygems.org'
24

35
group :development do
46
gem 'bundler'
57
gem 'rake'
6-
gem 'rubocop'
8+
gem 'rubocop', install_if: -> { RUBY_VERSION >= '2.3' }
79
end
810

911
gem 'rspec'
10-
gem 'logger'
1112

1213
gemspec

Gemfile.lock

Lines changed: 16 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,22 @@
11
PATH
22
remote: .
33
specs:
4-
git-fastclone (1.1.2)
5-
cocaine
4+
git-fastclone (1.2.0)
65
colorize
6+
terrapin (~> 0.6.0)
77

88
GEM
99
remote: https://rubygems.org/
1010
specs:
11-
activesupport (5.0.1)
12-
concurrent-ruby (~> 1.0, >= 1.0.2)
13-
i18n (~> 0.7)
14-
minitest (~> 5.1)
15-
tzinfo (~> 1.1)
1611
ast (2.4.0)
17-
climate_control (0.0.3)
18-
activesupport (>= 3.0)
19-
cocaine (0.5.8)
20-
climate_control (>= 0.0.3, < 1.0)
12+
climate_control (0.2.0)
2113
colorize (0.8.1)
22-
concurrent-ruby (1.0.4)
2314
diff-lcs (1.2.5)
24-
i18n (0.7.0)
25-
logger (1.2.8)
26-
minitest (5.10.1)
27-
parallel (1.12.1)
28-
parser (2.5.0.5)
15+
jaro_winkler (1.5.2)
16+
parallel (1.13.0)
17+
parser (2.6.0.0)
2918
ast (~> 2.4.0)
30-
powerpack (0.1.1)
19+
powerpack (0.1.2)
3120
rainbow (3.0.0)
3221
rake (10.4.2)
3322
rspec (3.4.0)
@@ -43,29 +32,28 @@ GEM
4332
diff-lcs (>= 1.2.0, < 2.0)
4433
rspec-support (~> 3.4.0)
4534
rspec-support (3.4.1)
46-
rubocop (0.54.0)
35+
rubocop (0.63.0)
36+
jaro_winkler (~> 1.5.1)
4737
parallel (~> 1.10)
48-
parser (>= 2.5)
38+
parser (>= 2.5, != 2.5.1.1)
4939
powerpack (~> 0.1)
5040
rainbow (>= 2.2.2, < 4.0)
5141
ruby-progressbar (~> 1.7)
52-
unicode-display_width (~> 1.0, >= 1.0.1)
53-
ruby-progressbar (1.9.0)
54-
thread_safe (0.3.5)
55-
tzinfo (1.2.2)
56-
thread_safe (~> 0.1)
57-
unicode-display_width (1.3.0)
42+
unicode-display_width (~> 1.4.0)
43+
ruby-progressbar (1.10.0)
44+
terrapin (0.6.0)
45+
climate_control (>= 0.0.3, < 1.0)
46+
unicode-display_width (1.4.1)
5847

5948
PLATFORMS
6049
ruby
6150

6251
DEPENDENCIES
6352
bundler
6453
git-fastclone!
65-
logger
6654
rake
6755
rspec
6856
rubocop
6957

7058
BUNDLED WITH
71-
1.16.1
59+
1.17.3

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Before accepting any pull requests, we need you to sign an [Individual Contribut
7575

7676
Acknowledgements
7777
----------------
78-
[thoughtbot/cocaine][3] - jyurek and collaborators
78+
[thoughtbot/terrapin][3] - jyurek and collaborators
7979

8080
[robolson][4]
8181

@@ -104,7 +104,7 @@ License
104104

105105
[1]: https://corner.squareup.com/2015/11/fastclone.html
106106
[2]: https://docs.google.com/a/squareup.com/forms/d/13WR8m5uZ2nAkJH41k7GdVBXAAbzDk00vxtEYjd6Imzg/viewform?formkey=dDViT2xzUHAwRkI3X3k5Z0lQM091OGc6MQ&ndplr=1
107-
[3]: https://github.com/thoughtbot/cocaine
107+
[3]: https://github.com/thoughtbot/terrapin
108108
[4]: https://github.com/robolson
109109
[5]: https://github.com/ianchesal
110110
[6]: https://github.com/mtauraso

Rakefile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1-
# encoding: utf-8
1+
# frozen_string_literal: true
22

33
require 'bundler/setup'
44

5-
task default: %w(spec rubocop)
5+
task default: %w[spec]
66

77
require 'rspec/core/rake_task'
88
RSpec::Core::RakeTask.new
99

10-
require 'rubocop/rake_task'
11-
RuboCop::RakeTask.new
10+
begin
11+
require 'rubocop/rake_task'
12+
RuboCop::RakeTask.new
13+
task default: :rubocop
14+
rescue LoadError => e
15+
raise unless e.path == 'rubocop/rake_task'
16+
end

bin/git-fastclone

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
23

34
# Copyright 2015 Square Inc.
45

git-fastclone.gemspec

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
# Copyright 2015 Square Inc.
24

35
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,24 +16,26 @@
1416

1517
require 'date'
1618

17-
$:.push File.expand_path("../lib", __FILE__)
19+
$LOAD_PATH.push File.expand_path('lib', __dir__)
1820
require 'git-fastclone/version'
1921

2022
Gem::Specification.new do |gem|
2123
gem.name = 'git-fastclone'
2224
gem.version = GitFastCloneVersion::VERSION
2325
gem.date = Date.today.to_s
24-
gem.summary = %q(git-clone --recursive on steroids!)
25-
gem.description = %q(A git command that uses reference repositories and threading to quickly and recursively clone repositories with many nested submodules)
26+
gem.summary = 'git-clone --recursive on steroids!'
27+
gem.description = 'A git command that uses reference repositories and threading to quickly' \
28+
'and recursively clone repositories with many nested submodules'
2629
gem.authors = ['Michael Tauraso', 'James Chang']
2730
28-
gem.files = Dir['Rakefile', '{bin,lib,man,test,spec}/**/*', 'README*', 'LICENSE*'] & `git ls-files -z`.split("\0")
29-
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
31+
gem.files = Dir['Rakefile', '{bin,lib,man,test,spec}/**/*', 'README*', 'LICENSE*'] &
32+
`git ls-files -z`.split("\0")
33+
gem.executables = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
3034
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
3135
gem.require_paths = ['lib']
3236
gem.homepage = 'http://square.github.io/git-fastclone/'
3337
gem.license = 'Apache'
3438

35-
gem.add_runtime_dependency 'cocaine'
3639
gem.add_runtime_dependency 'colorize'
40+
gem.add_runtime_dependency 'terrapin', '~> 0.6.0'
3741
end

0 commit comments

Comments
 (0)