RestShifter

Gem Version Build Status endorse

                              /
                   __       //      The rest api ShapeShifter!
                   -\= \=\ //       
                 --=_\=---//=--     This is a Sinatra app with no predefined routes.    
               -_==/  \/ //\/--     This replaces mocks for integration level tests. 
                ==/   /O   O\==--   This can be used also to create tests for new feature
   _ _ _ _     /_/    \  ]  /--      before the dependent services are in place
  /\ ( (- \    /       ] ] ]==-     
 (\ _\_\_\-\__/     \  (,_,)-- 
(\_/                 \     \-         Some of the main features are:
\/      /       (   ( \  ] /)          - Easy to define rest paths with custom routes
/      (         \   \_ \./ )          - Easy to define rest paths with custom responses
(       \         \      )  \          - Definition of response times and response codes
(       /\_ _ _ _ /---/ /\_  \         - Suitable to any kind of tests that use Rest                                          
 \     / \     / ____/ /   \  \        
  (   /   )   / /  /__ )   (  ) 
  (  )   / __/ '---`       / /
  \  /   \ \             _/ /     This is still under development, so do not use it.
  ] ]     )_\_         /__\/       
  /_\     ]___\                     
 (___)                     

The Idea

Are you tired of integrating with services that does not exist yet? Or that are expensive to spin up? Or just want to know what happens whan that service times out or return a ugly error? So you should know RestShifter :) As simples is always better, I've put here a ridiculously easy to run app with no natural behaviour. You just have to create declarative files and start this app.

ASCII art: http://www.chris.com/ascii/index.php?art=creatures/unicorns

Instructions

Developing

To develop RestShifter, you are going to need Bundler

$ git [email protected]:camiloribeiro/RestShifter.git
$ cd RestShifter
$ bundle install
$ rake

The last step is launching the regression tests and all should be green.

If you have any problems, please let me know.

Using

Soon.

LICENSE

Copyright 2015 - Camilo Ribeiro [email protected]

This file is part of RestShifter.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.