Class: FlutterRb::PluginPodspecAuthorsCheck

Inherits:
PluginPodspecCheck show all
Defined in:
lib/flutter_rb/checks/plugin_podspec_check.rb

Overview

Check Flutter plugin’s authors. Exists or not

Constant Summary

Constants inherited from Check

Check::UNIMPLEMENTED_ERROR

Instance Method Summary collapse

Methods inherited from PluginPodspecCheck

#name, #summary

Methods inherited from Check

#name, #summary

Instance Method Details

#check(project) ⇒ CheckReport

Parameters:

Returns:



91
92
93
94
95
96
97
98
99
100
# File 'lib/flutter_rb/checks/plugin_podspec_check.rb', line 91

def check(project)
  podspec = project.ios_folder.podspec
  author_exists = !podspec.authors.nil?
  CheckReport.new(
    name,
    author_exists ? CheckReportStatus::NORMAL : CheckReportStatus::ERROR,
    description,
    podspec.path
  )
end

#descriptionString

Returns:

  • (String)


85
86
87
# File 'lib/flutter_rb/checks/plugin_podspec_check.rb', line 85

def description
  "Check plugin's authors in podspec file"
end

#podspec_parameterString

Returns:

  • (String)


80
81
82
# File 'lib/flutter_rb/checks/plugin_podspec_check.rb', line 80

def podspec_parameter
  'authors'
end