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
87
88
89
90
91
92
93
94
95
|
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 87
def check(project)
pubspec = project.pubspec
CheckReport.new(
name,
pubspec.pubspec_info.version.nil? ? CheckReportStatus::ERROR : CheckReportStatus::NORMAL,
description,
pubspec.path
)
end
|
#description ⇒ String
81
82
83
|
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 81
def description
'Check plugin version in pubspec'
end
|
#pubspec_parameter ⇒ String
76
77
78
|
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 76
def pubspec_parameter
'version'
end
|