Class: FlutterRb::PluginPubspecHomepageCheck
- Inherits:
-
PluginPubspecCheck
- Object
- Check
- PluginPubspecCheck
- FlutterRb::PluginPubspecHomepageCheck
- Defined in:
- lib/flutter_rb/checks/plugin_pubspec_check.rb
Overview
This class represents a check for Flutter plugin’s pubspec.yaml file for ‘homepage’ parameter. It inherits from PluginPubspecCheck class.
Constant Summary
Constants inherited from Check
Instance Method Summary collapse
-
#check(project) ⇒ CheckReport
Performs the check for the ‘homepage’ parameter in the pubspec.yaml file.
-
#pubspec_parameter ⇒ String
Returns the parameter to be checked in the pubspec.yaml file.
Methods inherited from PluginPubspecCheck
Methods inherited from Check
Instance Method Details
#check(project) ⇒ CheckReport
Performs the check for the ‘homepage’ parameter in the pubspec.yaml file. It creates a CheckReport object with the result of the check.
164 165 166 167 168 169 170 171 172 173 |
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 164 def check(project) pubspec = project.pubspec CheckReport.new( name, pubspec.pubspec_info.homepage.nil? ? CheckReportStatus::ERROR : CheckReportStatus::NORMAL, description, pubspec.path ) end |
#pubspec_parameter ⇒ String
Returns the parameter to be checked in the pubspec.yaml file. In this case, it returns ‘homepage’.
155 156 157 |
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 155 def pubspec_parameter 'homepage' end |