Skip to content
Browse files

basic bundler sinatra app that doesn't run with trinidad and ruby 1.9

  • Loading branch information...
0 parents commit 2193d692311d0eaa3c8028ec2af61e6e645a2fd6 Karl committed May 6, 2011
Showing with 50 additions and 0 deletions.
  1. +2 −0 Gemfile
  2. +37 −0 Gemfile.lock
  3. +3 −0 config.ru
  4. +8 −0 example.rb
2 Gemfile
@@ -0,0 +1,2 @@
+source "http://rubygems.org"
+gem 'sinatra'
37 Gemfile.lock
@@ -0,0 +1,37 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ activemodel (3.0.7)
+ activesupport (= 3.0.7)
+ builder (~> 2.1.2)
+ i18n (~> 0.5.0)
+ activerecord-jdbc-adapter (1.1.1)
+ activerecord-jdbcmysql-adapter (1.1.1)
+ activerecord-jdbc-adapter (= 1.1.1)
+ jdbc-mysql (~> 5.1.0)
+ activeresource (3.0.7)
+ activemodel (= 3.0.7)
+ activesupport (= 3.0.7)
+ activesupport (3.0.7)
+ bouncy-castle-java (1.5.0146.1)
+ builder (2.1.2)
+ i18n (0.5.0)
+ jdbc-mysql (5.1.13)
+ jruby-openssl (0.7.4)
+ bouncy-castle-java
+ rack (1.2.2)
+ rake (0.8.7)
+ sinatra (1.2.6)
+ rack (~> 1.1)
+ tilt (>= 1.2.2, < 2.0)
+ tilt (1.3)
+
+PLATFORMS
+ java
+
+DEPENDENCIES
+ activerecord-jdbcmysql-adapter
+ activeresource (~> 3)
+ jruby-openssl
+ rake
+ sinatra
3 config.ru
@@ -0,0 +1,3 @@
+require 'example'
+
+run Sinatra::Application
8 example.rb
@@ -0,0 +1,8 @@
+require 'rubygems'
+require 'bundler'
+
+Bundler.require
+
+get 'hi' do
+ "Hello World"
+end

0 comments on commit 2193d69

Please sign in to comment.
Something went wrong with that request. Please try again.