Permalink
Browse files

Converting to bundler

  • Loading branch information...
1 parent 015910d commit 22a7f9243770eb6b7c80a2c7a25aaae9993aa210 @konklone konklone committed Jan 6, 2011
Showing with 94 additions and 14 deletions.
  1. +2 −0 .gitignore
  2. +26 −0 Gemfile
  3. +64 −0 Gemfile.lock
  4. +2 −14 environment.rb
View
@@ -2,3 +2,5 @@
/config.ru
/tmp/*
/data
+/vendor/gems
+/.bundle
View
26 Gemfile
@@ -0,0 +1,26 @@
+source 'http://rubygems.org'
+
+gem 'ruby-hmac', '0.4.0'
+
+gem 'sinatra', '1.0'
+gem 'activesupport', '= 2.3.5'
+
+gem 'mongo', '1.1.5'
+gem 'bson_ext', '1.1.5'
+gem 'plucky', '0.3.6'
+
+gem 'mongo_mapper', '0.8.6'
+
+gem 'pony', '0.6'
+
+group :development do
+ gem 'mongrel', '1.2.0.pre2'
+ gem 'wirble'
+end
+
+# individual tasks
+gem 'hpricot', '0.8.2'
+gem 'fastercsv', '1.5.3'
+gem 'votesmart', '0.3.3'
+gem 'httparty', '0.6.1' # undocumented requirement of votesmart
+gem 'sunlight', '1.0.7'
View
@@ -0,0 +1,64 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ activesupport (2.3.5)
+ bson (1.1.5)
+ bson_ext (1.1.5)
+ crack (0.1.8)
+ daemons (1.0.10)
+ fastercsv (1.5.3)
+ gem_plugin (0.2.3)
+ hpricot (0.8.2)
+ httparty (0.6.1)
+ crack (= 0.1.8)
+ jnunemaker-validatable (1.8.4)
+ activesupport (>= 2.3.4)
+ json (1.4.6)
+ mime-types (1.16)
+ mongo (1.1.5)
+ bson (>= 1.1.5)
+ mongo_mapper (0.8.6)
+ activesupport (>= 2.3.4)
+ jnunemaker-validatable (~> 1.8.4)
+ plucky (~> 0.3.6)
+ mongrel (1.2.0.pre2)
+ daemons (~> 1.0.10)
+ gem_plugin (~> 0.2.3)
+ patron (0.4.11)
+ plucky (0.3.6)
+ mongo (~> 1.1)
+ pony (0.6)
+ mime-types (>= 1.16)
+ tmail (~> 1.0)
+ rack (1.2.1)
+ ruby-hmac (0.4.0)
+ sinatra (1.0)
+ rack (>= 1.0)
+ sunlight (1.0.7)
+ json (>= 1.1.3)
+ ym4r (>= 0.6.1)
+ tmail (1.2.7.1)
+ votesmart (0.3.3)
+ patron (>= 0.4.6)
+ wirble (0.1.3)
+ ym4r (0.6.1)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ activesupport (= 2.3.5)
+ bson_ext (= 1.1.5)
+ fastercsv (= 1.5.3)
+ hpricot (= 0.8.2)
+ httparty (= 0.6.1)
+ mongo (= 1.1.5)
+ mongo_mapper (= 0.8.6)
+ mongrel (= 1.2.0.pre2)
+ plucky (= 0.3.6)
+ pony (= 0.6)
+ ruby-hmac (= 0.4.0)
+ sinatra (= 1.0)
+ sunlight (= 1.0.7)
+ votesmart (= 0.3.3)
+ wirble
View
@@ -1,17 +1,4 @@
-require 'rubygems'
require 'sinatra'
-require 'sunlight'
-
-
-gem 'activesupport', '= 2.3.5'
-#gem 'plucky', '=0.3.3'
-#gem 'pony', '=0.6'
-gem 'mongo', '=1.0.7'
-gem 'mongo_ext', '= 0.19.3'
-gem 'mongo_mapper', '= 0.8.3'
-
-require 'active_support'
-require 'mongo'
require 'mongo_mapper'
def config
@@ -33,9 +20,10 @@ def config
Dir.glob('models/*.rb').each {|model| load model}
Dir.glob('sources/*.rb').each {|model| load model}
+require 'sunlight'
configure do
Report.email = config[:email]
Sunlight::Base.api_key = config[:sunlight_api_key]
VoteSmart.api_key = config[:votesmart_api_key]
-end
+end

0 comments on commit 22a7f92

Please sign in to comment.