Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
hstove committed Jan 27, 2015
1 parent 219ab65 commit 5ee3dc8
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 11 deletions.
43 changes: 32 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,47 @@
# Aqui

TODO: Write a gem description
[![Build Status](https://travis-ci.org/hstove/aqui.svg?branch=master)](https://travis-ci.org/hstove/aqui)
[![Code Climate](https://codeclimate.com/github/hstove/aqui.png)](https://codeclimate.com/github/hstove/aqui)

## Installation
A gem for making sure some code is running.

Add this line to your application's Gemfile:
Sometimes when coding, you run into a situation where you want to make sure
a bit of code is being executed by your application. You might end up
typing something like:

```ruby
gem 'aqui'
```
~~~ruby
try_this
puts 'this is running'
try_another
puts 'blasfdd'
~~~

This way, you can run your code and check your logs to see if the `put`
methods were called. If this short and simple effective method works for you,
then give `aqui` a shot next time. It looks like this:

~~~ruby
try_this
aqui
try_another
aqui
~~~

And then execute:
This time, the output is colorized and contains information about where the code is running:

$ bundle
![screenshot](http://i.imgur.com/2AdA8YB.png)

Or install it yourself as:
## Installation

$ gem install aqui
```ruby
gem 'aqui'
```

## Usage

TODO: Write usage instructions here
```ruby
aqui
```

## Contributing

Expand Down
13 changes: 13 additions & 0 deletions script/demo.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require "bundler/setup"
Bundler.require

class ClassName
def go
1 + 2
aqui
3 + 4
aqui
end
end

Model.new.go

0 comments on commit 5ee3dc8

Please sign in to comment.