0.0
No commit activity in last 3 years
No release in over 3 years
Sometimes when you hear about a new library/gem you just wat to kick the kick_the_tires to see what it can do. Sometimes you start with some REPL example from the authors or some sample code or tests that the author has provided. This little gem allowed_push_host you to load up a few basic asserts/refutes/shows to explore the library's objects and method results. When you have finished kicking the tires you may want to take the library out for a spin with some functional, application-line code and you don't want any of the tire kicking out to STDOUT.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.9
~> 10.0

Runtime

 Project Readme

KickTheTires

Provides some basic methods/assertions that are handy for exploring a new ruby library.

Sometimes when you hear about a new library/gem you just wat to kick the tires to see what it can do. Sometimes you start with some REPL example from the author's readme or some sample code or tests that the author has provided. This little gem allows you to load up a few basic asserts/refutes/shows to explore the library's objects and method results. When you have finished kicking the tires you may want to take the library out for a spin with some functional, application-line code and you don't want any of the tire kicking to leak to STDOUT.

It would be a good idea to reuse someone's general purpose assertions library. I did a quick look and didn't find any that were not tightly coupled with a testing framework. kick_the_tires is an API exploration tool to learn the methods and objects introduced by a new gem that you have never seen before.

You would never buy a used car without first kicking the tires and taking it for a spin. Why would you start using a new gem without playing with it for a while?

Installation

Install it yourself as:

$ gem install kick_the_tires

Usage

require 'kick_the_tires'
include KickTheTires

require 'some_new_gem_to_explore'

sngte = SomeNewGemToExplore.new

refute sngte.nil?
assert_equal SomeNewGemToExplore, sngte.class
assert sngte.return_true
show sngte

take_it_for_a_spin # disables all asserts/refutes/shows

assert sngte.nil? # does nothing but return

# some application-like code that uses the new gem
sngte.each do |s|
  # do something
end

give_the_keys_back  # enables the asserts/regutes/shows

assert sngte.nil? # active again, will display error stuff if object is not nil

take a look at this public file. I was looking at how I might be able to use wordnet (brew/yum install wordnet) through the 'words gem (gem install words).' After I had worked with it a while I decided to write some application-like code so you should see around line #7 where I decided to 'take_it_for_a_spin' which deactivated the subsequent asserts/refutes/shows. My application-like code starts after line #100.

http://github.com/MadBomber/experiments/blob/master/wordnet_related/test_words.rb

Contributing

  1. Fork it ( https://github.com/[my-github-username]/kick_the_tires/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request