vtasks 0.0.14 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/lib/vtasks/utils/git.rb +13 -0
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e8f2f3b4e5d005ff63359982defb0cc8a998d1253cbec49913886ef7beafd36
4
- data.tar.gz: 75c7e96664f1900f43690edbf1d477eb2ada6b32af86820ff63b11e94957c55e
3
+ metadata.gz: bf6ec4c38b47a3aba51ce6d41e33ea65557cc7e713748034c69c17f05d87716b
4
+ data.tar.gz: adfc75d44061aad0c738a7eabb1731e46fb23153948c8e8c1907b0b538d116e9
5
5
  SHA512:
6
- metadata.gz: 159911583f97f22025d0ed7f5c3ebe9eddf96f7de378173a5647a4662608c612bb293a0a61b9cafef7cb74638252dfd32f8d56a389850711e06c8c9edbbeb076
7
- data.tar.gz: 3e4e4b3457b1d54987ec0cd28dd0e8e84494ff5bc6efcef8a5d9778dfdbb0213db6d638ccc5bd34eb269a62b15f8fccf137fc04ec545c9470f511f3feb70e843
6
+ metadata.gz: 0480457cbd810baa96a9ba2c7261782baff124cb97f7c5de39b68f03ccccf6607fcbfaad42416cb513468a338c4fc98671d004fbf4b0e87505bb0021c5f1a2f0
7
+ data.tar.gz: 5a37d09fb4c5e71cfc23f98ccfbdcdfab37172bb7edae9381cab0880a9fbf49e0d85d82ca3f799617ff74f459590277fb5ec565ce7bc8acc47f985cbd0b0ec2d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Change Log
2
2
 
3
+ ## [v0.0.15](https://github.com/vladgh/vtasks/tree/v0.0.15) (2018-10-12)
4
+ [Full Changelog](https://github.com/vladgh/vtasks/compare/v0.0.14...v0.0.15)
5
+
6
+ **Implemented enhancements:**
7
+
8
+ - Add git method to deepen the repo [\#27](https://github.com/vladgh/vtasks/issues/27)
9
+
3
10
  ## [v0.0.14](https://github.com/vladgh/vtasks/tree/v0.0.14) (2018-10-12)
4
11
  [Full Changelog](https://github.com/vladgh/vtasks/compare/v0.0.13...v0.0.14)
5
12
 
@@ -41,6 +41,19 @@ module Git
41
41
 
42
42
  true
43
43
  end
44
+
45
+ # Deepen repository history
46
+ # In case there is a shallow clone (only the tip of the specified branch). This has the advantage of minimizing the amount of data transfer necessary from the repository and speeding up the build because it pulls only the minimal code necessary.
47
+ # Because of this, if you need to perform a custom action that relies on a different branch, you won’t be able to checkout that branch, unless you do one of the following:
48
+ # $ git pull --depth=50
49
+ # $ git fetch --unshallow origin
50
+ def git_deepen_repo
51
+ git_dir = `git rev-parse --git-dir`.strip
52
+ if File.file?("#{git_dir}/shallow")
53
+ info 'Deepen repository history'
54
+ sh "git fetch --unshallow origin"
55
+ end
56
+ end
44
57
  end # module Git
45
58
  end # module Utils
46
59
  end # module Vtasks
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vtasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vlad Ghinea