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:



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

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)


87
88
89
# File 'lib/flutter_rb/checks/plugin_podspec_check.rb', line 87

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

#podspec_parameterString

Returns:

  • (String)


82
83
84
# File 'lib/flutter_rb/checks/plugin_podspec_check.rb', line 82

def podspec_parameter
  'authors'
end