Class: FlutterRb::PluginPubspecVersionCheck

Inherits:
PluginPubspecCheck show all
Defined in:
lib/flutter_rb/checks/plugin_pubspec_check.rb

Overview

Check Flutter plugin version in pubspec file. Exists or not

Constant Summary

Constants inherited from Check

Check::UNIMPLEMENTED_ERROR

Instance Method Summary collapse

Methods inherited from PluginPubspecCheck

#name, #summary

Methods inherited from Check

#name, #summary

Instance Method Details

#check(project) ⇒ CheckReport

Parameters:

Returns:



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

#descriptionString

Returns:

  • (String)


81
82
83
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 81

def description
  'Check plugin version in pubspec'
end

#pubspec_parameterString

Returns:

  • (String)


76
77
78
# File 'lib/flutter_rb/checks/plugin_pubspec_check.rb', line 76

def pubspec_parameter
  'version'
end