Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use bundler

  • Loading branch information...
commit 22cd5527dad33311ffd4f7c9fcb51208d6ac0a67 1 parent 25c8a84
@jcrosby authored
Showing with 33 additions and 6 deletions.
  1. +1 −0  .gitignore
  2. +13 −0 Gemfile
  3. +10 −0 Rakefile
  4. +9 −6 lib/cloudkit.rb
View
1  .gitignore
@@ -2,3 +2,4 @@
*.tdb
*.tct
.lock
+.bundle
View
13 Gemfile
@@ -0,0 +1,13 @@
+source :gemcutter
+
+gem 'rack', '~> 1.1'
+gem 'uuid', '2.0.1'
+gem 'oauth', '~> 0.3'
+gem 'ruby-openid', '~> 2.1', :require => 'openid'
+gem 'json', '~> 1.1'
+
+group :test do
+ gem 'rake'
+ gem 'rspec', '~> 1.3', :require => 'spec'
+ gem 'bundler', '~> 0.9.9'
+end
View
10 Rakefile
@@ -1,6 +1,16 @@
+begin
+ require File.expand_path('../.bundle/environment', __FILE__)
+rescue LoadError
+ require 'rubygems'
+ require 'bundler'
+ Bundler.setup
+end
+
require 'rake/clean'
require 'spec/rake/spectask'
+Bundler.require(:default, :test)
+
CLEAN.include 'doc/api'
task :default => :spec
View
15 lib/cloudkit.rb
@@ -1,12 +1,15 @@
-require 'rubygems'
+begin
+ require File.expand_path('../../.bundle/environment', __FILE__)
+rescue LoadError
+ require 'rubygems'
+ require 'bundler'
+ Bundler.setup
+end
+
+Bundler.require
require 'erb'
-require 'json'
require 'digest/md5'
-require 'openid'
require 'time'
-require 'uuid'
-require 'rack'
-require 'oauth'
require 'oauth/consumer'
require 'oauth/request_proxy/rack_request'
require 'oauth/server'
Please sign in to comment.
Something went wrong with that request. Please try again.