Skip to content

armgit / solr

Public Imported from GitHub
0

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.rb
index 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 Solr
diff --git a/client/ruby/solrb/lib/solr/response/add_document.rb b/client/ruby/solrb/lib/solr/response/add_document.rb
index 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 Solr
module Response
diff --git a/client/ruby/solrb/lib/solr/response/base.rb b/client/ruby/solrb/lib/solr/response/base.rb
index 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 Solr
module Response
class Base
diff --git a/client/ruby/solrb/lib/solr/response/commit.rb b/client/ruby/solrb/lib/solr/response/commit.rb
index 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 Solr
diff --git a/client/ruby/solrb/lib/solr/response/delete.rb b/client/ruby/solrb/lib/solr/response/delete.rb
index 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 Solr
module Response
class Delete < Solr::Response::Xml
diff --git a/client/ruby/solrb/lib/solr/response/ping.rb b/client/ruby/solrb/lib/solr/response/ping.rb
index 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 Solr
diff --git a/client/ruby/solrb/lib/solr/response/ruby.rb b/client/ruby/solrb/lib/solr/response/ruby.rb
index 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 Solr
module Response
diff --git a/client/ruby/solrb/lib/solr/response/standard.rb b/client/ruby/solrb/lib/solr/response/standard.rb
index 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 Solr
module Response
class Standard < Solr::Response::Ruby
diff --git a/client/ruby/solrb/lib/solr/response/xml.rb b/client/ruby/solrb/lib/solr/response/xml.rb
index 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.rb
index 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 < SolrMockBaseTestCase
diff --git a/client/ruby/solrb/test/unit/commit_test.rb b/client/ruby/solrb/test/unit/commit_test.rb
index 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 < SolrMockBaseTestCase
diff --git a/client/ruby/solrb/test/unit/delete_test.rb b/client/ruby/solrb/test/unit/delete_test.rb
index 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 < SolrMockBaseTestCase
diff --git a/client/ruby/solrb/test/unit/ping_test.rb b/client/ruby/solrb/test/unit/ping_test.rb
index 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 < SolrMockBaseTestCase
diff --git a/client/ruby/solrb/test/unit/standard_response_test.rb b/client/ruby/solrb/test/unit/standard_response_test.rb
index 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 < SolrMockBaseTestCase
diff --git a/client/ruby/solrb/test/unit/suite.rb b/client/ruby/solrb/test/unit/suite.rb
index 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 files
require 'add_document_test'