Sha256: 66b59c5718e2e65862ae30c990df96c3ec5b7f21050e18be81f34995eb1c5808
Contents?: true
Size: 303 Bytes
Versions: 3
Compression:
Stored size: 303 Bytes
Contents
require 'time' module RspecProfiling module VCS class Git def branch `git rev-parse --abbrev-ref HEAD`.chomp end def sha `git rev-parse HEAD`.chomp end def time Time.parse `git show -s --format=%ci #{sha}`.chomp end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rspec_profiling-0.0.9 | lib/rspec_profiling/vcs/git.rb |
rspec_profiling-0.0.8 | lib/rspec_profiling/vcs/git.rb |
rspec_profiling-0.0.7 | lib/rspec_profiling/vcs/git.rb |