git_commands 3.2.8 → 3.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fbe7c65035ffcdc39c81b47463b9314aa07ab8a3
4
- data.tar.gz: e0ce45188c080726af5ce804af1da49f2c5ed874
3
+ metadata.gz: cc41c685ee29b19f620cbf0048aabc586edd6afe
4
+ data.tar.gz: b0f79689c6acfff02ba0063949758c9882b56047
5
5
  SHA512:
6
- metadata.gz: 0f165f80fcdb236a9da0549bd496f23573e996a3a8c4252a5b22e069350ac0007fd75268e585041eb6bb10546db5f597bc51eb48ae10f48bfa73e5736f3b266a
7
- data.tar.gz: 9defaf6c85f58a02fcfe511e358443b4ff472074911f0ccea4ef4eca31c80f57e7416f42b990def0cae5b4b75bcada4107c23aed996923578aa0e535448f79ea
6
+ metadata.gz: 68a1bfc9f4ebd26648c29150a8d12a019cee51338d39e05de19bdae3202bdd74ea549595b644d710ed9ffef5655bacacc9dbba0003e6a66e24f08eb0d232d812
7
+ data.tar.gz: d6328e5ff3d553be85d27572e62160b7bafbd727af9e01f0ec45ead34e6415aaf076359ed290da75dc5d8620f874c325d595bc923d0163375657a375b523beb3
@@ -53,21 +53,21 @@ module GitCommands
53
53
 
54
54
  def aggregate
55
55
  temp = "temp/#{@timestamp}"
56
- aggregate = "release/#{@timestamp}"
57
- confirm("Aggregate branches into #{aggregate}") do
56
+ release = "release/#{@timestamp}"
57
+ confirm("Aggregate branches into #{release}") do
58
58
  enter_repo do
59
- `git branch #{aggregate}`
59
+ `git branch #{release}`
60
60
  @branches.each do |branch|
61
61
  warning("Merging branch: #{branch}")
62
62
  `git checkout -b #{temp} origin/#{branch} --no-track`
63
- exit unless rebase_with_master
64
- `git rebase #{aggregate}`
65
- `git checkout #{aggregate}`
63
+ remove_locals([temp, release]) && exit unless rebase_with_master
64
+ `git rebase #{release}`
65
+ `git checkout #{release}`
66
66
  `git merge #{temp}`
67
67
  `git branch -D #{temp}`
68
68
  end
69
69
  end
70
- success("#{aggregate} branch created")
70
+ success("#{release} branch created")
71
71
  end
72
72
  end
73
73
 
@@ -98,9 +98,9 @@ module GitCommands
98
98
  end
99
99
  end
100
100
 
101
- private def remove_locals
101
+ private def remove_locals(branches = @branches)
102
102
  `git checkout #{Branch::MASTER}`
103
- @branches.each do |branch|
103
+ branches.each do |branch|
104
104
  `git branch -D #{branch}`
105
105
  end
106
106
  end
@@ -1,3 +1,3 @@
1
1
  module GitCommands
2
- VERSION = "3.2.8"
2
+ VERSION = "3.2.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_commands
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.8
4
+ version: 3.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - costajob