Class: FlutterRb::PluginPubspecVersionCheck
Overview
Check Flutter plugin version in pubspec file. 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
68
69
70
71
72
73
74
75
76
|
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 68
def check(project)
pubspec = project.pubspec
CheckReport.new(
name,
pubspec.pubspec_info.version.nil? ? CheckReportStatus::ERROR : CheckReportStatus::NORMAL,
description,
pubspec.path
)
end
|
#description ⇒ Object
78
79
80
|
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 78
def description
'Check plugin version in pubspec'
end
|
#pubspec_parameter ⇒ Object
64
65
66
|
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 64
def pubspec_parameter
'version'
end
|