lib/ios_logs/plugin.rb in danger-ios_logs-0.1.0 vs lib/ios_logs/plugin.rb in danger-ios_logs-0.1.1
- old
+ new
@@ -49,16 +49,10 @@
#
# @return [Array<FileLog>] List of `NSLog`
attr_accessor :nslogs
#
- # Combined list of both `NSLog` and `print`
- #
- # @return [Array<FileLog>] List of `NSLog` and `print`
- attr_accessor :logs
-
- #
# Initialize plugin
# @param dangerfile [Dangerfile] Dangerfile used to initialize plugin
#
# @return [DangerIosLogs] Initialized DangerIosLogs plugin
def initialize(dangerfile)
@@ -82,10 +76,10 @@
# @param method = :warn [Symbol] Used method to indicate log method usage.
# By default `:warn`. Possible values: `:message`, `:warn`, `:fail`
#
# @return [Void]
def check(method = :warn)
- raise 'Unsupported method' unless [:message, :warn, :fail].include?(method)
+ raise 'Unsupported method' unless %i[message warn fail].include?(method)
@nslogs = []
@prints = []
check_files files_of_interest