Sha256: 5aadcc4b7d035cc3f37acd7a9d260ed7ab4a8c08cd34817866eab0263bd1780f

Contents?: true

Size: 1.29 KB

Versions: 6

Compression:

Stored size: 1.29 KB

Contents

require_relative 'slather/version'
require_relative 'slather/project'
require_relative 'slather/coverage_info'
require_relative 'slather/coverage_file'
require_relative 'slather/coveralls_coverage'
require_relative 'slather/profdata_coverage_file'
require_relative 'slather/coverage_service/cobertura_xml_output'
require_relative 'slather/coverage_service/coveralls'
require_relative 'slather/coverage_service/hardcover'
require_relative 'slather/coverage_service/gutter_json_output'
require_relative 'slather/coverage_service/simple_output'
require_relative 'slather/coverage_service/html_output'
require_relative 'slather/coverage_service/json_output'
require_relative 'slather/coverage_service/llvm_cov_output'
require_relative 'slather/coverage_service/sonarqube_xml_output'
require 'cfpropertylist'

module Slather

  Encoding.default_external = "utf-8"

  def self.prepare_pods(pods)
    Pod::UI.warn("[Slather] prepare_pods is now deprecated. The call to prepare_pods in your Podfile can simply be ommitted.")
  end

  def self.xcode_version
    xcode_path = `xcode-select -p`.strip
    plist = CFPropertyList::List.new(:file => File.join(xcode_path, '..', 'Info.plist'))
    xcode_version = CFPropertyList.native_types(plist.value)["CFBundleShortVersionString"]
    xcode_version.split('.').map(&:to_i)
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
slather-2.8.5 lib/slather.rb
slather-2.8.4 lib/slather.rb
slather-2.8.3 lib/slather.rb
slather-2.8.2 lib/slather.rb
slather-2.8.1 lib/slather.rb
slather-2.8.0 lib/slather.rb