git_commands 3.3.2 → 3.3.3

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: 9273b6fcf3e6160c02ab5ace87657dc7cbea7e25
4
- data.tar.gz: dc7c1131ede3796899f45e7832880816215dc6a3
3
+ metadata.gz: 4ad33ca845ac648e2761f3db92d014af3f6ace5d
4
+ data.tar.gz: 6ee733b4cd530e14eb84b5a8e06bcadbdb7f477d
5
5
  SHA512:
6
- metadata.gz: 6fb9e1376c354ea33113914a22775d9816ed133f905ca790cafbe890a5a6a60b0d09ccf293df7317cb6cd3043f4a6795fa26a3a0a4205ad11db16569958c3a26
7
- data.tar.gz: 08d54209eedec2ed4beb5331382f54cf8f8cb5890326059302854c81af0d5135c5962f64550b97fb32fbb32735f2676f2bf47bb4007ead9adc892663e0b666cc
6
+ metadata.gz: 12627a0f046695c1e314c965134ec00c00ffa143317e43a0839fccc1f9fffac08ed3b65b34f952765c3fb2e25328ab7856e73d79dab324d6290630967a05a223
7
+ data.tar.gz: bf319f1c824ffa149dda539385b81b1a8f2ed8ab969733d2e56fca6f15ffd22884acc46a1cd231c6def4b3b440c345a7a68ccc8ffb8117e0fdbc0dd92d843148
@@ -81,13 +81,6 @@ module GitCommands
81
81
  `git pull`
82
82
  end
83
83
 
84
- private def rebase_with_master
85
- `git rebase origin/#{Branch::MASTER}`
86
- return true unless @repo.locked?
87
- @repo.unlock
88
- error("Got conflicts, aborting rebase!")
89
- end
90
-
91
84
  private def rebase_with(branch = "#{Branch::ORIGIN}#{Branch::MASTER}")
92
85
  `git rebase #{branch}`
93
86
  return true unless @repo.locked?
@@ -19,27 +19,22 @@ module GitCommands
19
19
 
20
20
  def locked?
21
21
  LOCKING_FILES.any? do |name|
22
- File.exists?(@path.join(".git", name))
22
+ @path.join(".git", name).exist?
23
23
  end
24
24
  end
25
25
 
26
26
  def unlock
27
- Dir.chdir(@path) do
27
+ Dir.chdir(self) do
28
28
  `git rebase --abort`
29
29
  end
30
30
  end
31
31
 
32
32
  private def valid?
33
- return false unless exists?
34
- work_tree?
35
- end
36
-
37
- private def exists?
38
- File.directory?(@path)
33
+ @path.directory? && work_tree?
39
34
  end
40
35
 
41
36
  private def work_tree?
42
- Dir.chdir(@path) do
37
+ Dir.chdir(self) do
43
38
  `git rev-parse --is-inside-work-tree 2> /dev/null`.strip == "true"
44
39
  end
45
40
  end
@@ -1,3 +1,3 @@
1
1
  module GitCommands
2
- VERSION = "3.3.2"
2
+ VERSION = "3.3.3"
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.3.2
4
+ version: 3.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - costajob