├── .gitignore ├── README.textile ├── Rakefile ├── examples └── active_record │ ├── app.rb │ ├── db │ └── migrate │ │ └── 20090924173700_create_people.rb │ ├── setup_activerecord.rb │ └── views │ ├── layout.haml │ └── people │ ├── edit.haml │ ├── index.haml │ ├── new.haml │ └── show.haml ├── lib └── sinatra │ ├── rest.rb │ └── rest │ ├── adapters.rb │ └── rest.yaml ├── sinatra-rest.gemspec └── test ├── call_order_spec.rb ├── crud_spec.rb ├── helper.rb ├── helpers_spec.rb ├── inflection_spec.rb ├── routes_spec.rb ├── test_spec.rb └── views └── people ├── edit.haml ├── index.haml ├── new.haml └── show.haml /.gitignore: -------------------------------------------------------------------------------- 1 | TODO 2 | sinatra-rest-*.gem 3 | 4 | -------------------------------------------------------------------------------- /README.textile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/README.textile -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/Rakefile -------------------------------------------------------------------------------- /examples/active_record/app.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/examples/active_record/app.rb -------------------------------------------------------------------------------- /examples/active_record/db/migrate/20090924173700_create_people.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/examples/active_record/db/migrate/20090924173700_create_people.rb -------------------------------------------------------------------------------- /examples/active_record/setup_activerecord.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/examples/active_record/setup_activerecord.rb -------------------------------------------------------------------------------- /examples/active_record/views/layout.haml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/examples/active_record/views/layout.haml -------------------------------------------------------------------------------- /examples/active_record/views/people/edit.haml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/examples/active_record/views/people/edit.haml -------------------------------------------------------------------------------- /examples/active_record/views/people/index.haml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/examples/active_record/views/people/index.haml -------------------------------------------------------------------------------- /examples/active_record/views/people/new.haml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/examples/active_record/views/people/new.haml -------------------------------------------------------------------------------- /examples/active_record/views/people/show.haml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/examples/active_record/views/people/show.haml -------------------------------------------------------------------------------- /lib/sinatra/rest.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/lib/sinatra/rest.rb -------------------------------------------------------------------------------- /lib/sinatra/rest/adapters.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/lib/sinatra/rest/adapters.rb -------------------------------------------------------------------------------- /lib/sinatra/rest/rest.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/lib/sinatra/rest/rest.yaml -------------------------------------------------------------------------------- /sinatra-rest.gemspec: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/sinatra-rest.gemspec -------------------------------------------------------------------------------- /test/call_order_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/test/call_order_spec.rb -------------------------------------------------------------------------------- /test/crud_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/test/crud_spec.rb -------------------------------------------------------------------------------- /test/helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/test/helper.rb -------------------------------------------------------------------------------- /test/helpers_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/test/helpers_spec.rb -------------------------------------------------------------------------------- /test/inflection_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/test/inflection_spec.rb -------------------------------------------------------------------------------- /test/routes_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/test/routes_spec.rb -------------------------------------------------------------------------------- /test/test_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/test/test_spec.rb -------------------------------------------------------------------------------- /test/views/people/edit.haml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/test/views/people/edit.haml -------------------------------------------------------------------------------- /test/views/people/index.haml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/test/views/people/index.haml -------------------------------------------------------------------------------- /test/views/people/new.haml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/test/views/people/new.haml -------------------------------------------------------------------------------- /test/views/people/show.haml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/blindgaenger/sinatra-rest/HEAD/test/views/people/show.haml --------------------------------------------------------------------------------