Permalink
Browse files

add Gemfile and Ruby 1.9.2 fixes

  • Loading branch information...
1 parent be64afc commit 61f57785a60e439484a34ec0f1cab84bf510f88c @jweiss committed Aug 7, 2011
View
@@ -1 +1,2 @@
*.swp
+Gemfile.lock
View
12 Gemfile
@@ -0,0 +1,12 @@
+source :rubygems
+
+gem 'uuidtools'
+gem 'simply_stored', '0.6.5', :require => 'simply_stored/couch'
+gem 'couch_potato', '0.5.6'
+gem 'jeweler'
+
+group :test do
+ gem 'couchrest_extended_document'
+ gem 'shoulda'
+ gem 'mocha'
+end
View
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
require "rubygems"
require 'active_support/core_ext/kernel/reporting'
require "active_support/core_ext/hash"
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
module RockingChair
module CouchRestHttpAdapter
URL_PARAMETER = /[a-zA-Z0-9\-\_\%]+/
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
module RockingChair
class Database
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
module RockingChair
class Error < StandardError
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
module RockingChair
module Helper
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
module RockingChair
module HttpAdapter
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
module RockingChair
module Server
BASE_URL = /(http:\/\/)?127\.0\.0\.1:5984\//
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
module RockingChair
class View
View
@@ -1,4 +1,5 @@
-require File.dirname(__FILE__) + "/test_helper"
+# encoding: utf-8
+require File.expand_path(File.dirname(__FILE__) + "/test_helper")
class CouchRestTest < Test::Unit::TestCase
context "The HTTP Apdapter for CouchRest" do
View
@@ -1,4 +1,5 @@
-require File.dirname(__FILE__) + "/test_helper"
+# encoding: utf-8
+require File.expand_path(File.dirname(__FILE__) + "/test_helper")
class DatabaseTest < Test::Unit::TestCase
context "The database engine" do
@@ -1,4 +1,5 @@
-require File.dirname(__FILE__) + "/test_helper"
+# encoding: utf-8
+require File.expand_path(File.dirname(__FILE__) + "/test_helper")
class ExtendedCouchRestTest < Test::Unit::TestCase
context "Extended use cases for CouchRest" do
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
require 'simply_stored/couch'
class User
@@ -1,4 +1,5 @@
-require File.dirname(__FILE__) + "/test_helper"
+# encoding: utf-8
+require File.expand_path(File.dirname(__FILE__) + "/test_helper")
def recreate_db
CouchPotato.couchrest_database.delete! rescue nil
View
@@ -1,4 +1,10 @@
-$:.unshift(File.dirname(__FILE__) + "/../lib")
+# encoding: utf-8
+
+require 'rubygems'
+require 'bundler/setup'
+Bundler.require(:default, :test)
+
+$:.unshift(File.expand_path(File.dirname(__FILE__) + "/../lib"))
require "rocking_chair"
require 'test/unit'
@@ -8,8 +14,8 @@
require 'active_support/inflector'
require 'couchrest_extended_document'
-require File.dirname(__FILE__) + "/fixtures/extended_couch_rest_fixtures"
-require File.dirname(__FILE__) + "/fixtures/simply_stored_fixtures"
+require File.expand_path(File.dirname(__FILE__) + "/fixtures/extended_couch_rest_fixtures")
+require File.expand_path(File.dirname(__FILE__) + "/fixtures/simply_stored_fixtures")
RockingChair.enable
View
@@ -1,4 +1,5 @@
-require File.dirname(__FILE__) + "/test_helper"
+# encoding: utf-8
+require File.expand_path(File.dirname(__FILE__) + "/test_helper")
class ViewTest < Test::Unit::TestCase
context "A database view" do

0 comments on commit 61f5778

Please sign in to comment.