Sha256: a67c826be249502e18b233fdae029cf815edcf8a695302b0768898a95c6f5d1a

Contents?: true

Size: 374 Bytes

Versions: 9

Compression:

Stored size: 374 Bytes

Contents

module CircleCI
  module CoverageReporter
    # Encapsulate a CircleCI artifact
    Artifact = Struct.new(:path, :pretty_path, :node_index, :url) do
      # @return [Boolean]
      def end_with?(value)
        pretty_path.end_with?(value)
      end

      # @return [String]
      def body
        @body ||= CoverageReporter.client.get(url).body
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
circleci-coverage_reporter-0.5.0 lib/circleci/coverage_reporter/artifact.rb
circleci-coverage_reporter-0.4.0 lib/circleci/coverage_reporter/artifact.rb
circleci-coverage_reporter-0.3.1 lib/circleci/coverage_reporter/artifact.rb
circleci-coverage_reporter-0.3.0 lib/circleci/coverage_reporter/artifact.rb
circleci-coverage_reporter-0.2.0 lib/circleci/coverage_reporter/artifact.rb
circleci-coverage_reporter-0.1.3 lib/circleci/coverage_reporter/artifact.rb
circleci-coverage_reporter-0.1.2 lib/circleci/coverage_reporter/artifact.rb
circleci-coverage_reporter-0.1.1 lib/circleci/coverage_reporter/artifact.rb
circleci-coverage_reporter-0.1.0 lib/circleci/coverage_reporter/artifact.rb