Class: Pod::Specification

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-meitu-bin/native/resolver.rb,
lib/cocoapods-meitu-bin/native/linter.rb,
lib/cocoapods-meitu-bin/native/specification.rb

Overview

1.4.0 没有 spec_source

Defined Under Namespace

Classes: Linter, Set

Constant Summary collapse

VALID_EXTNAME =
%w[.binary.podspec.json .binary.podspec .podspec.json .podspec].freeze
DEFAULT_TEMPLATE_EXTNAME =
%w[.binary-template.podspec .binary-template.podspec.json].freeze

Instance Method Summary collapse

Instance Method Details

#checksumObject



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/cocoapods-meitu-bin/native/specification.rb', line 11

def checksum
  if defined_in_file && !File.exist?(defined_in_file)
    begin
      defined_in_file.dirname.mkpath
      content = respond_to?(:to_pretty_json) ? to_pretty_json : (respond_to?(:to_json) ? to_json : to_yaml)
      defined_in_file.open('w') { |f| f << content }
    rescue => e
      content = respond_to?(:to_pretty_json) ? to_pretty_json : (respond_to?(:to_json) ? to_json : to_yaml)
      return Digest::SHA1.hexdigest(content)
    end
  end
  old_checksum
end

#old_checksumObject



10
# File 'lib/cocoapods-meitu-bin/native/specification.rb', line 10

alias old_checksum checksum