gitlab_git 1.0.5 → 1.0.6

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: 34d157065d751a14f3dfd7b8547ab09709e9fcde
4
- data.tar.gz: 015035d1d0a6df46905f847b4b4b76c068c8cc10
3
+ metadata.gz: 7d8d13a9a393763fd7569f4eb2542aaaace4f82a
4
+ data.tar.gz: 2eb533597ff16b061169cd8c2c5d1890f1171492
5
5
  SHA512:
6
- metadata.gz: 77aa972bdf8358c7d483af387fbe353ca4dfca55ade4834830167ccbe299470b2f4e2ae8f557ccae986f3017b9502a4bf68642ea0652e05e8523882fd6e99697
7
- data.tar.gz: 63ee63de5f12c1607d096ac9474a502d519a141ea4d2a07c18cf622b11014505f7bcc852c94b54e362fddec657ce82b4613a75c0bc0c804952e089a295a52917
6
+ metadata.gz: d0c930ac693ae587b6870baa0c47550281b8c73277b5c87a4cd3afe7dc59f10811b7cc9e5ce916d3ebe7861990693feb4b96a881c100da7c2df599030f51750f
7
+ data.tar.gz: 720844c0a7daca609101d1626b01c642f7c320912f6540688e68e9671b7d13dc166f1c46c40b6e5b3ae22ce4692feddeea0eb82f61618869fea53c1f89fa1e1e
@@ -63,7 +63,7 @@ module Gitlab
63
63
  lines.shift
64
64
  end
65
65
  lines.pop if lines.last =~ /^[\d.]+$/ # Git version
66
- lines.pop if lines.last == "-- " # end of diff
66
+ lines.pop if lines.last == "-- " # end of diff
67
67
  lines.join("\n")
68
68
  end
69
69
 
@@ -1,3 +1,5 @@
1
+ require 'open3'
2
+
1
3
  module Gitlab
2
4
  module Git
3
5
  module Popen
@@ -125,7 +125,7 @@ module Gitlab
125
125
  end
126
126
 
127
127
  def heads
128
- @heads ||= repo.heads
128
+ @heads ||= repo.heads.sort_by(&:name)
129
129
  end
130
130
 
131
131
  def tree(fcommit, path = nil)
@@ -29,6 +29,10 @@ module Gitlab
29
29
  entries.select { |t| t.is_a?(Grit::Blob) }
30
30
  end
31
31
 
32
+ def submodules
33
+ entries.select { |t| t.is_a?(Grit::Submodule) }
34
+ end
35
+
32
36
  def is_blob?
33
37
  raw_tree.is_a?(Grit::Blob)
34
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab_git
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitriy Zaporozhets