From 232a7f71696325ca78b6dab0e097528bc46082b1 Mon Sep 17 00:00:00 2001 From: Geir Magnusson Jr Date: Sun, 15 Feb 2009 08:24:14 -0500 Subject: [PATCH] Clarify license to be the Apache License v2.0. Was a mix and the readme still reflected AGPL --- README.rdoc | 21 +++++++++++---------- lib/mongo/admin.rb | 18 +++++++++--------- lib/mongo/collection.rb | 18 +++++++++--------- lib/mongo/cursor.rb | 18 +++++++++--------- lib/mongo/db.rb | 18 +++++++++--------- lib/mongo/gridfs.rb | 15 +++++++++++++++ lib/mongo/gridfs/chunk.rb | 16 ++++++++++++++++ lib/mongo/gridfs/grid_store.rb | 16 ++++++++++++++++ lib/mongo/message.rb | 16 ++++++++++++++++ lib/mongo/message/get_more_message.rb | 16 ++++++++++++++++ lib/mongo/message/insert_message.rb | 16 ++++++++++++++++ lib/mongo/message/kill_cursors_message.rb | 16 ++++++++++++++++ lib/mongo/message/message.rb | 16 ++++++++++++++++ lib/mongo/message/message_header.rb | 16 ++++++++++++++++ lib/mongo/message/msg_message.rb | 16 ++++++++++++++++ lib/mongo/message/opcodes.rb | 16 ++++++++++++++++ lib/mongo/message/query_message.rb | 16 ++++++++++++++++ lib/mongo/message/remove_message.rb | 16 ++++++++++++++++ lib/mongo/message/update_message.rb | 16 ++++++++++++++++ lib/mongo/mongo.rb | 18 +++++++++--------- lib/mongo/query.rb | 18 +++++++++--------- lib/mongo/types/binary.rb | 18 +++++++++--------- lib/mongo/types/dbref.rb | 18 +++++++++--------- lib/mongo/types/objectid.rb | 18 +++++++++--------- lib/mongo/types/regexp_of_holding.rb | 18 +++++++++--------- lib/mongo/types/undefined.rb | 18 +++++++++--------- lib/mongo/util/byte_buffer.rb | 18 +++++++++--------- lib/mongo/util/ordered_hash.rb | 18 +++++++++--------- lib/mongo/util/xml_to_ruby.rb | 18 +++++++++--------- 29 files changed, 360 insertions(+), 136 deletions(-) diff --git a/README.rdoc b/README.rdoc index 3220262..1872a9d 100644 --- a/README.rdoc +++ b/README.rdoc @@ -315,16 +315,17 @@ Adrian Madrid, aemadrid@gmail.com = License -Copyright (C) 2008-2009 10gen Inc. + Copyright 2008-2009 10gen Inc. -This program is free software: you can redistribute it and/or modify it under -the terms of the GNU Affero General Public License, version 3, as published by -the Free Software Foundation. + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at -This program is distributed in the hope that it will be useful, but WITHOUT -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more -details. + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. -See http://www.gnu.org/licenses for a copy of the GNU Affero General Public -License. diff --git a/lib/mongo/admin.rb b/lib/mongo/admin.rb index 71896c9..b1e50e6 100644 --- a/lib/mongo/admin.rb +++ b/lib/mongo/admin.rb @@ -1,17 +1,17 @@ # -- # Copyright (C) 2008-2009 10gen Inc. # -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU Affero General Public License, version 3, as -# published by the Free Software Foundation. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License -# for more details. +# http://www.apache.org/licenses/LICENSE-2.0 # -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # ++ require 'mongo/util/ordered_hash' diff --git a/lib/mongo/collection.rb b/lib/mongo/collection.rb index b96eb3e..af1c90f 100644 --- a/lib/mongo/collection.rb +++ b/lib/mongo/collection.rb @@ -1,17 +1,17 @@ # -- # Copyright (C) 2008-2009 10gen Inc. # -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU Affero General Public License, version 3, as -# published by the Free Software Foundation. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License -# for more details. +# http://www.apache.org/licenses/LICENSE-2.0 # -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # ++ require 'mongo/query' diff --git a/lib/mongo/cursor.rb b/lib/mongo/cursor.rb index 868f73c..7ad884d 100644 --- a/lib/mongo/cursor.rb +++ b/lib/mongo/cursor.rb @@ -1,17 +1,17 @@ # -- # Copyright (C) 2008-2009 10gen Inc. # -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU Affero General Public License, version 3, as -# published by the Free Software Foundation. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License -# for more details. +# http://www.apache.org/licenses/LICENSE-2.0 # -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # ++ require 'mongo/message' diff --git a/lib/mongo/db.rb b/lib/mongo/db.rb index d1809c7..ba4d13d 100644 --- a/lib/mongo/db.rb +++ b/lib/mongo/db.rb @@ -1,17 +1,17 @@ # -- # Copyright (C) 2008-2009 10gen Inc. # -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU Affero General Public License, version 3, as -# published by the Free Software Foundation. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License -# for more details. +# http://www.apache.org/licenses/LICENSE-2.0 # -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # ++ require 'socket' diff --git a/lib/mongo/gridfs.rb b/lib/mongo/gridfs.rb index d6fc1b2..18015f5 100644 --- a/lib/mongo/gridfs.rb +++ b/lib/mongo/gridfs.rb @@ -1 +1,16 @@ +# -- +# Copyright (C) 2008-2009 10gen Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ++ require 'mongo/gridfs/grid_store' diff --git a/lib/mongo/gridfs/chunk.rb b/lib/mongo/gridfs/chunk.rb index 5ac68d9..d492e6e 100644 --- a/lib/mongo/gridfs/chunk.rb +++ b/lib/mongo/gridfs/chunk.rb @@ -1,3 +1,19 @@ +# -- +# Copyright (C) 2008-2009 10gen Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ++ + require 'mongo/types/objectid' require 'mongo/util/byte_buffer' require 'mongo/util/ordered_hash' diff --git a/lib/mongo/gridfs/grid_store.rb b/lib/mongo/gridfs/grid_store.rb index e4d3985..d7e80be 100644 --- a/lib/mongo/gridfs/grid_store.rb +++ b/lib/mongo/gridfs/grid_store.rb @@ -1,3 +1,19 @@ +# -- +# Copyright (C) 2008-2009 10gen Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ++ + require 'mongo/types/objectid' require 'mongo/util/ordered_hash' require 'mongo/gridfs/chunk' diff --git a/lib/mongo/message.rb b/lib/mongo/message.rb index 461e35a..9b70342 100644 --- a/lib/mongo/message.rb +++ b/lib/mongo/message.rb @@ -1,3 +1,19 @@ +# -- +# Copyright (C) 2008-2009 10gen Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ++ + %w(get_more_message insert_message kill_cursors_message message_header msg_message query_message remove_message update_message).each { |f| require "mongo/message/#{f}" diff --git a/lib/mongo/message/get_more_message.rb b/lib/mongo/message/get_more_message.rb index 9ff56de..935305b 100644 --- a/lib/mongo/message/get_more_message.rb +++ b/lib/mongo/message/get_more_message.rb @@ -1,3 +1,19 @@ +# -- +# Copyright (C) 2008-2009 10gen Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ++ + require 'mongo/message/message' require 'mongo/message/opcodes' diff --git a/lib/mongo/message/insert_message.rb b/lib/mongo/message/insert_message.rb index e0b0087..b202445 100644 --- a/lib/mongo/message/insert_message.rb +++ b/lib/mongo/message/insert_message.rb @@ -1,3 +1,19 @@ +# -- +# Copyright (C) 2008-2009 10gen Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ++ + require 'mongo/message/message' require 'mongo/message/opcodes' diff --git a/lib/mongo/message/kill_cursors_message.rb b/lib/mongo/message/kill_cursors_message.rb index 4f9adfa..6c3d5ca 100644 --- a/lib/mongo/message/kill_cursors_message.rb +++ b/lib/mongo/message/kill_cursors_message.rb @@ -1,3 +1,19 @@ +# -- +# Copyright (C) 2008-2009 10gen Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ++ + require 'mongo/message/message' require 'mongo/message/opcodes' diff --git a/lib/mongo/message/message.rb b/lib/mongo/message/message.rb index 8ca06ba..6d55e19 100644 --- a/lib/mongo/message/message.rb +++ b/lib/mongo/message/message.rb @@ -1,3 +1,19 @@ +# -- +# Copyright (C) 2008-2009 10gen Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ++ + require 'mongo/util/bson' require 'mongo/util/byte_buffer' diff --git a/lib/mongo/message/message_header.rb b/lib/mongo/message/message_header.rb index 19cb837..31a59a1 100644 --- a/lib/mongo/message/message_header.rb +++ b/lib/mongo/message/message_header.rb @@ -1,3 +1,19 @@ +# -- +# Copyright (C) 2008-2009 10gen Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ++ + require 'mongo/util/byte_buffer' module XGen diff --git a/lib/mongo/message/msg_message.rb b/lib/mongo/message/msg_message.rb index a7f3702..851edec 100644 --- a/lib/mongo/message/msg_message.rb +++ b/lib/mongo/message/msg_message.rb @@ -1,3 +1,19 @@ +# -- +# Copyright (C) 2008-2009 10gen Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ++ + require 'mongo/message/message' require 'mongo/message/opcodes' diff --git a/lib/mongo/message/opcodes.rb b/lib/mongo/message/opcodes.rb index 9980400..b931a64 100644 --- a/lib/mongo/message/opcodes.rb +++ b/lib/mongo/message/opcodes.rb @@ -1,3 +1,19 @@ +# -- +# Copyright (C) 2008-2009 10gen Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ++ + module XGen module Mongo module Driver diff --git a/lib/mongo/message/query_message.rb b/lib/mongo/message/query_message.rb index c626d03..4ff561e 100644 --- a/lib/mongo/message/query_message.rb +++ b/lib/mongo/message/query_message.rb @@ -1,3 +1,19 @@ +# -- +# Copyright (C) 2008-2009 10gen Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ++ + require 'mongo/message/message' require 'mongo/message/opcodes' require 'mongo/util/ordered_hash' diff --git a/lib/mongo/message/remove_message.rb b/lib/mongo/message/remove_message.rb index 830aff7..f2da33c 100644 --- a/lib/mongo/message/remove_message.rb +++ b/lib/mongo/message/remove_message.rb @@ -1,3 +1,19 @@ +# -- +# Copyright (C) 2008-2009 10gen Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ++ + require 'mongo/message/message' require 'mongo/message/opcodes' diff --git a/lib/mongo/message/update_message.rb b/lib/mongo/message/update_message.rb index a15e9da..129b61f 100644 --- a/lib/mongo/message/update_message.rb +++ b/lib/mongo/message/update_message.rb @@ -1,3 +1,19 @@ +# -- +# Copyright (C) 2008-2009 10gen Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ++ + require 'mongo/message/message' require 'mongo/message/opcodes' diff --git a/lib/mongo/mongo.rb b/lib/mongo/mongo.rb index af42851..ce3d8cf 100644 --- a/lib/mongo/mongo.rb +++ b/lib/mongo/mongo.rb @@ -1,17 +1,17 @@ # -- # Copyright (C) 2008-2009 10gen Inc. # -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU Affero General Public License, version 3, as -# published by the Free Software Foundation. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License -# for more details. +# http://www.apache.org/licenses/LICENSE-2.0 # -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # ++ require 'mongo/db' diff --git a/lib/mongo/query.rb b/lib/mongo/query.rb index fab98cb..06ca41c 100644 --- a/lib/mongo/query.rb +++ b/lib/mongo/query.rb @@ -1,17 +1,17 @@ # -- # Copyright (C) 2008-2009 10gen Inc. # -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU Affero General Public License, version 3, as -# published by the Free Software Foundation. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License -# for more details. +# http://www.apache.org/licenses/LICENSE-2.0 # -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # ++ require 'mongo/collection' diff --git a/lib/mongo/types/binary.rb b/lib/mongo/types/binary.rb index 835d31a..40d2e46 100644 --- a/lib/mongo/types/binary.rb +++ b/lib/mongo/types/binary.rb @@ -1,17 +1,17 @@ # -- # Copyright (C) 2008-2009 10gen Inc. # -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU Affero General Public License, version 3, as -# published by the Free Software Foundation. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License -# for more details. +# http://www.apache.org/licenses/LICENSE-2.0 # -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # ++ require 'mongo/util/byte_buffer' diff --git a/lib/mongo/types/dbref.rb b/lib/mongo/types/dbref.rb index b9d9791..45df195 100644 --- a/lib/mongo/types/dbref.rb +++ b/lib/mongo/types/dbref.rb @@ -1,17 +1,17 @@ # -- # Copyright (C) 2008-2009 10gen Inc. # -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU Affero General Public License, version 3, as -# published by the Free Software Foundation. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License -# for more details. +# http://www.apache.org/licenses/LICENSE-2.0 # -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # ++ module XGen diff --git a/lib/mongo/types/objectid.rb b/lib/mongo/types/objectid.rb index 40ff560..d81b0ad 100644 --- a/lib/mongo/types/objectid.rb +++ b/lib/mongo/types/objectid.rb @@ -1,17 +1,17 @@ # -- # Copyright (C) 2008-2009 10gen Inc. # -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU Affero General Public License, version 3, as -# published by the Free Software Foundation. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License -# for more details. +# http://www.apache.org/licenses/LICENSE-2.0 # -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # ++ require 'mutex_m' diff --git a/lib/mongo/types/regexp_of_holding.rb b/lib/mongo/types/regexp_of_holding.rb index 19115a8..92dbfd8 100644 --- a/lib/mongo/types/regexp_of_holding.rb +++ b/lib/mongo/types/regexp_of_holding.rb @@ -1,17 +1,17 @@ # -- # Copyright (C) 2008-2009 10gen Inc. # -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU Affero General Public License, version 3, as -# published by the Free Software Foundation. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License -# for more details. +# http://www.apache.org/licenses/LICENSE-2.0 # -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # ++ module XGen diff --git a/lib/mongo/types/undefined.rb b/lib/mongo/types/undefined.rb index e58c77c..61a2a07 100644 --- a/lib/mongo/types/undefined.rb +++ b/lib/mongo/types/undefined.rb @@ -1,17 +1,17 @@ # -- # Copyright (C) 2008-2009 10gen Inc. # -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU Affero General Public License, version 3, as -# published by the Free Software Foundation. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License -# for more details. +# http://www.apache.org/licenses/LICENSE-2.0 # -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # ++ module XGen diff --git a/lib/mongo/util/byte_buffer.rb b/lib/mongo/util/byte_buffer.rb index 49898b0..ec6f0ad 100644 --- a/lib/mongo/util/byte_buffer.rb +++ b/lib/mongo/util/byte_buffer.rb @@ -1,17 +1,17 @@ # -- # Copyright (C) 2008-2009 10gen Inc. # -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU Affero General Public License, version 3, as -# published by the Free Software Foundation. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License -# for more details. +# http://www.apache.org/licenses/LICENSE-2.0 # -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # ++ # A byte buffer. diff --git a/lib/mongo/util/ordered_hash.rb b/lib/mongo/util/ordered_hash.rb index ce459ba..1d53c52 100644 --- a/lib/mongo/util/ordered_hash.rb +++ b/lib/mongo/util/ordered_hash.rb @@ -1,17 +1,17 @@ # -- # Copyright (C) 2008-2009 10gen Inc. # -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU Affero General Public License, version 3, as -# published by the Free Software Foundation. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License -# for more details. +# http://www.apache.org/licenses/LICENSE-2.0 # -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # ++ # A hash in which the order of keys are preserved. diff --git a/lib/mongo/util/xml_to_ruby.rb b/lib/mongo/util/xml_to_ruby.rb index 9f18fe2..d695fb2 100644 --- a/lib/mongo/util/xml_to_ruby.rb +++ b/lib/mongo/util/xml_to_ruby.rb @@ -1,17 +1,17 @@ # -- # Copyright (C) 2008-2009 10gen Inc. # -# This program is free software: you can redistribute it and/or modify it -# under the terms of the GNU Affero General Public License, version 3, as -# published by the Free Software Foundation. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at # -# This program is distributed in the hope that it will be useful, but WITHOUT -# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or -# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License -# for more details. +# http://www.apache.org/licenses/LICENSE-2.0 # -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. # ++ require 'rexml/document'