Skip to content

Commit

Permalink
Release trinidad 1.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
calavera committed Jan 6, 2012
1 parent c9f97fe commit b6ba233
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
trinidad (1.3.0)
trinidad (1.3.1)
jruby-rack (>= 1.1.2)
rack
trinidad_jars (>= 1.0.1)
Expand All @@ -25,7 +25,7 @@ GEM
rspec-expectations (2.5.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.5.0)
trinidad_jars (1.0.1)
trinidad_jars (1.0.2)

PLATFORMS
java
Expand Down
4 changes: 4 additions & 0 deletions History.txt
@@ -1,3 +1,7 @@
== Trinidad 1.3.1 (2012-01-06)

* Fix Rack handler configuration issues

== Trinidad_jars 1.0.2 (2011-12-31)

* Bump Tomcat's version to 7.0.23
Expand Down
51 changes: 50 additions & 1 deletion README.md
Expand Up @@ -12,13 +12,62 @@ Trinidad allows you to run a rails or rackup applications within an embedded Apa
$ jruby -S gem install trinidad
```

## Usage
## Quick Start

```
$ cd myapp
$ jruby -S trinidad
```

### Advanced Rackup setup

**Sinatra**

You can run your Sinatra application with Trinidad from the command line like this:

```
$ ruby app.rb -s Trinidad
```

Or tou can configure your application to always use it:

```ruby
require 'sinatra'
require 'trinidad'

configure do
set :server, :trinidad
end
```

If you use Bundler, make sure you add Trinidad to your Gemfile:

```
gem 'trinidad'
```

**Rails**

If you already have Trinidad in your Gemfile you can start the server with the rails command:

```
$ rails s trinidad
```

**Rackup**

You can pass the server name as an option to `rackup`:

```
$ rackup -s trinidad
```

Or you can set Trinidad by default in your `config.ru` file:

```
#\ -s trinidad
```

## Configuration

Trinidad allows you to configure some parameters when the server is started from the command line, the following is a list of the currently supported options:
Expand Down
2 changes: 1 addition & 1 deletion lib/trinidad.rb
Expand Up @@ -24,5 +24,5 @@
require 'rack/handler/trinidad'

module Trinidad
VERSION = '1.3.0'
VERSION = '1.3.1'
end
4 changes: 2 additions & 2 deletions trinidad.gemspec
Expand Up @@ -13,8 +13,8 @@ Gem::Specification.new do |s|
## If your rubyforge_project name is different, then edit it and comment out
## the sub! line in the Rakefile
s.name = 'trinidad'
s.version = '1.3.0'
s.date = '2011-12-30'
s.version = '1.3.1'
s.date = '2012-01-06'
s.rubyforge_project = 'trinidad'

## Make sure your summary is short. The description may be as long
Expand Down

0 comments on commit b6ba233

Please sign in to comment.