danger-wcc 0.0.3 → 0.0.4

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/version.rb +1 -1
  3. data/lib/wcc/utils.rb +3 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 822cbea6b3d318ccd075ef94c306dff86f5b698f
4
- data.tar.gz: ba50fe979f5d6cfd95cc7b5d55c4599cb7485e45
3
+ metadata.gz: dad1e51611091d1975c1e79440afed906f5d2119
4
+ data.tar.gz: 608950050d3e357cbd078ac47e2fb1afa89e1086
5
5
  SHA512:
6
- metadata.gz: 4e4d2b1be606ce15f16feb52cfda344c032da630940fd57028c13e641e2f39902064c01f49404c10280e1e201a1894ca42514c295189da55bfcf37ac6303404e
7
- data.tar.gz: ba579966648a14056ea708c522235058cda132b556de9fa3c04d8277b0be08f57ad37d7c2c5688c5cb4740d66bd20d1c4eac82d66d8510a1b22256bc2d09e5df
6
+ metadata.gz: e8bb8cd98d97f1664c34e54c893dc8995171317094602fc7034fe37adeca823230ced817c6fd7fd47247edbda6c1de250ab953c74a8f61dc0f3d2dc91ce7e31e
7
+ data.tar.gz: 48b2f49e8a642e049e2ae34ff85bf3053aea695c4ad3404de4db4c3f828921941dbc929fe1f7cc2dfe82be656cf1c18f8de5aff7198b0bf1025566287e9a9d06
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DangerWCC
4
- VERSION = '0.0.3'
4
+ VERSION = '0.0.4'
5
5
  end
@@ -102,10 +102,12 @@ module Utils
102
102
  def with_revision(revision)
103
103
  Dir.mktmpdir do |dir|
104
104
  logger.debug "Checking out revision #{revision} into #{dir}"
105
- system "git --work-tree=#{dir} checkout #{revision.strip} -- ."
105
+ system "git worktree add #{dir} #{revision.strip}"
106
106
 
107
107
  yield(dir)
108
108
  end
109
+ ensure
110
+ system 'git worktree prune'
109
111
  end
110
112
 
111
113
  # Creates a git-format diff of the two strings by writing them to temp files
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger-wcc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Watermark Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-25 00:00:00.000000000 Z
11
+ date: 2018-03-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: brakeman