Sha256: c554c882305a0af287f7021b0e42639690a79b9cc05d228f3cbb675f362ff252

Contents?: true

Size: 603 Bytes

Versions: 57

Compression:

Stored size: 603 Bytes

Contents

module NdrDevSupport
  module RakeCI
    # This helper persists the SimpleCov::Result
    class SimpleCovHelper
      require 'rugged'
      require 'simplecov'
      require_relative 'concerns/commit_metadata_persistable'

      include CommitMetadataPersistable

      def commit
        return @commit if @commit

        repo = Rugged::Repository.new('.')
        @commit = repo.lookup(repo.head.target_id)
      end

      def load_current_result
        load_current_commit_data
      end

      def save_current_result(result)
        save_current_commit_data(result)
      end
    end
  end
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
ndr_dev_support-6.1.0 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-6.0.4 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-6.0.3 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-6.0.2 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-6.0.1 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-6.0.0 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.10.2 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.10.1 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.10.0 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.9.0 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.8.2 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.8.1 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.8.0 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.7.1 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.7.0 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.6.0 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.5.0 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.4.8 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.4.7 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.4.6 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb