Project

VcrToCurl

0.0
No commit activity in last 3 years
No release in over 3 years
This gem allows you to take a vcr cassette and turn it into a curl command
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 0.13
~> 0.9
~> 0.8
~> 2.6
~> 2.9
~> 1.18
 Project Readme

VcrToCurl

Build Status

Use this gem to convert vcr cassettes into curl commands. Great for replaying requests in your tests

Installation

Add this line to your application's Gemfile:

gem 'VcrToCurl'

And then execute:

$ bundle

Or install it yourself as:

$ gem install VcrToCurl

Usage

Command Line Utility

$ convert_cassette path/to/vcr_cassette_here.yml
curl -X POST -d 'fizz=buzz&foo=bar' http://echo.httpkit.com/

In your codez

cassette_to_curl = VcrToCurl::CassetteToCurl.new('your_cassette_here.yml') cassette_to_curl.curl_commands => an array of curl commands for interactions in this cassette

Contributing

  1. Fork it ( https://github.com/[my-github-username]/VcrToCurl/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