mongodb-mongo 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. data/README.rdoc +216 -0
  2. data/Rakefile +54 -0
  3. data/bin/mongo_console +21 -0
  4. data/bin/validate +51 -0
  5. data/examples/benchmarks.rb +38 -0
  6. data/examples/blog.rb +76 -0
  7. data/examples/index_test.rb +128 -0
  8. data/examples/simple.rb +17 -0
  9. data/lib/mongo/admin.rb +86 -0
  10. data/lib/mongo/collection.rb +161 -0
  11. data/lib/mongo/cursor.rb +230 -0
  12. data/lib/mongo/db.rb +399 -0
  13. data/lib/mongo/message/get_more_message.rb +21 -0
  14. data/lib/mongo/message/insert_message.rb +19 -0
  15. data/lib/mongo/message/kill_cursors_message.rb +20 -0
  16. data/lib/mongo/message/message.rb +68 -0
  17. data/lib/mongo/message/message_header.rb +34 -0
  18. data/lib/mongo/message/msg_message.rb +17 -0
  19. data/lib/mongo/message/opcodes.rb +16 -0
  20. data/lib/mongo/message/query_message.rb +67 -0
  21. data/lib/mongo/message/remove_message.rb +20 -0
  22. data/lib/mongo/message/update_message.rb +21 -0
  23. data/lib/mongo/message.rb +4 -0
  24. data/lib/mongo/mongo.rb +98 -0
  25. data/lib/mongo/query.rb +110 -0
  26. data/lib/mongo/types/binary.rb +34 -0
  27. data/lib/mongo/types/dbref.rb +37 -0
  28. data/lib/mongo/types/objectid.rb +137 -0
  29. data/lib/mongo/types/regexp_of_holding.rb +44 -0
  30. data/lib/mongo/types/undefined.rb +31 -0
  31. data/lib/mongo/util/bson.rb +431 -0
  32. data/lib/mongo/util/byte_buffer.rb +163 -0
  33. data/lib/mongo/util/ordered_hash.rb +68 -0
  34. data/lib/mongo/util/xml_to_ruby.rb +102 -0
  35. data/lib/mongo.rb +12 -0
  36. data/mongo-ruby-driver.gemspec +62 -0
  37. data/tests/test_admin.rb +60 -0
  38. data/tests/test_bson.rb +135 -0
  39. data/tests/test_byte_buffer.rb +69 -0
  40. data/tests/test_cursor.rb +66 -0
  41. data/tests/test_db.rb +85 -0
  42. data/tests/test_db_api.rb +354 -0
  43. data/tests/test_db_connection.rb +17 -0
  44. data/tests/test_message.rb +35 -0
  45. data/tests/test_objectid.rb +98 -0
  46. data/tests/test_ordered_hash.rb +85 -0
  47. data/tests/test_round_trip.rb +116 -0
  48. metadata +100 -0
metadata ADDED
@@ -0,0 +1,100 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mongodb-mongo
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.3
5
+ platform: ruby
6
+ authors:
7
+ - Jim Menard
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-01-11 00:00:00 -08:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: A pure-Ruby driver for the 10gen Mongo DB. For more information about Mongo, see http://www.mongodb.org.
17
+ email: jim@10gen.com
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - README.rdoc
24
+ files:
25
+ - bin/mongo_console
26
+ - bin/validate
27
+ - examples/benchmarks.rb
28
+ - examples/blog.rb
29
+ - examples/index_test.rb
30
+ - examples/simple.rb
31
+ - lib/mongo.rb
32
+ - lib/mongo/admin.rb
33
+ - lib/mongo/collection.rb
34
+ - lib/mongo/cursor.rb
35
+ - lib/mongo/db.rb
36
+ - lib/mongo/message/get_more_message.rb
37
+ - lib/mongo/message/insert_message.rb
38
+ - lib/mongo/message/kill_cursors_message.rb
39
+ - lib/mongo/message/message.rb
40
+ - lib/mongo/message/message_header.rb
41
+ - lib/mongo/message/msg_message.rb
42
+ - lib/mongo/message/opcodes.rb
43
+ - lib/mongo/message/query_message.rb
44
+ - lib/mongo/message/remove_message.rb
45
+ - lib/mongo/message/update_message.rb
46
+ - lib/mongo/message.rb
47
+ - lib/mongo/mongo.rb
48
+ - lib/mongo/query.rb
49
+ - lib/mongo/types/binary.rb
50
+ - lib/mongo/types/dbref.rb
51
+ - lib/mongo/types/objectid.rb
52
+ - lib/mongo/types/regexp_of_holding.rb
53
+ - lib/mongo/types/undefined.rb
54
+ - lib/mongo/util/bson.rb
55
+ - lib/mongo/util/byte_buffer.rb
56
+ - lib/mongo/util/ordered_hash.rb
57
+ - lib/mongo/util/xml_to_ruby.rb
58
+ - README.rdoc
59
+ - Rakefile
60
+ - mongo-ruby-driver.gemspec
61
+ has_rdoc: true
62
+ homepage: http://www.mongodb.org
63
+ post_install_message:
64
+ rdoc_options:
65
+ - --main
66
+ - README.rdoc
67
+ - --inline-source
68
+ require_paths:
69
+ - lib
70
+ required_ruby_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: "0"
75
+ version:
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: "0"
81
+ version:
82
+ requirements: []
83
+
84
+ rubyforge_project:
85
+ rubygems_version: 1.2.0
86
+ signing_key:
87
+ specification_version: 2
88
+ summary: Simple pure-Ruby driver for the 10gen Mongo DB
89
+ test_files:
90
+ - tests/test_admin.rb
91
+ - tests/test_bson.rb
92
+ - tests/test_byte_buffer.rb
93
+ - tests/test_cursor.rb
94
+ - tests/test_db.rb
95
+ - tests/test_db_api.rb
96
+ - tests/test_db_connection.rb
97
+ - tests/test_message.rb
98
+ - tests/test_objectid.rb
99
+ - tests/test_ordered_hash.rb
100
+ - tests/test_round_trip.rb