Class: FlutterRb::PluginPodspecAuthorsCheck
Overview
Check Flutter plugin’s authors. Exists or not
Constant Summary
Constants inherited
from Check
Check::UNIMPLEMENTED_ERROR
Instance Method Summary
collapse
#name, #summary
Methods inherited from Check
#name, #summary
Instance Method Details
#check(project) ⇒ Object
72
73
74
75
76
77
78
79
80
81
|
# File 'lib/flutter_rb/checks/plugin_podspec_check.rb', line 72
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
|
#description ⇒ Object
83
84
85
|
# File 'lib/flutter_rb/checks/plugin_podspec_check.rb', line 83
def description
"Check plugin's authors in podspec file"
end
|
#podspec_parameter ⇒ Object
68
69
70
|
# File 'lib/flutter_rb/checks/plugin_podspec_check.rb', line 68
def podspec_parameter
'authors'
end
|