<commit_before>mkspec
======

Generate your Ruby specs straight from your REPL<commit_msg>Explain usage in README<commit_after>Mkspec
======

Generate your Ruby specs straight from your REPL

Whilst mucking around in your Ruby REPL (probably Pry), you decide you
need a spec to describe your next great feature. Instead of jumping back
to your editor, just type:

  require 'mkspec'

  include Mkspec
  expect(sut.expect(sut, :calculate, "1+1").to(sut.eq(1+1))

and it will generate:

  describe SystemUnderTest do
    subject {described_class.new}

    describe "#calculate" do

      it "does something" do
        expect(subject.calculate("1+1").to eq(2)
      end

    end
  end

WIP
===

That's all it does right now. If this proves useful though, I'm
thinking of adding the ability to generate more types of specs and the
ability to save your specs straight into your project.
{'fraction_non_alphanumeric': 0.07936507936507936, 'fraction_numerical': 0.007936507936507936, 'mean_word_length': 3.9329608938547485, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6732087', 'n_tokens_mistral': 277, 'n_tokens_neox': 258, 'n_words': 113}