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-5.4.5 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.4.4 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.4.3 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.4.2 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.4.1 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.4.0 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.3.1 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.3.0 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.2.0 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.1.0 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.0.1 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-5.0.0 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-4.2.1 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-4.2.0 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-4.1.3 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-4.1.2 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb
ndr_dev_support-4.1.1 lib/ndr_dev_support/rake_ci/simple_cov_helper.rb