<commit_before>require 'pathname'

module AnsibleQA
  module Checks
    class Gemfile < AnsibleQA::Checks::Base

      def initialize
        super('Gemfile')
      end

      def check
        must_exist
        should_be_identical
      end

    end
  end
end<commit_msg>explain what to do<commit_after>require 'pathname'

module AnsibleQA
  module Checks
    class Gemfile < AnsibleQA::Checks::Base

      def initialize
        super('Gemfile')
      end

      def check
        must_exist
        if !should_be_identical
          info "%s should be identical unless you need additional gems" % [ @path ]
          info "Update %s with the latest Gemfile created by ansible-role-init"
        end
      end

    end
  end
end
{'fraction_non_alphanumeric': 0.0560875512995896, 'fraction_numerical': 0.0, 'mean_word_length': 2.1826086956521737, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4989379', 'n_tokens_mistral': 227, 'n_tokens_neox': 211, 'n_words': 67}