Skip to content

Commit

Permalink
move code into old/
Browse files Browse the repository at this point in the history
  • Loading branch information
tmm1 committed Aug 24, 2008
1 parent f1f0bfc commit 83b3d53
Show file tree
Hide file tree
Showing 11 changed files with 67 additions and 4 deletions.
1 change: 0 additions & 1 deletion jruby/10gen.properties

This file was deleted.

2 changes: 1 addition & 1 deletion buffer.rb → old/buffer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ def extract
end

if $0 =~ /bacon/ or $0 == __FILE__
require 'rubygems'
require 'bacon'
Bacon.summary_on_exit
include Mongo

describe Buffer do
Expand Down
41 changes: 41 additions & 0 deletions old/jruby/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/build"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/xercesImpl.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/wsdl4j-1.5.1.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/wsdl2js.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/testng-5.8-jdk15.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/slf4j-log4j.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/simplecaptcha-20050925.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/saaj.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/pircbot.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/pcj.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/nekohtml.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/mysql.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/mina-core-1.0.2.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/mailapi.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/mail.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/log4j.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/log4j-1.2.8.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/jruby.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/jnotify-0.91.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/jline-0.9.91.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/jaxrpc.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/httpunit.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/ftpserver-core-1.0-incubator-SNAPSHOT.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/ftplet-api-1.0-incubator-SNAPSHOT.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/fast-md5.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/ecj.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/dnsjava-2.0.0.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/commons-logging-1.0.4.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/commons-discovery-0.2.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/commons-cli-1.1.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/bsf.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/backport-util-concurrent-2.2.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/axis.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/axis-ant.jar"/>
<classpathentry kind="lib" path="/Users/aman/code/10gen/appserver/include/activation.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
17 changes: 17 additions & 0 deletions old/jruby/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>rmongo</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
1 change: 1 addition & 0 deletions old/jruby/10gen.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
BASE=/Users/aman/code/10gen/appserver/libraries
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 7 additions & 2 deletions rmongo.rb → old/rmongo.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def initialize opts = {}
@id = 0
@responses = {}
@namespace = 'default.test'
timeout 0.5
timeout opts[:timeout] || 0.5
errback{
raise Error, 'could not connect to server'
}
Expand Down Expand Up @@ -288,7 +288,7 @@ def desc

# switch to editors namespace
mongo.namespace = 'default.editors'

# delete all rows
mongo.remove({})

Expand All @@ -308,6 +308,11 @@ def desc
mongo.insert(:name => 'platforms', :ns => 'default.editors', :key => { :platform => true })
end

# match multiple tags
mongo.find(:platform.in [:linux, :osx]) do |results|

end

# find objects with linux tag # XXX how can i find an object with two tags?
mongo.find(:platform => :linux) do |results|

Expand Down

0 comments on commit 83b3d53

Please sign in to comment.