Sha256: 2269f4b4fc86a23aa4b53d051d7ca9db5462351adeb4f8a0345b8a20132e6c3f

Contents?: true

Size: 340 Bytes

Versions: 9

Compression:

Stored size: 340 Bytes

Contents

require 'git'

# TestDiff module
module TestDiff
  # Class used to calculate the tests than need to be run
  class TrackBuild
    def initialize(sha)
      @sha = sha
    end

    def run
      git = Git.open('.')
      sha = git.object(@sha || 'HEAD').sha
      File.open('test_diff_coverage/sha', 'w+') { |f| f << sha }
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
test_diff-0.3.4 lib/test_diff/track_build.rb
test_diff-0.3.3 lib/test_diff/track_build.rb
test_diff-0.3.2 lib/test_diff/track_build.rb
test_diff-0.3.1 lib/test_diff/track_build.rb
test_diff-0.3.0 lib/test_diff/track_build.rb
test_diff-0.2.0 lib/test_diff/track_build.rb
test_diff-0.1.2 lib/test_diff/track_build.rb
test_diff-0.1.1 lib/test_diff/track_build.rb
test_diff-0.1.0 lib/test_diff/track_build.rb