class RemindMe::Reminder::RubyVersionReminder
Public Instance Methods
conditions_met?()
click to toggle source
# File lib/remind_me/reminder/ruby_version_reminder.rb, line 16 def conditions_met? condition = hash_condition target_ruby_version = Gem::Version.new(hash_ruby_version) installed_ruby_version = Gem::Version.new(RUBY_VERSION) compare_version_numbers(target_ruby_version, installed_ruby_version, condition) end
validation_errors()
click to toggle source
Calls superclass method
RemindMe::Reminder::BaseReminder#validation_errors
# File lib/remind_me/reminder/ruby_version_reminder.rb, line 23 def validation_errors errors = super errors << invalid_ruby_version_message if hash_ruby_version.nil? || hash_ruby_version == '' errors << malformed_version_string_message unless valid_version_string?(hash_ruby_version) errors << invalid_condition_message(source_location, hash_condition) unless valid_condition?(hash_condition) errors end
Private Instance Methods
invalid_ruby_version_message()
click to toggle source
# File lib/remind_me/reminder/ruby_version_reminder.rb, line 33 def invalid_ruby_version_message "REMIND_ME comment on #{source_location} has blank ruby version, you must specify version string" end
malformed_version_string_message()
click to toggle source
# File lib/remind_me/reminder/ruby_version_reminder.rb, line 37 def malformed_version_string_message "REMIND_ME comment in #{source_location} mentions '#{hash_ruby_version}' ruby version, but "\ ' that is not a proper version string' end