Class: Fastlane::Helper::CocoapodsOutdatedHelper
- Inherits:
-
DependencyManagerOutdatedHelper
- Object
- DependencyManagerOutdatedHelper
- Fastlane::Helper::CocoapodsOutdatedHelper
- Defined in:
- lib/fastlane/plugin/dependency_manager_outdated/helper/cocoapods_outdated_helper.rb
Constant Summary collapse
- MESSAGE =
class methods that you define here become available in your action as ‘Helper::CocoapodsOutdatedHelper.your_method`
"The following pod updates are available:"
- PATTERN =
ex.)
-
Fabric 1.7.8 -> 1.9.0 (latest version 1.9.0)
-
/^- (\S+) (\S+) -> (\S+) \(latest version (\S+)\)$/
Class Method Summary collapse
Methods inherited from DependencyManagerOutdatedHelper
generate_slack_attachments, notify_slack
Class Method Details
.message ⇒ Object
22 23 24 |
# File 'lib/fastlane/plugin/dependency_manager_outdated/helper/cocoapods_outdated_helper.rb', line 22 def self. MESSAGE end |
.name ⇒ Object
18 19 20 |
# File 'lib/fastlane/plugin/dependency_manager_outdated/helper/cocoapods_outdated_helper.rb', line 18 def self.name "CocoaPods" end |
.parse(str) ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/fastlane/plugin/dependency_manager_outdated/helper/cocoapods_outdated_helper.rb', line 26 def self.parse(str) results = [] result = str.split(MESSAGE + "\n")[1] return results unless result libs = result.split("\n") libs.each do |lib| lib.match(PATTERN) results << Dependency.new($1, $2, $3, $4) end results.map { |r| r.to_hash } end |