Apache Solr open-source search software
Add ASL header
Erik Hatcherb397f4b2be6f
diff --git a/client/ruby/solrb/lib/solr/document.rb b/client/ruby/solrb/lib/solr/document.rbindex 4ffcd877b30..ea47c37fba7 100644--- a/client/ruby/solrb/lib/solr/document.rb+++ b/client/ruby/solrb/lib/solr/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.+require 'rexml/document'require 'solr/field'diff --git a/client/ruby/solrb/lib/solr/exception.rb b/client/ruby/solrb/lib/solr/exception.rbindex f55246ffd7f..235e20e6b9c 100644--- a/client/ruby/solrb/lib/solr/exception.rb+++ b/client/ruby/solrb/lib/solr/exception.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 Solrclass RequestException < Exceptiondiff --git a/client/ruby/solrb/lib/solr/field.rb b/client/ruby/solrb/lib/solr/field.rbindex 3b8ceed76d1..34b2586963b 100644--- a/client/ruby/solrb/lib/solr/field.rb+++ b/client/ruby/solrb/lib/solr/field.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/request/add_document.rb b/client/ruby/solrb/lib/solr/request/add_document.rbindex 6608e4583ec..aea91265250 100644--- a/client/ruby/solrb/lib/solr/request/add_document.rb+++ b/client/ruby/solrb/lib/solr/request/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.+require 'solr/request/base'require 'solr/document'require 'rexml/document'diff --git a/client/ruby/solrb/lib/solr/request/commit.rb b/client/ruby/solrb/lib/solr/request/commit.rbindex 53e66645f05..55a5d1bec1b 100644--- a/client/ruby/solrb/lib/solr/request/commit.rb+++ b/client/ruby/solrb/lib/solr/request/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/document'module Solrdiff --git a/client/ruby/solrb/lib/solr/request/ping.rb b/client/ruby/solrb/lib/solr/request/ping.rbindex c7002ba2325..dd853482e5b 100644--- a/client/ruby/solrb/lib/solr/request/ping.rb+++ b/client/ruby/solrb/lib/solr/request/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.+module Solrmodule Requestclass Ping < Solr::Request::Basediff --git a/client/ruby/solrb/lib/solr/request/select.rb b/client/ruby/solrb/lib/solr/request/select.rbindex 37b10665cfd..98738f6a53c 100644--- a/client/ruby/solrb/lib/solr/request/select.rb+++ b/client/ruby/solrb/lib/solr/request/select.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 'erb'module Solrdiff --git a/client/ruby/solrb/lib/solr/request/update.rb b/client/ruby/solrb/lib/solr/request/update.rbindex f5622fa2548..2b5555fc869 100644--- a/client/ruby/solrb/lib/solr/request/update.rb+++ b/client/ruby/solrb/lib/solr/request/update.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 Requestclass Update < Solr::Request::Basediff --git a/client/ruby/solrb/test/unit/document_test.rb b/client/ruby/solrb/test/unit/document_test.rbindex 1d3adf9e0a6..3ba5f7eaca3 100644--- a/client/ruby/solrb/test/unit/document_test.rb+++ b/client/ruby/solrb/test/unit/document_test.rb@@ -1,3 +1,16 @@+# 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 'test/unit'require 'solr/document'require 'solr/field'diff --git a/client/ruby/solrb/test/unit/field_test.rb b/client/ruby/solrb/test/unit/field_test.rbindex 4d77aabdf27..4ede6b13e36 100644--- a/client/ruby/solrb/test/unit/field_test.rb+++ b/client/ruby/solrb/test/unit/field_test.rb@@ -1,3 +1,16 @@+# 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 'test/unit'require 'solr/field'class FieldTest < Test::Unit::TestCasediff --git a/client/ruby/solrb/test/unit/response_test.rb b/client/ruby/solrb/test/unit/response_test.rbindex 7377884eb1a..87e53c70e1c 100644--- a/client/ruby/solrb/test/unit/response_test.rb+++ b/client/ruby/solrb/test/unit/response_test.rb@@ -1,3 +1,17 @@+# 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 'test/unit'+class ResponseTest < Test::Unit::TestCasedef test_response_error