Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

minor: fixing copyrights, consolidating into LICENSE. I should be doi…

…ng something more important.
  • Loading branch information...
commit be188736da4add632ee7466e8cec08dcff58adb7 1 parent cea6e7f
Brandon Black brandonblack authored

Showing 44 changed files with 4 additions and 741 deletions. Show diff stats Hide diff stats

  1. +1 1  LICENSE
  2. +1 1  README.md
  3. +0 16 bin/b2json
  4. +2 24 bin/j2bson
  5. +0 16 ext/cbson/bson_buffer.c
  6. +0 16 ext/cbson/bson_buffer.h
  7. +0 16 ext/cbson/cbson.c
  8. +0 16 ext/cbson/encoding_helpers.c
  9. +0 16 ext/cbson/encoding_helpers.h
  10. +0 16 ext/cbson/version.h
  11. +0 16 lib/bson.rb
  12. +0 18 lib/bson/bson_c.rb
  13. +0 18 lib/bson/bson_ruby.rb
  14. +0 18 lib/bson/byte_buffer.rb
  15. +0 18 lib/bson/exceptions.rb
  16. +0 18 lib/bson/ordered_hash.rb
  17. +0 18 lib/bson/support/hash_with_indifferent_access.rb
  18. +0 18 lib/bson/types/binary.rb
  19. +0 18 lib/bson/types/code.rb
  20. +0 18 lib/bson/types/dbref.rb
  21. +0 18 lib/bson/types/min_max_keys.rb
  22. +0 18 lib/bson/types/object_id.rb
  23. +0 18 lib/bson/types/timestamp.rb
  24. +0 18 lib/mongo.rb
  25. +0 17 lib/mongo/collection.rb
  26. +0 16 lib/mongo/cursor.rb
  27. +0 18 lib/mongo/db.rb
  28. +0 19 lib/mongo/exceptions.rb
  29. +0 18 lib/mongo/gridfs/grid.rb
  30. +0 18 lib/mongo/gridfs/grid_ext.rb
  31. +0 18 lib/mongo/gridfs/grid_file_system.rb
  32. +0 18 lib/mongo/gridfs/grid_io.rb
  33. +0 18 lib/mongo/legacy.rb
  34. +0 18 lib/mongo/mongo_client.rb
  35. +0 18 lib/mongo/mongo_replica_set_client.rb
  36. +0 18 lib/mongo/mongo_sharded_client.rb
  37. +0 17 lib/mongo/util/conversions.rb
  38. +0 18 lib/mongo/util/core_ext.rb
  39. +0 15 lib/mongo/util/pool.rb
  40. +0 17 lib/mongo/util/server_version.rb
  41. +0 18 lib/mongo/util/support.rb
  42. +0 18 lib/mongo/util/thread_local_variable_manager.rb
  43. +0 18 lib/mongo/util/uri_parser.rb
  44. +0 18 lib/mongo/util/write_concern.rb
2  LICENSE
@@ -175,7 +175,7 @@
175 175
176 176 END OF TERMS AND CONDITIONS
177 177
178   - Copyright 2008-2010 10gen, Inc.
  178 + Copyright (C) 2008-2013 10gen, Inc.
179 179
180 180 Licensed under the Apache License, Version 2.0 (the "License");
181 181 you may not use this file except in compliance with the License.
2  README.md
Source Rendered
@@ -334,7 +334,7 @@ See [credits](https://github.com/mongodb/mongo-ruby-driver/wiki/Credits).
334 334
335 335 # License
336 336
337   - Copyright 2008-2010 10gen Inc.
  337 + Copyright (C) 2008-2013 10gen Inc.
338 338
339 339 Licensed under the Apache License, Version 2.0 (the "License");
340 340 you may not use this file except in compliance with the License.
16 bin/b2json
... ... @@ -1,22 +1,6 @@
1 1 #!/usr/bin/env ruby
2 2 # encoding: UTF-8
3 3
4   -# --
5   -# Copyright (C) 2008-2010 10gen Inc.
6   -#
7   -# Licensed under the Apache License, Version 2.0 (the "License");
8   -# you may not use this file except in compliance with the License.
9   -# You may obtain a copy of the License at
10   -#
11   -# http://www.apache.org/licenses/LICENSE-2.0
12   -#
13   -# Unless required by applicable law or agreed to in writing, software
14   -# distributed under the License is distributed on an "AS IS" BASIS,
15   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   -# See the License for the specific language governing permissions and
17   -# limitations under the License.
18   -# ++
19   -
20 4 require 'rubygems'
21 5 require 'bson'
22 6
26 bin/j2bson
... ... @@ -1,39 +1,17 @@
1 1 #!/usr/bin/env ruby
2 2 # encoding: UTF-8
3 3
4   -# --
5   -# Copyright (C) 2008-2010 10gen Inc.
6   -#
7   -# Licensed under the Apache License, Version 2.0 (the "License");
8   -# you may not use this file except in compliance with the License.
9   -# You may obtain a copy of the License at
10   -#
11   -# http://www.apache.org/licenses/LICENSE-2.0
12   -#
13   -# Unless required by applicable law or agreed to in writing, software
14   -# distributed under the License is distributed on an "AS IS" BASIS,
15   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   -# See the License for the specific language governing permissions and
17   -# limitations under the License.
18   -# ++
19   -
20 4 require 'rubygems'
21 5 require 'bson'
22 6
23   -# We don't use YAJL because we need to specify the class
24   -# to store the JSON object in. BSON is ordered so we need BSON::OrderedHash
25   -#
26   -# We use json/pure because json/ext is broken with BSON::OrderedHash
27   -# (probably for the same reasons that we can't use YAJL).
28   -#
29 7 # Note that, at the moment, this will not properly round-trip
30 8 # in all cases from the output generated by b2json.
31 9 begin
32 10 require 'json/pure' # broken with 'json/ext'
33 11 rescue LoadError
34 12 puts "This script requires json/pure. Please install one of the following:"
35   - puts " gem install json_pure"
36   - puts " gem install json"
  13 + puts " gem install json_pure"
  14 + puts " gem install json"
37 15 Process.exit
38 16 end
39 17
16 ext/cbson/bson_buffer.c
... ... @@ -1,19 +1,3 @@
1   -/*
2   - * Copyright 2009-2010 10gen, Inc.
3   - *
4   - * Licensed under the Apache License, Version 2.0 (the "License");
5   - * you may not use this file except in compliance with the License.
6   - * You may obtain a copy of the License at
7   - *
8   - * http://www.apache.org/licenses/LICENSE-2.0
9   - *
10   - * Unless required by applicable law or agreed to in writing, software
11   - * distributed under the License is distributed on an "AS IS" BASIS,
12   - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   - * See the License for the specific language governing permissions and
14   - * limitations under the License.
15   - */
16   -
17 1 #include <stdlib.h>
18 2 #include <string.h>
19 3
16 ext/cbson/bson_buffer.h
... ... @@ -1,19 +1,3 @@
1   -/*
2   - * Copyright 2009-2010 10gen, Inc.
3   - *
4   - * Licensed under the Apache License, Version 2.0 (the "License");
5   - * you may not use this file except in compliance with the License.
6   - * You may obtain a copy of the License at
7   - *
8   - * http://www.apache.org/licenses/LICENSE-2.0
9   - *
10   - * Unless required by applicable law or agreed to in writing, software
11   - * distributed under the License is distributed on an "AS IS" BASIS,
12   - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   - * See the License for the specific language governing permissions and
14   - * limitations under the License.
15   - */
16   -
17 1 #ifndef _BSON_BUFFER_H
18 2 #define _BSON_BUFFER_H
19 3
16 ext/cbson/cbson.c
... ... @@ -1,20 +1,4 @@
1 1 /*
2   - * Copyright 2009-2010 10gen, Inc.
3   - *
4   - * Licensed under the Apache License, Version 2.0 (the "License");
5   - * you may not use this file except in compliance with the License.
6   - * You may obtain a copy of the License at
7   - *
8   - * http://www.apache.org/licenses/LICENSE-2.0
9   - *
10   - * Unless required by applicable law or agreed to in writing, software
11   - * distributed under the License is distributed on an "AS IS" BASIS,
12   - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   - * See the License for the specific language governing permissions and
14   - * limitations under the License.
15   - */
16   -
17   -/*
18 2 * This file contains C implementations of some of the functions needed by the
19 3 * bson module. If possible, these implementations should be used to speed up
20 4 * BSON encoding and decoding.
16 ext/cbson/encoding_helpers.c
... ... @@ -1,19 +1,3 @@
1   -/*
2   - * Copyright 2009-2010 10gen, Inc.
3   - *
4   - * Licensed under the Apache License, Version 2.0 (the "License");
5   - * you may not use this file except in compliance with the License.
6   - * You may obtain a copy of the License at
7   - *
8   - * http://www.apache.org/licenses/LICENSE-2.0
9   - *
10   - * Unless required by applicable law or agreed to in writing, software
11   - * distributed under the License is distributed on an "AS IS" BASIS,
12   - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   - * See the License for the specific language governing permissions and
14   - * limitations under the License.
15   - */
16   -
17 1 #include "encoding_helpers.h"
18 2
19 3 /*
16 ext/cbson/encoding_helpers.h
... ... @@ -1,19 +1,3 @@
1   -/*
2   - * Copyright 2009-2010 10gen, Inc.
3   - *
4   - * Licensed under the Apache License, Version 2.0 (the "License");
5   - * you may not use this file except in compliance with the License.
6   - * You may obtain a copy of the License at
7   - *
8   - * http://www.apache.org/licenses/LICENSE-2.0
9   - *
10   - * Unless required by applicable law or agreed to in writing, software
11   - * distributed under the License is distributed on an "AS IS" BASIS,
12   - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   - * See the License for the specific language governing permissions and
14   - * limitations under the License.
15   - */
16   -
17 1 #ifndef ENCODING_HELPERS_H
18 2 #define ENCODING_HELPERS_H
19 3
16 ext/cbson/version.h
... ... @@ -1,17 +1 @@
1   -/*
2   - * Copyright 2009-2010 10gen, Inc.
3   - *
4   - * Licensed under the Apache License, Version 2.0 (the "License");
5   - * you may not use this file except in compliance with the License.
6   - * You may obtain a copy of the License at
7   - *
8   - * http://www.apache.org/licenses/LICENSE-2.0
9   - *
10   - * Unless required by applicable law or agreed to in writing, software
11   - * distributed under the License is distributed on an "AS IS" BASIS,
12   - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   - * See the License for the specific language governing permissions and
14   - * limitations under the License.
15   - */
16   -
17 1 #define VERSION "1.8.2"
16 lib/bson.rb
... ... @@ -1,19 +1,3 @@
1   -# --
2   -# Copyright (C) 2008-2012 10gen Inc.
3   -#
4   -# Licensed under the Apache License, Version 2.0 (the "License");
5   -# you may not use this file except in compliance with the License.
6   -# You may obtain a copy of the License at
7   -#
8   -# http://www.apache.org/licenses/LICENSE-2.0
9   -#
10   -# Unless required by applicable law or agreed to in writing, software
11   -# distributed under the License is distributed on an "AS IS" BASIS,
12   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   -# See the License for the specific language governing permissions and
14   -# limitations under the License.
15   -# ++
16   -
17 1 module BSON
18 2 DEFAULT_MAX_BSON_SIZE = 4 * 1024 * 1024
19 3
18 lib/bson/bson_c.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 # A thin wrapper for the CBson class
20 2 module BSON
21 3 class BSON_C
18 lib/bson/bson_ruby.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 module BSON
20 2 NULL_BYTE = "\x00"
21 3
18 lib/bson/byte_buffer.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 # A byte buffer.
20 2 module BSON
21 3 class ByteBuffer
18 lib/bson/exceptions.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 module BSON
20 2 # Generic Mongo Ruby Driver exception class.
21 3 class MongoRubyError < StandardError; end
18 lib/bson/ordered_hash.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 # A hash in which the order of keys are preserved.
20 2 #
21 3 # Under Ruby 1.9 and greater, this class has no added methods because Ruby's
18 lib/bson/support/hash_with_indifferent_access.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -#
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 require 'active_support'
20 2 begin
21 3 require 'active_support/hash_with_indifferent_access'
18 lib/bson/types/binary.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 require 'bson/byte_buffer'
20 2
21 3 module BSON
18 lib/bson/types/code.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 module BSON
20 2
21 3 # JavaScript code to be evaluated by MongoDB.
18 lib/bson/types/dbref.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 module BSON
20 2
21 3 # A reference to another object in a MongoDB database.
18 lib/bson/types/min_max_keys.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 module BSON
20 2
21 3 # A class representing the BSON MaxKey type. MaxKey will always compare greater than
18 lib/bson/types/object_id.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 require 'thread'
20 2 require 'socket'
21 3 require 'digest/md5'
18 lib/bson/types/timestamp.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 module BSON
20 2
21 3 # A class for representing BSON Timestamps. The Timestamp type is used
18 lib/mongo.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -#
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 module Mongo
20 2 ASCENDING = 1
21 3 DESCENDING = -1
17 lib/mongo/collection.rb
... ... @@ -1,20 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -
18 1 module Mongo
19 2
20 3 # A named collection of documents in a database.
16 lib/mongo/cursor.rb
... ... @@ -1,19 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# Copyright (C) 2008-2012 10gen Inc.
4   -#
5   -# Licensed under the Apache License, Version 2.0 (the "License");
6   -# you may not use this file except in compliance with the License.
7   -# You may obtain a copy of the License at
8   -#
9   -# http://www.apache.org/licenses/LICENSE-2.0
10   -#
11   -# Unless required by applicable law or agreed to in writing, software
12   -# distributed under the License is distributed on an "AS IS" BASIS,
13   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   -# See the License for the specific language governing permissions and
15   -# limitations under the License.
16   -
17 1 module Mongo
18 2
19 3 # A cursor over query results. Returned objects are hashes.
18 lib/mongo/db.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 require 'socket'
20 2 require 'thread'
21 3
19 lib/mongo/exceptions.rb
... ... @@ -1,22 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -#
4   -# --
5   -# Copyright (C) 2008-2012 10gen Inc.
6   -#
7   -# Licensed under the Apache License, Version 2.0 (the "License");
8   -# you may not use this file except in compliance with the License.
9   -# You may obtain a copy of the License at
10   -#
11   -# http://www.apache.org/licenses/LICENSE-2.0
12   -#
13   -# Unless required by applicable law or agreed to in writing, software
14   -# distributed under the License is distributed on an "AS IS" BASIS,
15   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   -# See the License for the specific language governing permissions and
17   -# limitations under the License.
18   -# ++
19   -
20 1 module Mongo
21 2 # Generic Mongo Ruby Driver exception class.
22 3 class MongoRubyError < StandardError; end
18 lib/mongo/gridfs/grid.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 module Mongo
20 2
21 3 # Implementation of the MongoDB GridFS specification. A file store.
18 lib/mongo/gridfs/grid_ext.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 module Mongo
20 2 module GridExt
21 3 module InstanceMethods
18 lib/mongo/gridfs/grid_file_system.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 module Mongo
20 2
21 3 # A file store built on the GridFS specification featuring
18 lib/mongo/gridfs/grid_io.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 require 'digest/md5'
20 2
21 3 module Mongo
18 lib/mongo/legacy.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 module Mongo
20 2 module LegacyWriteConcern
21 3 @legacy_write_concern = true
18 lib/mongo/mongo_client.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 require 'set'
20 2 require 'socket'
21 3 require 'thread'
18 lib/mongo/mongo_replica_set_client.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 module Mongo
20 2
21 3 # Instantiates and manages connections to a MongoDB replica set.
18 lib/mongo/mongo_sharded_client.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 module Mongo
20 2
21 3 # Instantiates and manages connections to a MongoDB sharded cluster for high availability.
17 lib/mongo/util/conversions.rb
... ... @@ -1,20 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18 1 module Mongo #:nodoc:
19 2
20 3 # Utility module to include when needing to convert certain types of
18 lib/mongo/util/core_ext.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 #:nodoc:
20 2 class Object
21 3
15 lib/mongo/util/pool.rb
... ... @@ -1,18 +1,3 @@
1   -# --
2   -# Copyright (C) 2008-2012 10gen Inc.
3   -#
4   -# Licensed under the Apache License, Version 2.0 (the "License");
5   -# you may not use this file except in compliance with the License.
6   -# You may obtain a copy of the License at
7   -#
8   -# http://www.apache.org/licenses/LICENSE-2.0
9   -#
10   -# Unless required by applicable law or agreed to in writing, software
11   -# distributed under the License is distributed on an "AS IS" BASIS,
12   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   -# See the License for the specific language governing permissions and
14   -# limitations under the License.
15   -
16 1 module Mongo
17 2 class Pool
18 3 PING_ATTEMPTS = 6
17 lib/mongo/util/server_version.rb
... ... @@ -1,20 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18 1 module Mongo
19 2 # Simple class for comparing server versions.
20 3 class ServerVersion
18 lib/mongo/util/support.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 require 'digest/md5'
20 2
21 3 module Mongo
18 lib/mongo/util/thread_local_variable_manager.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 #:nodoc:
20 2 module Mongo
21 3 module ThreadLocalVariableManager
18 lib/mongo/util/uri_parser.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2012 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 require 'cgi'
20 2
21 3 module Mongo
18 lib/mongo/util/write_concern.rb
... ... @@ -1,21 +1,3 @@
1   -# encoding: UTF-8
2   -
3   -# --
4   -# Copyright (C) 2008-2011 10gen Inc.
5   -#
6   -# Licensed under the Apache License, Version 2.0 (the "License");
7   -# you may not use this file except in compliance with the License.
8   -# You may obtain a copy of the License at
9   -#
10   -# http://www.apache.org/licenses/LICENSE-2.0
11   -#
12   -# Unless required by applicable law or agreed to in writing, software
13   -# distributed under the License is distributed on an "AS IS" BASIS,
14   -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   -# See the License for the specific language governing permissions and
16   -# limitations under the License.
17   -# ++
18   -
19 1 module Mongo
20 2 module WriteConcern
21 3

0 comments on commit be18873

Please sign in to comment.
Something went wrong with that request. Please try again.