gitlab-gollum-rugged_adapter 0.4.4 → 0.4.4.1

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
  SHA1:
3
- metadata.gz: 602fa2fbdbdba48ed81659c65373c3f89f73d245
4
- data.tar.gz: 84d10ccbcc126577a331e8cf1c598da1f0716c95
3
+ metadata.gz: b65d506c0864d701816dbad994ada60f244a724f
4
+ data.tar.gz: 459eb1742eebae5bc2fe59f129612df371bad7d0
5
5
  SHA512:
6
- metadata.gz: 4d75da96e99eba43a6ac0aa4835df66f9716f2df4afe1b89d246f0ab23493c7e08411d20cab75ed5d63f8e5663e968e51f661dec99c7cf92529064079505e5ec
7
- data.tar.gz: b1686a416eaa3f0a609575042c1e5389d4b9bec438d0410e3cf31dc21accbb2dca0d1aeb3c5b7f99bd28c82c8044257667de04ff960a79ff7af94c9bafcf3832
6
+ metadata.gz: 02c6ad3e3df5a2775092d84c2de1898d9aa616d09081fd6ffd41c8602c2051684c4ec547ea4c8bf89492f771e083090143028ac87e5748f15f6318e4f89d85b1
7
+ data.tar.gz: 6dadd4c7fa7605e6128202e627c463794c1cbc5bde0f20e4ee33308fe93111ef082e1886fe8e84a0a99a35a72192d234de6d5b631785d08d3cd09c34a31668a3
@@ -433,11 +433,20 @@ module Gollum
433
433
  end
434
434
 
435
435
  def delete(path)
436
- @index.remove_all(path)
436
+ @index.remove(path)
437
437
  update_treemap(path, false)
438
438
  false
439
439
  end
440
440
 
441
+ def delete_all(glob)
442
+ # if the path start with escape it and avoid treating it as a comment
443
+ escaped_glob = glob[0] == '#' ? glob.sub('#', '\#') : glob
444
+
445
+ @index.remove_all(escaped_glob)
446
+ update_treemap(glob, false)
447
+ false
448
+ end
449
+
441
450
  def add(path, data)
442
451
  blob = @rugged_repo.write(data, :blob)
443
452
  @index.add(:path => path, :oid => blob, :mode => 0100644)
@@ -1,7 +1,7 @@
1
1
  module Gollum
2
2
  module Lib
3
3
  module Git
4
- VERSION = '0.4.4'
4
+ VERSION = '0.4.4.1'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-gollum-rugged_adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bart Kamphorst, Dawa Ometto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-12 00:00:00.000000000 Z
11
+ date: 2018-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rugged