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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a387d6369975b956b751fbf69c7dfdb0d62760d4497bfb043f84aa0d58c91477
4
- data.tar.gz: b29173023e06dacb9947902ca226ecf8ddaa7e051c9d7b32d78b639e71f1f8d4
3
+ metadata.gz: e8d2d3393236a3cf6218a8701076e08c7f59dc065c69f3976a74dcad3b3efd40
4
+ data.tar.gz: eeaaefe5903c28db554f3abced849bfb418122c77b4fbffa5a0d4a93c0ca136d
5
5
  SHA512:
6
- metadata.gz: 8fb32bca740d781f798d0aaa46fbc3da54e5e77307bc3225cab81cdc236c61a84e7c9af475cdb597b834de6c86704cdf3a1fad80c6482e0edd845b3a8926e761
7
- data.tar.gz: 70a4d0ec6b1d50c5b576783ffda6a2abfbc9e139fcc34b5ae2041635772c9417403f3b5a5fe57cab46a8e66c50d074586a154a437acb7e4b672227decc533d85
6
+ metadata.gz: 1ce20e4a2a89274f9bea4caa150520b910a7f32540923df1644e782d4f372772367fc21e245fe66f8c6bd6357768e9906c54ff1f34c9fc91472efd5b78fdc117
7
+ data.tar.gz: acd51b17e8c2d14ed95601b2efe52030a87269922f41ed9c6c9dbdc48b80b10f48d15880391f445be1534793f4753abb15b5170faa7b40968eaac25832751c1d
@@ -0,0 +1,5 @@
1
+ # Change log
2
+
3
+ # v1.0.0
4
+
5
+ - It works
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bundler-fast_git (0.4.1)
4
+ bundler-fast_git (1.0.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Bundler::FastGit
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
- TODO: Write usage instructions here
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
 
@@ -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.
@@ -4,11 +4,16 @@ module Bundler
4
4
  module FastGit
5
5
  module GitProxyPatch
6
6
  def git(command, *args)
7
- Bundler.ui.debug(command)
8
- if command.start_with?('clone')
9
- super(command.sub('--no-hardlinks', '') + ' --depth=1', *args)
10
- elsif command.start_with?('fetch')
11
- super(command + ' --depth=1', *args)
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
@@ -1,5 +1,5 @@
1
1
  module Bundler
2
2
  module FastGit
3
- VERSION = "0.4.1"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  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.1
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: