warclight 0.6.3 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile +1 -1
- data/app/assets/images/blacklight/logo.png +0 -0
- data/app/assets/javascripts/warclight/warclight.js +1 -0
- data/app/assets/stylesheets/warclight/application.scss +2 -1
- data/lib/generators/warclight/install_generator.rb +5 -0
- data/lib/generators/warclight/templates/catalog_controller.rb +8 -9
- data/lib/warclight/version.rb +1 -1
- data/solr/conf/elevate.xml +10 -14
- data/solr/conf/lang/contractions_fr.txt +0 -6
- data/solr/conf/lang/stopwords_da.txt +0 -2
- data/solr/conf/lang/stopwords_de.txt +0 -2
- data/solr/conf/lang/stopwords_es.txt +0 -2
- data/solr/conf/lang/stopwords_fi.txt +0 -2
- data/solr/conf/lang/stopwords_fr.txt +1 -4
- data/solr/conf/lang/stopwords_hu.txt +0 -2
- data/solr/conf/lang/stopwords_it.txt +0 -2
- data/solr/conf/lang/stopwords_nl.txt +0 -2
- data/solr/conf/lang/stopwords_no.txt +0 -2
- data/solr/conf/lang/stopwords_pt.txt +0 -2
- data/solr/conf/lang/stopwords_ru.txt +0 -2
- data/solr/conf/lang/stopwords_sv.txt +0 -2
- data/solr/conf/schema.xml +543 -304
- data/solr/conf/solrconfig.xml +1933 -140
- data/solr/conf/solrcore.properties +1 -0
- data/solr/conf/stopwords_path.txt +7 -0
- data/solr/conf/synonyms.txt +13 -13
- data/template.rb +1 -4
- data/warclight.gemspec +2 -0
- metadata +33 -3
- data/app/assets/stylesheets/warclight/warclight.scss +0 -1
| @@ -0,0 +1 @@ | |
| 1 | 
            +
            #solr.lock.type=hdfs
         | 
| @@ -0,0 +1,7 @@ | |
| 1 | 
            +
            # URL & path elements that should not be indexed (to save space)
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            # www is removed by the webarchive-discovery normaliser if it is leading. If it is part of the path we want to keep it, so it is not a stopword
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            # All URLs starts with http or https, so definitely remove those
         | 
| 6 | 
            +
            http
         | 
| 7 | 
            +
            https
         | 
    
        data/solr/conf/synonyms.txt
    CHANGED
    
    | @@ -11,19 +11,19 @@ | |
| 11 11 | 
             
            # limitations under the License.
         | 
| 12 12 |  | 
| 13 13 | 
             
            #-----------------------------------------------------------------------
         | 
| 14 | 
            -
             | 
| 15 | 
            -
            aaafoo => aaabar
         | 
| 16 | 
            -
            bbbfoo => bbbfoo bbbbar
         | 
| 17 | 
            -
            cccfoo => cccbar cccbaz
         | 
| 18 | 
            -
            fooaaa,baraaa,bazaaa
         | 
| 14 | 
            +
            ##some test synonym mappings unlikely to appear in real input text
         | 
| 15 | 
            +
            #aaafoo => aaabar
         | 
| 16 | 
            +
            #bbbfoo => bbbfoo bbbbar
         | 
| 17 | 
            +
            #cccfoo => cccbar cccbaz
         | 
| 18 | 
            +
            #fooaaa,baraaa,bazaaa
         | 
| 19 19 |  | 
| 20 | 
            -
             | 
| 21 | 
            -
            GB,gib,gigabyte,gigabytes
         | 
| 22 | 
            -
            MB,mib,megabyte,megabytes
         | 
| 23 | 
            -
            Television, Televisions, TV, TVs
         | 
| 24 | 
            -
             | 
| 25 | 
            -
             | 
| 20 | 
            +
            ## Some synonym groups specific to this example
         | 
| 21 | 
            +
            #GB,gib,gigabyte,gigabytes
         | 
| 22 | 
            +
            #MB,mib,megabyte,megabytes
         | 
| 23 | 
            +
            #Television, Televisions, TV, TVs
         | 
| 24 | 
            +
            ##notice we use "gib" instead of "GiB" so any WordDelimiterFilter coming
         | 
| 25 | 
            +
            ##after us won't split it into two words.
         | 
| 26 26 |  | 
| 27 | 
            -
             | 
| 28 | 
            -
            pixima => pixma
         | 
| 27 | 
            +
            ## Synonym mappings can be used for spelling correction too
         | 
| 28 | 
            +
            #pixima => pixma
         | 
| 29 29 |  | 
    
        data/template.rb
    CHANGED
    
    | @@ -1,10 +1,7 @@ | |
| 1 1 | 
             
            # frozen_string_literal: true
         | 
| 2 2 |  | 
| 3 | 
            -
            # We can remove `blacklight` and `blacklight_range_limit` once they are released
         | 
| 4 | 
            -
            # since they are already dependents of Warclight (but we need to pin to particular branches)
         | 
| 5 | 
            -
            gem 'blacklight', github: 'projectblacklight/blacklight'
         | 
| 6 | 
            -
             | 
| 7 3 | 
             
            gem 'warclight', github: 'archivesunleashed/warclight'
         | 
| 4 | 
            +
            gem 'blacklight_range_limit', '7.0.0.rc2'
         | 
| 8 5 |  | 
| 9 6 | 
             
            run 'bundle install'
         | 
| 10 7 |  | 
    
        data/warclight.gemspec
    CHANGED
    
    | @@ -22,9 +22,11 @@ Gem::Specification.new do |s| | |
| 22 22 | 
             
              s.require_paths   = ['lib']
         | 
| 23 23 |  | 
| 24 24 | 
             
              s.add_dependency 'blacklight', '7.0.0.rc1'
         | 
| 25 | 
            +
              s.add_dependency 'blacklight_range_limit', '7.0.0.rc2'
         | 
| 25 26 | 
             
              s.add_dependency 'rails', '~> 5.0'
         | 
| 26 27 |  | 
| 27 28 | 
             
              s.add_development_dependency 'bundler', '~> 1.14'
         | 
| 29 | 
            +
              s.add_development_dependency 'capybara'
         | 
| 28 30 | 
             
              s.add_development_dependency 'engine_cart'
         | 
| 29 31 | 
             
              s.add_development_dependency 'mocha'
         | 
| 30 32 | 
             
              s.add_development_dependency 'poltergeist'
         | 
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: warclight
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 0.7.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Nick Ruest
         | 
| 8 8 | 
             
            autorequire: 
         | 
| 9 9 | 
             
            bindir: exe
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2018- | 
| 11 | 
            +
            date: 2018-10-12 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: blacklight
         | 
| @@ -24,6 +24,20 @@ dependencies: | |
| 24 24 | 
             
                - - '='
         | 
| 25 25 | 
             
                  - !ruby/object:Gem::Version
         | 
| 26 26 | 
             
                    version: 7.0.0.rc1
         | 
| 27 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 28 | 
            +
              name: blacklight_range_limit
         | 
| 29 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 30 | 
            +
                requirements:
         | 
| 31 | 
            +
                - - '='
         | 
| 32 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 33 | 
            +
                    version: 7.0.0.rc2
         | 
| 34 | 
            +
              type: :runtime
         | 
| 35 | 
            +
              prerelease: false
         | 
| 36 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 37 | 
            +
                requirements:
         | 
| 38 | 
            +
                - - '='
         | 
| 39 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 40 | 
            +
                    version: 7.0.0.rc2
         | 
| 27 41 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 28 42 | 
             
              name: rails
         | 
| 29 43 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -52,6 +66,20 @@ dependencies: | |
| 52 66 | 
             
                - - "~>"
         | 
| 53 67 | 
             
                  - !ruby/object:Gem::Version
         | 
| 54 68 | 
             
                    version: '1.14'
         | 
| 69 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 70 | 
            +
              name: capybara
         | 
| 71 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 72 | 
            +
                requirements:
         | 
| 73 | 
            +
                - - ">="
         | 
| 74 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 75 | 
            +
                    version: '0'
         | 
| 76 | 
            +
              type: :development
         | 
| 77 | 
            +
              prerelease: false
         | 
| 78 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 79 | 
            +
                requirements:
         | 
| 80 | 
            +
                - - ">="
         | 
| 81 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 82 | 
            +
                    version: '0'
         | 
| 55 83 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 56 84 | 
             
              name: engine_cart
         | 
| 57 85 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| @@ -202,8 +230,8 @@ files: | |
| 202 230 | 
             
            - Rakefile
         | 
| 203 231 | 
             
            - app/assets/images/blacklight/compact.svg
         | 
| 204 232 | 
             
            - app/assets/images/blacklight/logo.png
         | 
| 233 | 
            +
            - app/assets/javascripts/warclight/warclight.js
         | 
| 205 234 | 
             
            - app/assets/stylesheets/warclight/application.scss
         | 
| 206 | 
            -
            - app/assets/stylesheets/warclight/warclight.scss
         | 
| 207 235 | 
             
            - app/controllers/concerns/warclight/field_config_helpers.rb
         | 
| 208 236 | 
             
            - app/helpers/warclight_helper.rb
         | 
| 209 237 | 
             
            - app/jobs/warclight/application_job.rb
         | 
| @@ -264,7 +292,9 @@ files: | |
| 264 292 | 
             
            - solr/conf/protwords.txt
         | 
| 265 293 | 
             
            - solr/conf/schema.xml
         | 
| 266 294 | 
             
            - solr/conf/solrconfig.xml
         | 
| 295 | 
            +
            - solr/conf/solrcore.properties
         | 
| 267 296 | 
             
            - solr/conf/stopwords.txt
         | 
| 297 | 
            +
            - solr/conf/stopwords_path.txt
         | 
| 268 298 | 
             
            - solr/conf/synonyms.txt
         | 
| 269 299 | 
             
            - solr/warclight_warc-indexer.conf
         | 
| 270 300 | 
             
            - tasks/warclight.rake
         | 
| @@ -1 +0,0 @@ | |
| 1 | 
            -
            /* warclight specific scss */
         |