bundler-fast_git 0.4.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +8 -6
- data/bundler-fast_git.gemspec +1 -1
- data/lib/bundler/fast_git.rb +10 -8
- data/lib/bundler/fast_git/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8d2d3393236a3cf6218a8701076e08c7f59dc065c69f3976a74dcad3b3efd40
|
4
|
+
data.tar.gz: eeaaefe5903c28db554f3abced849bfb418122c77b4fbffa5a0d4a93c0ca136d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ce20e4a2a89274f9bea4caa150520b910a7f32540923df1644e782d4f372772367fc21e245fe66f8c6bd6357768e9906c54ff1f34c9fc91472efd5b78fdc117
|
7
|
+
data.tar.gz: acd51b17e8c2d14ed95601b2efe52030a87269922f41ed9c6c9dbdc48b80b10f48d15880391f445be1534793f4753abb15b5170faa7b40968eaac25832751c1d
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
#
|
1
|
+
# bundler-fast_git
|
2
2
|
|
3
3
|
## Installation
|
4
4
|
|
@@ -12,13 +12,15 @@ And then execute:
|
|
12
12
|
|
13
13
|
$ bundle install
|
14
14
|
|
15
|
-
Or install it yourself as:
|
16
|
-
|
17
|
-
$ gem install bundler-fast_git
|
18
|
-
|
19
15
|
## Usage
|
20
16
|
|
21
|
-
|
17
|
+
Just use `git` option as usual.
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
gem "rails", git: "https://github.com/rails/rails"
|
21
|
+
# or
|
22
|
+
# gem "rails", github: "rails/rails"
|
23
|
+
```
|
22
24
|
|
23
25
|
## Development
|
24
26
|
|
data/bundler-fast_git.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
|
15
15
|
spec.metadata["homepage_uri"] = spec.homepage
|
16
16
|
spec.metadata["source_code_uri"] = "https://github.com/mtsmfm/bundler-fast_git"
|
17
|
-
spec.metadata["changelog_uri"] = "https://github.com/mtsmfm/bundler-fast_git"
|
17
|
+
spec.metadata["changelog_uri"] = "https://github.com/mtsmfm/bundler-fast_git/blob/master/CHANGELOG.md"
|
18
18
|
|
19
19
|
# Specify which files should be added to the gem when it is released.
|
20
20
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
data/lib/bundler/fast_git.rb
CHANGED
@@ -4,11 +4,16 @@ module Bundler
|
|
4
4
|
module FastGit
|
5
5
|
module GitProxyPatch
|
6
6
|
def git(command, *args)
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
7
|
+
new_command =
|
8
|
+
if command.start_with?('clone')
|
9
|
+
new_command = command.sub('--no-hardlinks', '') + ' --depth=1'
|
10
|
+
elsif command.start_with?('fetch')
|
11
|
+
new_command = command + ' --depth=1'
|
12
|
+
end
|
13
|
+
|
14
|
+
if new_command
|
15
|
+
Bundler.ui.debug("[bundler-fast_git] Running #{new_command}")
|
16
|
+
super(new_command, *args)
|
12
17
|
else
|
13
18
|
super
|
14
19
|
end
|
@@ -18,8 +23,5 @@ module Bundler
|
|
18
23
|
Bundler::Plugin.add_hook('before-install-all') do |dependencies|
|
19
24
|
Bundler::Source::Git::GitProxy.prepend(GitProxyPatch)
|
20
25
|
end
|
21
|
-
|
22
|
-
class Error < StandardError; end
|
23
|
-
# Your code goes here...
|
24
26
|
end
|
25
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bundler-fast_git
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fumiaki MATSUSHIMA
|
@@ -21,6 +21,7 @@ files:
|
|
21
21
|
- ".devcontainer/devcontainer.json"
|
22
22
|
- ".devcontainer/docker-compose.yml"
|
23
23
|
- ".gitignore"
|
24
|
+
- CHANGELOG.md
|
24
25
|
- CODE_OF_CONDUCT.md
|
25
26
|
- Gemfile
|
26
27
|
- Gemfile.lock
|
@@ -39,7 +40,7 @@ licenses:
|
|
39
40
|
metadata:
|
40
41
|
homepage_uri: https://github.com/mtsmfm/bundler-fast_git
|
41
42
|
source_code_uri: https://github.com/mtsmfm/bundler-fast_git
|
42
|
-
changelog_uri: https://github.com/mtsmfm/bundler-fast_git
|
43
|
+
changelog_uri: https://github.com/mtsmfm/bundler-fast_git/blob/master/CHANGELOG.md
|
43
44
|
post_install_message:
|
44
45
|
rdoc_options: []
|
45
46
|
require_paths:
|