Apache Solr open-source search software
add ASL to several files
Erik Hatcher3250a9b7b9ce
diff --git a/client/ruby/solrb/lib/solr/request/delete.rb b/client/ruby/solrb/lib/solr/request/delete.rbindex 4386b4352b6..902f615878d 100644--- a/client/ruby/solrb/lib/solr/request/delete.rb+++ b/client/ruby/solrb/lib/solr/request/delete.rb@@ -1,3 +1,15 @@+# The ASF licenses this file to You 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 'rexml/document'module Solrdiff --git a/client/ruby/solrb/lib/solr/response/add_document.rb b/client/ruby/solrb/lib/solr/response/add_document.rbindex 8ef3602e42a..109bf315031 100644--- a/client/ruby/solrb/lib/solr/response/add_document.rb+++ b/client/ruby/solrb/lib/solr/response/add_document.rb@@ -1,3 +1,15 @@+# The ASF licenses this file to You 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 Solrmodule Responsediff --git a/client/ruby/solrb/lib/solr/response/base.rb b/client/ruby/solrb/lib/solr/response/base.rbindex 27cba9bbd1b..7d492c2cab4 100644--- a/client/ruby/solrb/lib/solr/response/base.rb+++ b/client/ruby/solrb/lib/solr/response/base.rb@@ -1,3 +1,15 @@+# The ASF licenses this file to You 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 Solrmodule Responseclass Basediff --git a/client/ruby/solrb/lib/solr/response/commit.rb b/client/ruby/solrb/lib/solr/response/commit.rbindex 68acbb22283..7916f449936 100644--- a/client/ruby/solrb/lib/solr/response/commit.rb+++ b/client/ruby/solrb/lib/solr/response/commit.rb@@ -1,3 +1,15 @@+# The ASF licenses this file to You 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 'rexml/xpath'module Solrdiff --git a/client/ruby/solrb/lib/solr/response/delete.rb b/client/ruby/solrb/lib/solr/response/delete.rbindex 58529c50285..b359e8c1aba 100644--- a/client/ruby/solrb/lib/solr/response/delete.rb+++ b/client/ruby/solrb/lib/solr/response/delete.rb@@ -1,3 +1,15 @@+# The ASF licenses this file to You 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 Solrmodule Responseclass Delete < Solr::Response::Xmldiff --git a/client/ruby/solrb/lib/solr/response/ping.rb b/client/ruby/solrb/lib/solr/response/ping.rbindex c41ced5e6f6..3cb60da5ebf 100644--- a/client/ruby/solrb/lib/solr/response/ping.rb+++ b/client/ruby/solrb/lib/solr/response/ping.rb@@ -1,3 +1,15 @@+# The ASF licenses this file to You 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 'rexml/xpath'module Solrdiff --git a/client/ruby/solrb/lib/solr/response/ruby.rb b/client/ruby/solrb/lib/solr/response/ruby.rbindex 0a574cf560e..81ebd2ef278 100644--- a/client/ruby/solrb/lib/solr/response/ruby.rb+++ b/client/ruby/solrb/lib/solr/response/ruby.rb@@ -1,3 +1,15 @@+# The ASF licenses this file to You 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 Solrmodule Responsediff --git a/client/ruby/solrb/lib/solr/response/standard.rb b/client/ruby/solrb/lib/solr/response/standard.rbindex dd5efa0fb7c..91553b2d189 100644--- a/client/ruby/solrb/lib/solr/response/standard.rb+++ b/client/ruby/solrb/lib/solr/response/standard.rb@@ -1,3 +1,15 @@+# The ASF licenses this file to You 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 Solrmodule Responseclass Standard < Solr::Response::Rubydiff --git a/client/ruby/solrb/lib/solr/response/xml.rb b/client/ruby/solrb/lib/solr/response/xml.rbindex a14f1b955f6..cd421d75f6d 100644--- a/client/ruby/solrb/lib/solr/response/xml.rb+++ b/client/ruby/solrb/lib/solr/response/xml.rb@@ -1,3 +1,15 @@+# The ASF licenses this file to You 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 'rexml/document'require 'solr/exception'diff --git a/client/ruby/solrb/test/unit/add_document_test.rb b/client/ruby/solrb/test/unit/add_document_test.rbindex 85be08abe24..af436449316 100644--- a/client/ruby/solrb/test/unit/add_document_test.rb+++ b/client/ruby/solrb/test/unit/add_document_test.rb@@ -1,3 +1,15 @@+# The ASF licenses this file to You 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 'solr_mock_base'class AddDocumentTest < SolrMockBaseTestCasediff --git a/client/ruby/solrb/test/unit/commit_test.rb b/client/ruby/solrb/test/unit/commit_test.rbindex bf0e715f87c..7c304c5fa97 100644--- a/client/ruby/solrb/test/unit/commit_test.rb+++ b/client/ruby/solrb/test/unit/commit_test.rb@@ -1,3 +1,15 @@+# The ASF licenses this file to You 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 'solr_mock_base'class CommitTest < SolrMockBaseTestCasediff --git a/client/ruby/solrb/test/unit/delete_test.rb b/client/ruby/solrb/test/unit/delete_test.rbindex a71675875bb..c6d5d94767d 100644--- a/client/ruby/solrb/test/unit/delete_test.rb+++ b/client/ruby/solrb/test/unit/delete_test.rb@@ -1,3 +1,15 @@+# The ASF licenses this file to You 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 'solr_mock_base'class DeleteTest < SolrMockBaseTestCasediff --git a/client/ruby/solrb/test/unit/ping_test.rb b/client/ruby/solrb/test/unit/ping_test.rbindex ba693b75219..7d4dd3001d7 100644--- a/client/ruby/solrb/test/unit/ping_test.rb+++ b/client/ruby/solrb/test/unit/ping_test.rb@@ -1,3 +1,15 @@+# The ASF licenses this file to You 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 'solr_mock_base'class PingTest < SolrMockBaseTestCasediff --git a/client/ruby/solrb/test/unit/standard_response_test.rb b/client/ruby/solrb/test/unit/standard_response_test.rbindex 5fdd9743cd6..b8d73ad7f8d 100644--- a/client/ruby/solrb/test/unit/standard_response_test.rb+++ b/client/ruby/solrb/test/unit/standard_response_test.rb@@ -1,3 +1,15 @@+# The ASF licenses this file to You 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 'solr_mock_base'class StandardResponseTest < SolrMockBaseTestCasediff --git a/client/ruby/solrb/test/unit/suite.rb b/client/ruby/solrb/test/unit/suite.rbindex b65db8549e7..4403c513689 100755--- a/client/ruby/solrb/test/unit/suite.rb+++ b/client/ruby/solrb/test/unit/suite.rb@@ -1,3 +1,15 @@+# The ASF licenses this file to You 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.+# TODO dynamically require all *_test filesrequire 'add_document_test'