<commit_before><commit_msg>spike the actual tasks<commit_after>require 'rake/tasklib'

module Bumper
  class Tasks < ::Rake::TaskLib
    include Conversions

    class << self
      def install(path, version)
        new(VersionFile.new(path), Version(version)).install
      end
    end

    attr_reader :file, :version

    def initialize(file, version)
      @file = file
      @version = version
    end

    def install
      desc "Print current gem version: #{version}."
      task :version do
        puts version
      end

      namespace :version do
        desc "Bump major version to #{version.next_major}."
        task :major do
          file.bump_to version.next_major
        end

        desc "Bump minor version to #{version.next_minor}."
        task :minor do
          file.bump_to version.next_minor
        end

        desc "Bump patch version to #{version.next_patch}."
        task :patch do
          file.bump_to version.next_patch
        end
      end
    end

  end
end
{'fraction_non_alphanumeric': 0.07692307692307693, 'fraction_numerical': 0.0, 'mean_word_length': 2.0736196319018405, 'pattern_counts': {'":': 0, '<': 6, '<?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': '1832552', 'n_tokens_mistral': 294, 'n_tokens_neox': 283, 'n_words': 89}