├── .gitignore ├── .travis.yml ├── Gemfile ├── LICENSE ├── README.markdown ├── Rakefile ├── bin └── stubb ├── lib ├── stubb.rb └── stubb │ ├── combined_logger.rb │ ├── counter.rb │ ├── finder.rb │ ├── match_finder.rb │ ├── naive_finder.rb │ ├── request.rb │ ├── response.rb │ ├── sequence_finder.rb │ └── sequence_match_finder.rb ├── stubb.gemspec ├── stubb.png └── test ├── fixtures ├── collection │ ├── GET │ ├── GET.json │ ├── POST │ ├── member.GET │ ├── member.GET.json │ ├── member.PUT.json │ ├── member_template.GET │ └── member_template.POST ├── looping_sequence │ ├── GET.0 │ ├── GET.1 │ ├── GET.2 │ ├── member.GET.0 │ ├── member.GET.1 │ └── member.GET.2 ├── matching │ ├── _wildcard_collection_ │ │ ├── GET │ │ ├── GET.json │ │ ├── static.GET │ │ ├── static.GET.json │ │ ├── template.GET │ │ └── template.POST │ ├── collection │ │ ├── _wildcard_member_.GET │ │ └── _wildcard_member_.GET.json │ └── sequences │ │ └── _wildcard_ │ │ ├── looping │ │ ├── GET.0 │ │ ├── GET.1 │ │ ├── GET.2 │ │ ├── member.GET.0 │ │ ├── member.GET.1 │ │ └── member.GET.2 │ │ └── stalling │ │ ├── GET.1 │ │ ├── GET.2 │ │ ├── GET.3 │ │ ├── member.GET.1 │ │ ├── member.GET.2 │ │ ├── member.GET.3 │ │ ├── template.GET.1 │ │ └── template.POST.1 ├── stalling_sequence │ ├── GET.1 │ ├── GET.2 │ ├── GET.3 │ ├── member.GET.1 │ ├── member.GET.2 │ ├── member.GET.3 │ ├── template.GET.1 │ └── template.POST.1 └── users │ └── :id │ └── photos │ └── :photo_id.GET.json ├── test_counter.rb ├── test_match_finder.rb ├── test_naive_finder.rb ├── test_request.rb ├── test_response.rb ├── test_sequence_finder.rb └── test_sequence_match_finder.rb /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/.travis.yml -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/Gemfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/LICENSE -------------------------------------------------------------------------------- /README.markdown: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/README.markdown -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/Rakefile -------------------------------------------------------------------------------- /bin/stubb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/bin/stubb -------------------------------------------------------------------------------- /lib/stubb.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/lib/stubb.rb -------------------------------------------------------------------------------- /lib/stubb/combined_logger.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/lib/stubb/combined_logger.rb -------------------------------------------------------------------------------- /lib/stubb/counter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/lib/stubb/counter.rb -------------------------------------------------------------------------------- /lib/stubb/finder.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/lib/stubb/finder.rb -------------------------------------------------------------------------------- /lib/stubb/match_finder.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/lib/stubb/match_finder.rb -------------------------------------------------------------------------------- /lib/stubb/naive_finder.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/lib/stubb/naive_finder.rb -------------------------------------------------------------------------------- /lib/stubb/request.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/lib/stubb/request.rb -------------------------------------------------------------------------------- /lib/stubb/response.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/lib/stubb/response.rb -------------------------------------------------------------------------------- /lib/stubb/sequence_finder.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/lib/stubb/sequence_finder.rb -------------------------------------------------------------------------------- /lib/stubb/sequence_match_finder.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/lib/stubb/sequence_match_finder.rb -------------------------------------------------------------------------------- /stubb.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/stubb.gemspec -------------------------------------------------------------------------------- /stubb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/stubb.png -------------------------------------------------------------------------------- /test/fixtures/collection/GET: -------------------------------------------------------------------------------- 1 | GET collection -------------------------------------------------------------------------------- /test/fixtures/collection/GET.json: -------------------------------------------------------------------------------- 1 | GET collection.json -------------------------------------------------------------------------------- /test/fixtures/collection/POST: -------------------------------------------------------------------------------- 1 | POST collection -------------------------------------------------------------------------------- /test/fixtures/collection/member.GET: -------------------------------------------------------------------------------- 1 | GET member -------------------------------------------------------------------------------- /test/fixtures/collection/member.GET.json: -------------------------------------------------------------------------------- 1 | GET member.json -------------------------------------------------------------------------------- /test/fixtures/collection/member.PUT.json: -------------------------------------------------------------------------------- 1 | PUT member -------------------------------------------------------------------------------- /test/fixtures/collection/member_template.GET: -------------------------------------------------------------------------------- 1 | GET <%= params['name'] %> -------------------------------------------------------------------------------- /test/fixtures/collection/member_template.POST: -------------------------------------------------------------------------------- 1 | POST <%= params['name'] %> -------------------------------------------------------------------------------- /test/fixtures/looping_sequence/GET.0: -------------------------------------------------------------------------------- 1 | GET collection 0 -------------------------------------------------------------------------------- /test/fixtures/looping_sequence/GET.1: -------------------------------------------------------------------------------- 1 | GET collection 1 -------------------------------------------------------------------------------- /test/fixtures/looping_sequence/GET.2: -------------------------------------------------------------------------------- 1 | GET collection 2 -------------------------------------------------------------------------------- /test/fixtures/looping_sequence/member.GET.0: -------------------------------------------------------------------------------- 1 | GET member 0 -------------------------------------------------------------------------------- /test/fixtures/looping_sequence/member.GET.1: -------------------------------------------------------------------------------- 1 | GET member 1 -------------------------------------------------------------------------------- /test/fixtures/looping_sequence/member.GET.2: -------------------------------------------------------------------------------- 1 | GET member 2 -------------------------------------------------------------------------------- /test/fixtures/matching/_wildcard_collection_/GET: -------------------------------------------------------------------------------- 1 | GET matching collection -------------------------------------------------------------------------------- /test/fixtures/matching/_wildcard_collection_/GET.json: -------------------------------------------------------------------------------- 1 | GET matching collection.json -------------------------------------------------------------------------------- /test/fixtures/matching/_wildcard_collection_/static.GET: -------------------------------------------------------------------------------- 1 | GET static -------------------------------------------------------------------------------- /test/fixtures/matching/_wildcard_collection_/static.GET.json: -------------------------------------------------------------------------------- 1 | GET static.json -------------------------------------------------------------------------------- /test/fixtures/matching/_wildcard_collection_/template.GET: -------------------------------------------------------------------------------- 1 | GET matching <%= params['name'] %> -------------------------------------------------------------------------------- /test/fixtures/matching/_wildcard_collection_/template.POST: -------------------------------------------------------------------------------- 1 | POST matching <%= params['name'] %> -------------------------------------------------------------------------------- /test/fixtures/matching/collection/_wildcard_member_.GET: -------------------------------------------------------------------------------- 1 | GET matching member -------------------------------------------------------------------------------- /test/fixtures/matching/collection/_wildcard_member_.GET.json: -------------------------------------------------------------------------------- 1 | GET matching member.json -------------------------------------------------------------------------------- /test/fixtures/matching/sequences/_wildcard_/looping/GET.0: -------------------------------------------------------------------------------- 1 | GET matching collection 0 -------------------------------------------------------------------------------- /test/fixtures/matching/sequences/_wildcard_/looping/GET.1: -------------------------------------------------------------------------------- 1 | GET matching collection 1 -------------------------------------------------------------------------------- /test/fixtures/matching/sequences/_wildcard_/looping/GET.2: -------------------------------------------------------------------------------- 1 | GET matching collection 2 -------------------------------------------------------------------------------- /test/fixtures/matching/sequences/_wildcard_/looping/member.GET.0: -------------------------------------------------------------------------------- 1 | GET matching member 0 -------------------------------------------------------------------------------- /test/fixtures/matching/sequences/_wildcard_/looping/member.GET.1: -------------------------------------------------------------------------------- 1 | GET matching member 1 -------------------------------------------------------------------------------- /test/fixtures/matching/sequences/_wildcard_/looping/member.GET.2: -------------------------------------------------------------------------------- 1 | GET matching member 2 -------------------------------------------------------------------------------- /test/fixtures/matching/sequences/_wildcard_/stalling/GET.1: -------------------------------------------------------------------------------- 1 | GET matching collection 1 -------------------------------------------------------------------------------- /test/fixtures/matching/sequences/_wildcard_/stalling/GET.2: -------------------------------------------------------------------------------- 1 | GET matching collection 2 -------------------------------------------------------------------------------- /test/fixtures/matching/sequences/_wildcard_/stalling/GET.3: -------------------------------------------------------------------------------- 1 | GET matching collection 3 -------------------------------------------------------------------------------- /test/fixtures/matching/sequences/_wildcard_/stalling/member.GET.1: -------------------------------------------------------------------------------- 1 | GET matching member 1 -------------------------------------------------------------------------------- /test/fixtures/matching/sequences/_wildcard_/stalling/member.GET.2: -------------------------------------------------------------------------------- 1 | GET matching member 2 -------------------------------------------------------------------------------- /test/fixtures/matching/sequences/_wildcard_/stalling/member.GET.3: -------------------------------------------------------------------------------- 1 | GET matching member 3 -------------------------------------------------------------------------------- /test/fixtures/matching/sequences/_wildcard_/stalling/template.GET.1: -------------------------------------------------------------------------------- 1 | GET matching <%= params['name'] %> 1 -------------------------------------------------------------------------------- /test/fixtures/matching/sequences/_wildcard_/stalling/template.POST.1: -------------------------------------------------------------------------------- 1 | POST matching <%= params['name'] %> 1 -------------------------------------------------------------------------------- /test/fixtures/stalling_sequence/GET.1: -------------------------------------------------------------------------------- 1 | GET collection 1 -------------------------------------------------------------------------------- /test/fixtures/stalling_sequence/GET.2: -------------------------------------------------------------------------------- 1 | GET collection 2 -------------------------------------------------------------------------------- /test/fixtures/stalling_sequence/GET.3: -------------------------------------------------------------------------------- 1 | GET collection 3 -------------------------------------------------------------------------------- /test/fixtures/stalling_sequence/member.GET.1: -------------------------------------------------------------------------------- 1 | GET member 1 -------------------------------------------------------------------------------- /test/fixtures/stalling_sequence/member.GET.2: -------------------------------------------------------------------------------- 1 | GET member 2 -------------------------------------------------------------------------------- /test/fixtures/stalling_sequence/member.GET.3: -------------------------------------------------------------------------------- 1 | GET member 3 -------------------------------------------------------------------------------- /test/fixtures/stalling_sequence/template.GET.1: -------------------------------------------------------------------------------- 1 | GET <%= params['name'] %> 1 -------------------------------------------------------------------------------- /test/fixtures/stalling_sequence/template.POST.1: -------------------------------------------------------------------------------- 1 | POST <%= params['name'] %> 1 -------------------------------------------------------------------------------- /test/fixtures/users/:id/photos/:photo_id.GET.json: -------------------------------------------------------------------------------- 1 | {'id':'nested_member'} 2 | -------------------------------------------------------------------------------- /test/test_counter.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/test/test_counter.rb -------------------------------------------------------------------------------- /test/test_match_finder.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/test/test_match_finder.rb -------------------------------------------------------------------------------- /test/test_naive_finder.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/test/test_naive_finder.rb -------------------------------------------------------------------------------- /test/test_request.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/test/test_request.rb -------------------------------------------------------------------------------- /test/test_response.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/test/test_response.rb -------------------------------------------------------------------------------- /test/test_sequence_finder.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/test/test_sequence_finder.rb -------------------------------------------------------------------------------- /test/test_sequence_match_finder.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/knuton/stubb/HEAD/test/test_sequence_match_finder.rb --------------------------------------------------------------------------------