This repository has been archived by the owner on Nov 26, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Monkey-patching solr_wrapper to get the solr checksum from archive.ap…
…ache.org to include in what will be committed
- Loading branch information
1 parent
1529142
commit 8f40dc4
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Hack to monkey-patch solr_wrapper to get the checksum | ||
# file from archive.apache.org instead of www.us.apache.org . | ||
|
||
# This monkey patch is based on : | ||
# https://github.com/cbeer/solr_wrapper/pull/119/files | ||
# When the patch is accepted, you can simply remove this file | ||
# as well as the reference to it in /chf-sufia/lib/tasks/dev.rake | ||
|
||
if Gem.loaded_specs["solr_wrapper"].version > Gem::Version.new('2.0.0') | ||
puts(""" The solr_wrapper gem has been upgraded. Time to | ||
remove the monkey-patch in | ||
* lib/tasks/dev.rake | ||
* lib/solr_wrapper_patch.rb . | ||
""") | ||
end | ||
|
||
module SolrWrapper | ||
class ChecksumValidator | ||
def checksumurl(suffix) | ||
"http://archive.apache.org/dist/lucene/solr/#{config.static_config.version}/solr-#{config.static_config.version}.zip.#{suffix}" | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters