Sha256: 6366fa107d0faa4ad3bc6f673327fec9b5b09993e5dc1e814943db3c976d7661

Contents?: true

Size: 1.83 KB

Versions: 22

Compression:

Stored size: 1.83 KB

Contents

# Curlyrest

Welcome to curlyrest. In years of testing RESTful APIs, it was regularly beneficial to be able to substitute execution via curl for a request which normally would have been executed with RestClient. This might have been because observation of the exact request wasn't easy, or because RestClient had some unexplained restriction. Having a tool that could execute the request via curl and optionally expose the output, allowed observing the exact failing request. It was also possible to pass the curl request to a colleague without having them deal with environment, ruby, or data complications to be able to replicate a failure.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'curlyrest'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install curlyrest

## Usage

Simply replace your use of require 'rest-client' with require 'curlyrest', and optionally add header :params of :use_curl with true or 'debug' which will cause the request to be executed with curl and response parsed to be compatable with rest-client.

## Development

To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).

## Limitations

Curlyrest works with basic requests, including responses with content-encoding: 'gzip'. I would not be suprised to find some more complicated requests that are not supported at this time.

## Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/keithrw54/curlyrest.


## License

The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
curlyrest-0.1.21 README.md
curlyrest-0.1.20 README.md
curlyrest-0.1.19 README.md
curlyrest-0.1.18 README.md
curlyrest-0.1.17 README.md
curlyrest-0.1.16 README.md
curlyrest-0.1.15 README.md
curlyrest-0.1.14 README.md
curlyrest-0.1.13 README.md
curlyrest-0.1.12 README.md
curlyrest-0.1.11 README.md
curlyrest-0.1.10 README.md
curlyrest-0.1.9 README.md
curlyrest-0.1.8 README.md
curlyrest-0.1.7 README.md
curlyrest-0.1.6 README.md
curlyrest-0.1.5 README.md
curlyrest-0.1.4 README.md
curlyrest-0.1.3 README.md
curlyrest-0.1.2 README.md