Sha256: e72f85924039eb2af0049966e932d4791dbb92642259770ccbc6ba2efe658b28
Contents?: true
Size: 700 Bytes
Versions: 5
Compression:
Stored size: 700 Bytes
Contents
## Install in Rails 3 Add `restpack-web` to Gemfile ```ruby gem 'restpack-web', '~> 0.2.16', :git => 'git://github.com/RestPack/restpack-web.git' ``` Use `RestPack::Web::App` as a middleware in `application.rb` ```ruby config.middleware.use RestPack::Web::App ``` Set necessary environment variables: ```ruby ENV['RESTPACK_ACCESS_KEY'] = 'secret' ENV['RESTPACK_CORE_SERVICE'] = 'restpack-core-service.restpack.org' ``` ## Testing your app You can stub all requests from restpack_web to the core service. ```ruby require 'restpack_web/test_support' RestPack::Web::TestSupport.stub_restpack_web ``` ## Testing `bundle exec rake test` ## Bump to a new version `bundle exec bump patch && rake tag`
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
restpack_web-0.2.21 | README.md |
restpack_web-0.2.20 | README.md |
restpack_web-0.2.19 | README.md |
restpack_web-0.2.18 | README.md |
restpack_web-0.2.17 | README.md |