Sha256: 722f294ea47ce72fb823b6f14e9e70954f8582c91a13e0bb735d6bc440a0a594

Contents?: true

Size: 699 Bytes

Versions: 252

Compression:

Stored size: 699 Bytes

Contents

require 'precheck/rule'
require 'precheck/rules/abstract_text_match_rule'

module Precheck
  class CustomTextRule < AbstractTextMatchRule
    attr_accessor :data

    def self.key
      :custom_text
    end

    def self.env_name
      "RULE_CUSTOM_TEXT"
    end

    def self.friendly_name
      "No user-specified words are included"
    end

    def self.description
      "mentioning any of the user-specified words passed to #{self.key}(data: [words])"
    end

    def needs_customization?
      return true
    end

    def lowercased_words_to_look_for
      return @data
    end

    def customize_with_data(data: nil)
      @data = data.map { |word| word.strip.downcase }
    end
  end
end

Version data entries

252 entries across 252 versions & 1 rubygems

Version Path
fastlane-2.65.0.beta.20171107010003 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.64.0 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.64.0.beta.20171106010003 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.64.0.beta.20171105010003 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.64.0.beta.20171104010004 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.64.0.beta.20171103010004 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.64.0.beta.20171102010003 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.64.0.beta.20171101010004 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.63.0 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.63.0.beta.20171031010003 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.63.0.beta.20171030010003 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.63.0.beta.20171029010003 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.63.0.beta.20171028010003 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.63.0.beta.20171027010003 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.63.0.beta.20171026010003 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.63.0.beta.20171025010003 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.63.0.beta.20171024010003 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.62.1 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.63.0.beta.20171023010003 precheck/lib/precheck/rules/custom_text_rule.rb
fastlane-2.63.0.beta.20171022010003 precheck/lib/precheck/rules/custom_text_rule.rb