stanford-mods 2.5.0 → 2.6.3
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 +5 -5
- data/.github/workflows/ruby.yml +24 -0
- data/.rubocop.yml +2 -2
- data/.rubocop_todo.yml +172 -102
- data/Gemfile +0 -10
- data/lib/stanford-mods/coordinate.rb +3 -0
- data/lib/stanford-mods/date_parsing.rb +12 -0
- data/lib/stanford-mods/imprint.rb +22 -12
- data/lib/stanford-mods/name.rb +3 -1
- data/lib/stanford-mods/origin_info.rb +14 -0
- data/lib/stanford-mods/searchworks.rb +50 -90
- data/lib/stanford-mods/searchworks_languages.rb +2 -0
- data/lib/stanford-mods/searchworks_subjects.rb +3 -2
- data/lib/stanford-mods/version.rb +1 -1
- data/spec/date_parsing_spec.rb +2 -0
- data/spec/fixtures/searchworks_imprint_data.rb +1 -1
- data/spec/fixtures/searchworks_pub_date_data.rb +1 -1
- data/spec/imprint_spec.rb +5 -1
- data/spec/name_spec.rb +5 -2
- data/spec/origin_info_spec.rb +3 -0
- data/spec/physical_location_spec.rb +6 -0
- data/spec/searchworks_format_spec.rb +22 -285
- data/spec/searchworks_pub_dates_spec.rb +1 -0
- data/spec/searchworks_spec.rb +1 -0
- data/spec/searchworks_subject_raw_spec.rb +6 -0
- data/spec/searchworks_subject_spec.rb +2 -12
- data/spec/searchworks_title_spec.rb +36 -0
- data/spec/spec_helper.rb +2 -2
- data/stanford-mods.gemspec +3 -0
- metadata +46 -5
- data/.travis.yml +0 -16
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 | 
            -
             | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 2 | 
            +
            SHA256:
         | 
| 3 | 
            +
              metadata.gz: 0f3ee98d51451363706aeeeec977b5836e1d9b4c0ed4959672382fafc996a283
         | 
| 4 | 
            +
              data.tar.gz: 466e49dceede8b1c04c959f9b69b839ec31f62a3d34af686f45ef1e255943b56
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: '079d53973ab2747996b97cd64c562ebcfd62f0173196d9edd4e644cea1c6726cba9a42a831f9ab1a27d2044c7573bffcd5a7a82a11659fff4bbb65aa19b132a6'
         | 
| 7 | 
            +
              data.tar.gz: 6ea034ef6590c9cdf48d934fc80f464f7dd495d4f9aa2a8848727c70db7645bd4ec1ee6ce463ba649da799ae1369a9a54bc878c88cb1a0ae43c04a88245fc4bf
         | 
| @@ -0,0 +1,24 @@ | |
| 1 | 
            +
            name: CI
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            on:
         | 
| 4 | 
            +
              push:
         | 
| 5 | 
            +
                branches: [ master ]
         | 
| 6 | 
            +
              pull_request:
         | 
| 7 | 
            +
                branches: [ master ]
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            jobs:
         | 
| 10 | 
            +
              tests:
         | 
| 11 | 
            +
                runs-on: ubuntu-latest
         | 
| 12 | 
            +
                strategy:
         | 
| 13 | 
            +
                  matrix:
         | 
| 14 | 
            +
                    ruby: [jruby-9.2.14.0, 2.7, 3.0]
         | 
| 15 | 
            +
                steps:
         | 
| 16 | 
            +
                - uses: actions/checkout@v2
         | 
| 17 | 
            +
                - name: Set up Ruby
         | 
| 18 | 
            +
                  uses: ruby/setup-ruby@v1
         | 
| 19 | 
            +
                  with:
         | 
| 20 | 
            +
                    ruby-version: ${{ matrix.ruby }}
         | 
| 21 | 
            +
                - name: Install dependencies
         | 
| 22 | 
            +
                  run: bundle install
         | 
| 23 | 
            +
                - name: Run tests
         | 
| 24 | 
            +
                  run: bundle exec rake
         | 
    
        data/.rubocop.yml
    CHANGED
    
    
    
        data/.rubocop_todo.yml
    CHANGED
    
    | @@ -1,55 +1,35 @@ | |
| 1 1 | 
             
            # This configuration was generated by
         | 
| 2 2 | 
             
            # `rubocop --auto-gen-config`
         | 
| 3 | 
            -
            # on  | 
| 3 | 
            +
            # on 2020-03-13 16:37:30 -0700 using RuboCop version 0.80.1.
         | 
| 4 4 | 
             
            # The point is for the user to remove these configuration records
         | 
| 5 5 | 
             
            # one by one as the offenses are removed from the code base.
         | 
| 6 6 | 
             
            # Note that changes in the inspected code, or installation of new
         | 
| 7 7 | 
             
            # versions of RuboCop, may require this file to be generated again.
         | 
| 8 8 |  | 
| 9 | 
            -
            # Offense count: 2
         | 
| 10 | 
            -
            # Cop supports --auto-correct.
         | 
| 11 | 
            -
            # Configuration parameters: Include, TreatCommentsAsGroupSeparators.
         | 
| 12 | 
            -
            # Include: **/Gemfile, **/gems.rb
         | 
| 13 | 
            -
            Bundler/OrderedGems:
         | 
| 14 | 
            -
              Exclude:
         | 
| 15 | 
            -
                - 'Gemfile'
         | 
| 16 | 
            -
             | 
| 17 9 | 
             
            # Offense count: 1
         | 
| 18 10 | 
             
            # Cop supports --auto-correct.
         | 
| 19 | 
            -
            # Configuration parameters: EnforcedStyle,  | 
| 11 | 
            +
            # Configuration parameters: EnforcedStyle, IndentationWidth.
         | 
| 20 12 | 
             
            # SupportedStyles: outdent, indent
         | 
| 21 13 | 
             
            Layout/AccessModifierIndentation:
         | 
| 22 14 | 
             
              Exclude:
         | 
| 23 15 | 
             
                - 'lib/stanford-mods/origin_info.rb'
         | 
| 24 16 |  | 
| 25 | 
            -
            # Offense count:  | 
| 17 | 
            +
            # Offense count: 22
         | 
| 26 18 | 
             
            # Cop supports --auto-correct.
         | 
| 27 | 
            -
            Layout/ | 
| 19 | 
            +
            Layout/ArrayAlignment:
         | 
| 28 20 | 
             
              Exclude:
         | 
| 29 21 | 
             
                - 'lib/stanford-mods/searchworks.rb'
         | 
| 30 22 | 
             
                - 'spec/imprint_spec.rb'
         | 
| 31 23 |  | 
| 32 | 
            -
            # Offense count: 4
         | 
| 33 | 
            -
            # Cop supports --auto-correct.
         | 
| 34 | 
            -
            # Configuration parameters: EnforcedHashRocketStyle, SupportedHashRocketStyles, EnforcedColonStyle, SupportedColonStyles, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
         | 
| 35 | 
            -
            # SupportedHashRocketStyles: key, separator, table
         | 
| 36 | 
            -
            # SupportedColonStyles: key, separator, table
         | 
| 37 | 
            -
            # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
         | 
| 38 | 
            -
            Layout/AlignHash:
         | 
| 39 | 
            -
              Exclude:
         | 
| 40 | 
            -
                - 'spec/fixtures/searchworks_imprint_data.rb'
         | 
| 41 | 
            -
                - 'spec/fixtures/searchworks_pub_date_data.rb'
         | 
| 42 | 
            -
                - 'spec/fixtures/spotlight_pub_date_data.rb'
         | 
| 43 | 
            -
             | 
| 44 24 | 
             
            # Offense count: 12
         | 
| 45 25 | 
             
            # Cop supports --auto-correct.
         | 
| 46 26 | 
             
            Layout/BlockEndNewline:
         | 
| 47 27 | 
             
              Exclude:
         | 
| 48 28 | 
             
                - 'spec/name_spec.rb'
         | 
| 49 29 |  | 
| 50 | 
            -
            # Offense count:  | 
| 30 | 
            +
            # Offense count: 10
         | 
| 51 31 | 
             
            # Cop supports --auto-correct.
         | 
| 52 | 
            -
            # Configuration parameters: EnforcedStyle,  | 
| 32 | 
            +
            # Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
         | 
| 53 33 | 
             
            # SupportedStyles: case, end
         | 
| 54 34 | 
             
            Layout/CaseIndentation:
         | 
| 55 35 | 
             
              Exclude:
         | 
| @@ -71,14 +51,26 @@ Layout/EmptyLineAfterMagicComment: | |
| 71 51 |  | 
| 72 52 | 
             
            # Offense count: 1
         | 
| 73 53 | 
             
            # Cop supports --auto-correct.
         | 
| 74 | 
            -
            # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
         | 
| 54 | 
            +
            # Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
         | 
| 75 55 | 
             
            Layout/ExtraSpacing:
         | 
| 76 56 | 
             
              Exclude:
         | 
| 77 57 | 
             
                - 'lib/stanford-mods/searchworks.rb'
         | 
| 78 58 |  | 
| 59 | 
            +
            # Offense count: 4
         | 
| 60 | 
            +
            # Cop supports --auto-correct.
         | 
| 61 | 
            +
            # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
         | 
| 62 | 
            +
            # SupportedHashRocketStyles: key, separator, table
         | 
| 63 | 
            +
            # SupportedColonStyles: key, separator, table
         | 
| 64 | 
            +
            # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
         | 
| 65 | 
            +
            Layout/HashAlignment:
         | 
| 66 | 
            +
              Exclude:
         | 
| 67 | 
            +
                - 'spec/fixtures/searchworks_imprint_data.rb'
         | 
| 68 | 
            +
                - 'spec/fixtures/searchworks_pub_date_data.rb'
         | 
| 69 | 
            +
                - 'spec/fixtures/spotlight_pub_date_data.rb'
         | 
| 70 | 
            +
             | 
| 79 71 | 
             
            # Offense count: 6
         | 
| 80 72 | 
             
            # Cop supports --auto-correct.
         | 
| 81 | 
            -
            # Configuration parameters: EnforcedStyle | 
| 73 | 
            +
            # Configuration parameters: EnforcedStyle.
         | 
| 82 74 | 
             
            # SupportedStyles: symmetrical, new_line, same_line
         | 
| 83 75 | 
             
            Layout/MultilineArrayBraceLayout:
         | 
| 84 76 | 
             
              Exclude:
         | 
| @@ -93,7 +85,7 @@ Layout/MultilineBlockLayout: | |
| 93 85 |  | 
| 94 86 | 
             
            # Offense count: 5
         | 
| 95 87 | 
             
            # Cop supports --auto-correct.
         | 
| 96 | 
            -
            # Configuration parameters: EnforcedStyle,  | 
| 88 | 
            +
            # Configuration parameters: EnforcedStyle, IndentationWidth.
         | 
| 97 89 | 
             
            # SupportedStyles: aligned, indented, indented_relative_to_receiver
         | 
| 98 90 | 
             
            Layout/MultilineMethodCallIndentation:
         | 
| 99 91 | 
             
              Exclude:
         | 
| @@ -101,7 +93,7 @@ Layout/MultilineMethodCallIndentation: | |
| 101 93 |  | 
| 102 94 | 
             
            # Offense count: 882
         | 
| 103 95 | 
             
            # Cop supports --auto-correct.
         | 
| 104 | 
            -
            # Configuration parameters: EnforcedStyle,  | 
| 96 | 
            +
            # Configuration parameters: EnforcedStyle, IndentationWidth.
         | 
| 105 97 | 
             
            # SupportedStyles: aligned, indented
         | 
| 106 98 | 
             
            Layout/MultilineOperationIndentation:
         | 
| 107 99 | 
             
              Exclude:
         | 
| @@ -114,64 +106,61 @@ Layout/MultilineOperationIndentation: | |
| 114 106 |  | 
| 115 107 | 
             
            # Offense count: 1
         | 
| 116 108 | 
             
            # Cop supports --auto-correct.
         | 
| 117 | 
            -
             | 
| 109 | 
            +
            Layout/SpaceAfterComma:
         | 
| 110 | 
            +
              Exclude:
         | 
| 111 | 
            +
                - 'spec/imprint_spec.rb'
         | 
| 112 | 
            +
             | 
| 113 | 
            +
            # Offense count: 1
         | 
| 114 | 
            +
            # Cop supports --auto-correct.
         | 
| 115 | 
            +
            # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
         | 
| 116 | 
            +
            # SupportedStylesForExponentOperator: space, no_space
         | 
| 118 117 | 
             
            Layout/SpaceAroundOperators:
         | 
| 119 118 | 
             
              Exclude:
         | 
| 120 119 | 
             
                - 'lib/stanford-mods/searchworks.rb'
         | 
| 121 120 |  | 
| 122 121 | 
             
            # Offense count: 2
         | 
| 123 122 | 
             
            # Cop supports --auto-correct.
         | 
| 124 | 
            -
            # Configuration parameters: EnforcedStyle,  | 
| 123 | 
            +
            # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
         | 
| 125 124 | 
             
            # SupportedStyles: space, no_space
         | 
| 126 125 | 
             
            # SupportedStylesForEmptyBraces: space, no_space
         | 
| 127 126 | 
             
            Layout/SpaceInsideBlockBraces:
         | 
| 128 127 | 
             
              Exclude:
         | 
| 129 128 | 
             
                - 'lib/stanford-mods/searchworks.rb'
         | 
| 130 129 |  | 
| 131 | 
            -
            # Offense count:  | 
| 130 | 
            +
            # Offense count: 6
         | 
| 132 131 | 
             
            # Cop supports --auto-correct.
         | 
| 132 | 
            +
            # Configuration parameters: AllowInHeredoc.
         | 
| 133 133 | 
             
            Layout/TrailingWhitespace:
         | 
| 134 134 | 
             
              Exclude:
         | 
| 135 | 
            -
                - 'lib/stanford-mods/searchworks.rb'
         | 
| 136 135 | 
             
                - 'spec/searchworks_spec.rb'
         | 
| 137 136 |  | 
| 138 | 
            -
            # Offense count:  | 
| 139 | 
            -
            Lint/RescueWithoutErrorClass:
         | 
| 140 | 
            -
              Exclude:
         | 
| 141 | 
            -
                - 'lib/stanford-mods/imprint.rb'
         | 
| 142 | 
            -
             | 
| 143 | 
            -
            # Offense count: 32
         | 
| 137 | 
            +
            # Offense count: 31
         | 
| 144 138 | 
             
            Metrics/AbcSize:
         | 
| 145 | 
            -
              Max:  | 
| 139 | 
            +
              Max: 57
         | 
| 146 140 |  | 
| 147 | 
            -
            # Offense count:  | 
| 141 | 
            +
            # Offense count: 97
         | 
| 148 142 | 
             
            # Configuration parameters: CountComments, ExcludedMethods.
         | 
| 143 | 
            +
            # ExcludedMethods: refine
         | 
| 149 144 | 
             
            Metrics/BlockLength:
         | 
| 150 | 
            -
              Max:  | 
| 145 | 
            +
              Max: 795
         | 
| 151 146 |  | 
| 152 147 | 
             
            # Offense count: 5
         | 
| 153 148 | 
             
            # Configuration parameters: CountComments.
         | 
| 154 149 | 
             
            Metrics/ClassLength:
         | 
| 155 | 
            -
              Max:  | 
| 150 | 
            +
              Max: 377
         | 
| 156 151 |  | 
| 157 | 
            -
            # Offense count:  | 
| 152 | 
            +
            # Offense count: 18
         | 
| 158 153 | 
             
            Metrics/CyclomaticComplexity:
         | 
| 159 | 
            -
              Max:  | 
| 160 | 
            -
             | 
| 161 | 
            -
            # Offense count: 118
         | 
| 162 | 
            -
            # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
         | 
| 163 | 
            -
            # URISchemes: http, https
         | 
| 164 | 
            -
            Metrics/LineLength:
         | 
| 165 | 
            -
              Max: 199
         | 
| 154 | 
            +
              Max: 32
         | 
| 166 155 |  | 
| 167 156 | 
             
            # Offense count: 31
         | 
| 168 | 
            -
            # Configuration parameters: CountComments.
         | 
| 157 | 
            +
            # Configuration parameters: CountComments, ExcludedMethods.
         | 
| 169 158 | 
             
            Metrics/MethodLength:
         | 
| 170 159 | 
             
              Max: 52
         | 
| 171 160 |  | 
| 172 | 
            -
            # Offense count:  | 
| 161 | 
            +
            # Offense count: 14
         | 
| 173 162 | 
             
            Metrics/PerceivedComplexity:
         | 
| 174 | 
            -
              Max:  | 
| 163 | 
            +
              Max: 25
         | 
| 175 164 |  | 
| 176 165 | 
             
            # Offense count: 1
         | 
| 177 166 | 
             
            # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
         | 
| @@ -181,8 +170,8 @@ Naming/FileName: | |
| 181 170 | 
             
                - 'lib/stanford-mods.rb'
         | 
| 182 171 |  | 
| 183 172 | 
             
            # Offense count: 24
         | 
| 184 | 
            -
            # Configuration parameters:  | 
| 185 | 
            -
            #  | 
| 173 | 
            +
            # Configuration parameters: ForbiddenDelimiters.
         | 
| 174 | 
            +
            # ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
         | 
| 186 175 | 
             
            Naming/HeredocDelimiterNaming:
         | 
| 187 176 | 
             
              Exclude:
         | 
| 188 177 | 
             
                - 'spec/geo_spatial_spec.rb'
         | 
| @@ -192,7 +181,7 @@ Naming/HeredocDelimiterNaming: | |
| 192 181 | 
             
                - 'spec/searchworks_basic_spec.rb'
         | 
| 193 182 |  | 
| 194 183 | 
             
            # Offense count: 3
         | 
| 195 | 
            -
            # Configuration parameters: EnforcedStyle,  | 
| 184 | 
            +
            # Configuration parameters: EnforcedStyle, IgnoredPatterns.
         | 
| 196 185 | 
             
            # SupportedStyles: snake_case, camelCase
         | 
| 197 186 | 
             
            Naming/MethodName:
         | 
| 198 187 | 
             
              Exclude:
         | 
| @@ -200,18 +189,25 @@ Naming/MethodName: | |
| 200 189 | 
             
                - 'lib/stanford-mods/searchworks.rb'
         | 
| 201 190 |  | 
| 202 191 | 
             
            # Offense count: 2
         | 
| 203 | 
            -
            # Configuration parameters:  | 
| 192 | 
            +
            # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
         | 
| 193 | 
            +
            # AllowedNames: io, id, to, by, on, in, at, ip, db, os, pp
         | 
| 194 | 
            +
            Naming/MethodParameterName:
         | 
| 195 | 
            +
              Exclude:
         | 
| 196 | 
            +
                - 'lib/stanford-mods/imprint.rb'
         | 
| 197 | 
            +
             | 
| 198 | 
            +
            # Offense count: 2
         | 
| 199 | 
            +
            # Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
         | 
| 204 200 | 
             
            # NamePrefix: is_, has_, have_
         | 
| 205 | 
            -
            #  | 
| 206 | 
            -
            #  | 
| 201 | 
            +
            # ForbiddenPrefixes: is_, has_, have_
         | 
| 202 | 
            +
            # AllowedMethods: is_a?
         | 
| 207 203 | 
             
            # MethodDefinitionMacros: define_method, define_singleton_method
         | 
| 208 204 | 
             
            Naming/PredicateName:
         | 
| 209 205 | 
             
              Exclude:
         | 
| 210 206 | 
             
                - 'spec/**/*'
         | 
| 211 207 | 
             
                - 'lib/stanford-mods/origin_info.rb'
         | 
| 212 208 |  | 
| 213 | 
            -
            # Offense count:  | 
| 214 | 
            -
            # Configuration parameters: EnforcedStyle | 
| 209 | 
            +
            # Offense count: 30
         | 
| 210 | 
            +
            # Configuration parameters: EnforcedStyle.
         | 
| 215 211 | 
             
            # SupportedStyles: snake_case, camelCase
         | 
| 216 212 | 
             
            Naming/VariableName:
         | 
| 217 213 | 
             
              Exclude:
         | 
| @@ -219,13 +215,6 @@ Naming/VariableName: | |
| 219 215 | 
             
                - 'lib/stanford-mods/origin_info.rb'
         | 
| 220 216 | 
             
                - 'lib/stanford-mods/searchworks.rb'
         | 
| 221 217 |  | 
| 222 | 
            -
            # Offense count: 11
         | 
| 223 | 
            -
            # Cop supports --auto-correct.
         | 
| 224 | 
            -
            # Configuration parameters: AutoCorrect.
         | 
| 225 | 
            -
            Performance/HashEachMethods:
         | 
| 226 | 
            -
              Exclude:
         | 
| 227 | 
            -
                - 'spec/date_parsing_spec.rb'
         | 
| 228 | 
            -
             | 
| 229 218 | 
             
            # Offense count: 3
         | 
| 230 219 | 
             
            RSpec/AnyInstance:
         | 
| 231 220 | 
             
              Exclude:
         | 
| @@ -244,7 +233,7 @@ RSpec/BeforeAfterAll: | |
| 244 233 | 
             
                - 'spec/searchworks_subject_spec.rb'
         | 
| 245 234 | 
             
                - 'spec/searchworks_title_spec.rb'
         | 
| 246 235 |  | 
| 247 | 
            -
            # Offense count:  | 
| 236 | 
            +
            # Offense count: 137
         | 
| 248 237 | 
             
            # Configuration parameters: Prefixes.
         | 
| 249 238 | 
             
            # Prefixes: when, with, without
         | 
| 250 239 | 
             
            RSpec/ContextWording:
         | 
| @@ -282,6 +271,7 @@ RSpec/DescribeClass: | |
| 282 271 | 
             
                - 'spec/sw_publication_spec.rb'
         | 
| 283 272 |  | 
| 284 273 | 
             
            # Offense count: 14
         | 
| 274 | 
            +
            # Cop supports --auto-correct.
         | 
| 285 275 | 
             
            RSpec/EmptyLineAfterFinalLet:
         | 
| 286 276 | 
             
              Exclude:
         | 
| 287 277 | 
             
                - 'spec/name_spec.rb'
         | 
| @@ -289,7 +279,7 @@ RSpec/EmptyLineAfterFinalLet: | |
| 289 279 | 
             
                - 'spec/physical_location_spec.rb'
         | 
| 290 280 | 
             
                - 'spec/sw_publication_spec.rb'
         | 
| 291 281 |  | 
| 292 | 
            -
            # Offense count:  | 
| 282 | 
            +
            # Offense count: 134
         | 
| 293 283 | 
             
            # Configuration parameters: Max.
         | 
| 294 284 | 
             
            RSpec/ExampleLength:
         | 
| 295 285 | 
             
              Exclude:
         | 
| @@ -304,7 +294,8 @@ RSpec/ExampleLength: | |
| 304 294 | 
             
                - 'spec/searchworks_subject_spec.rb'
         | 
| 305 295 | 
             
                - 'spec/searchworks_title_spec.rb'
         | 
| 306 296 |  | 
| 307 | 
            -
            # Offense count:  | 
| 297 | 
            +
            # Offense count: 111
         | 
| 298 | 
            +
            # Cop supports --auto-correct.
         | 
| 308 299 | 
             
            # Configuration parameters: CustomTransform, IgnoredWords.
         | 
| 309 300 | 
             
            RSpec/ExampleWording:
         | 
| 310 301 | 
             
              Exclude:
         | 
| @@ -323,12 +314,13 @@ RSpec/FilePath: | |
| 323 314 | 
             
                - 'spec/lib/stanford-mods/coordinate_spec.rb'
         | 
| 324 315 |  | 
| 325 316 | 
             
            # Offense count: 2
         | 
| 326 | 
            -
            #  | 
| 317 | 
            +
            # Cop supports --auto-correct.
         | 
| 318 | 
            +
            # Configuration parameters: .
         | 
| 327 319 | 
             
            # SupportedStyles: implicit, each, example
         | 
| 328 320 | 
             
            RSpec/HookArgument:
         | 
| 329 321 | 
             
              EnforcedStyle: each
         | 
| 330 322 |  | 
| 331 | 
            -
            # Offense count:  | 
| 323 | 
            +
            # Offense count: 935
         | 
| 332 324 | 
             
            # Configuration parameters: AssignmentOnly.
         | 
| 333 325 | 
             
            RSpec/InstanceVariable:
         | 
| 334 326 | 
             
              Exclude:
         | 
| @@ -341,12 +333,13 @@ RSpec/InstanceVariable: | |
| 341 333 | 
             
                - 'spec/searchworks_title_spec.rb'
         | 
| 342 334 |  | 
| 343 335 | 
             
            # Offense count: 2
         | 
| 336 | 
            +
            # Cop supports --auto-correct.
         | 
| 344 337 | 
             
            RSpec/LetBeforeExamples:
         | 
| 345 338 | 
             
              Exclude:
         | 
| 346 339 | 
             
                - 'spec/origin_info_spec.rb'
         | 
| 347 340 |  | 
| 348 341 | 
             
            # Offense count: 25
         | 
| 349 | 
            -
            # Configuration parameters:  | 
| 342 | 
            +
            # Configuration parameters: .
         | 
| 350 343 | 
             
            # SupportedStyles: have_received, receive
         | 
| 351 344 | 
             
            RSpec/MessageSpies:
         | 
| 352 345 | 
             
              EnforcedStyle: receive
         | 
| @@ -356,25 +349,20 @@ RSpec/MultipleDescribes: | |
| 356 349 | 
             
              Exclude:
         | 
| 357 350 | 
             
                - 'spec/geo_spatial_spec.rb'
         | 
| 358 351 |  | 
| 359 | 
            -
            # Offense count:  | 
| 352 | 
            +
            # Offense count: 100
         | 
| 353 | 
            +
            # Configuration parameters: AggregateFailuresByDefault.
         | 
| 360 354 | 
             
            RSpec/MultipleExpectations:
         | 
| 361 355 | 
             
              Max: 9
         | 
| 362 356 |  | 
| 363 357 | 
             
            # Offense count: 2
         | 
| 358 | 
            +
            # Configuration parameters: IgnoreSharedExamples.
         | 
| 364 359 | 
             
            RSpec/NamedSubject:
         | 
| 365 360 | 
             
              Exclude:
         | 
| 366 361 | 
             
                - 'spec/lib/stanford-mods/coordinate_spec.rb'
         | 
| 367 362 |  | 
| 368 | 
            -
            # Offense count:  | 
| 369 | 
            -
            # Configuration parameters: Max.
         | 
| 363 | 
            +
            # Offense count: 36
         | 
| 370 364 | 
             
            RSpec/NestedGroups:
         | 
| 371 | 
            -
               | 
| 372 | 
            -
                - 'spec/origin_info_spec.rb'
         | 
| 373 | 
            -
                - 'spec/physical_location_spec.rb'
         | 
| 374 | 
            -
                - 'spec/searchworks_format_spec.rb'
         | 
| 375 | 
            -
                - 'spec/searchworks_subject_raw_spec.rb'
         | 
| 376 | 
            -
                - 'spec/searchworks_subject_spec.rb'
         | 
| 377 | 
            -
                - 'spec/searchworks_title_spec.rb'
         | 
| 365 | 
            +
              Max: 5
         | 
| 378 366 |  | 
| 379 367 | 
             
            # Offense count: 7
         | 
| 380 368 | 
             
            RSpec/RepeatedExample:
         | 
| @@ -393,7 +381,7 @@ RSpec/VoidExpect: | |
| 393 381 |  | 
| 394 382 | 
             
            # Offense count: 1
         | 
| 395 383 | 
             
            # Cop supports --auto-correct.
         | 
| 396 | 
            -
            # Configuration parameters: EnforcedStyle | 
| 384 | 
            +
            # Configuration parameters: EnforcedStyle.
         | 
| 397 385 | 
             
            # SupportedStyles: prefer_alias, prefer_alias_method
         | 
| 398 386 | 
             
            Style/Alias:
         | 
| 399 387 | 
             
              Exclude:
         | 
| @@ -401,8 +389,8 @@ Style/Alias: | |
| 401 389 |  | 
| 402 390 | 
             
            # Offense count: 30
         | 
| 403 391 | 
             
            # Cop supports --auto-correct.
         | 
| 404 | 
            -
            # Configuration parameters: EnforcedStyle,  | 
| 405 | 
            -
            # SupportedStyles: line_count_based, semantic, braces_for_chaining
         | 
| 392 | 
            +
            # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
         | 
| 393 | 
            +
            # SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
         | 
| 406 394 | 
             
            # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
         | 
| 407 395 | 
             
            # FunctionalMethods: let, let!, subject, watch
         | 
| 408 396 | 
             
            # IgnoredMethods: lambda, proc, it
         | 
| @@ -414,7 +402,7 @@ Style/BlockDelimiters: | |
| 414 402 | 
             
                - 'lib/stanford-mods/searchworks_subjects.rb'
         | 
| 415 403 | 
             
                - 'spec/name_spec.rb'
         | 
| 416 404 |  | 
| 417 | 
            -
            # Offense count:  | 
| 405 | 
            +
            # Offense count: 65
         | 
| 418 406 | 
             
            Style/CommentedKeyword:
         | 
| 419 407 | 
             
              Exclude:
         | 
| 420 408 | 
             
                - 'lib/stanford-mods.rb'
         | 
| @@ -434,7 +422,7 @@ Style/CommentedKeyword: | |
| 434 422 |  | 
| 435 423 | 
             
            # Offense count: 2
         | 
| 436 424 | 
             
            # Cop supports --auto-correct.
         | 
| 437 | 
            -
            # Configuration parameters: EnforcedStyle,  | 
| 425 | 
            +
            # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
         | 
| 438 426 | 
             
            # SupportedStyles: assign_to_condition, assign_inside_condition
         | 
| 439 427 | 
             
            Style/ConditionalAssignment:
         | 
| 440 428 | 
             
              Exclude:
         | 
| @@ -468,6 +456,19 @@ Style/EmptyCaseCondition: | |
| 468 456 | 
             
            Style/Encoding:
         | 
| 469 457 | 
             
              Enabled: false
         | 
| 470 458 |  | 
| 459 | 
            +
            # Offense count: 1
         | 
| 460 | 
            +
            # Cop supports --auto-correct.
         | 
| 461 | 
            +
            Style/ExpandPathArguments:
         | 
| 462 | 
            +
              Exclude:
         | 
| 463 | 
            +
                - 'stanford-mods.gemspec'
         | 
| 464 | 
            +
             | 
| 465 | 
            +
            # Offense count: 36
         | 
| 466 | 
            +
            # Cop supports --auto-correct.
         | 
| 467 | 
            +
            # Configuration parameters: EnforcedStyle.
         | 
| 468 | 
            +
            # SupportedStyles: always, always_true, never
         | 
| 469 | 
            +
            Style/FrozenStringLiteralComment:
         | 
| 470 | 
            +
              Enabled: false
         | 
| 471 | 
            +
             | 
| 471 472 | 
             
            # Offense count: 3
         | 
| 472 473 | 
             
            # Configuration parameters: MinBodyLength.
         | 
| 473 474 | 
             
            Style/GuardClause:
         | 
| @@ -479,7 +480,14 @@ Style/IdenticalConditionalBranches: | |
| 479 480 | 
             
              Exclude:
         | 
| 480 481 | 
             
                - 'lib/stanford-mods/searchworks.rb'
         | 
| 481 482 |  | 
| 482 | 
            -
            # Offense count:  | 
| 483 | 
            +
            # Offense count: 2
         | 
| 484 | 
            +
            # Cop supports --auto-correct.
         | 
| 485 | 
            +
            Style/IfUnlessModifier:
         | 
| 486 | 
            +
              Exclude:
         | 
| 487 | 
            +
                - 'lib/stanford-mods/date_parsing.rb'
         | 
| 488 | 
            +
                - 'lib/stanford-mods/imprint.rb'
         | 
| 489 | 
            +
             | 
| 490 | 
            +
            # Offense count: 2
         | 
| 483 491 | 
             
            # Cop supports --auto-correct.
         | 
| 484 492 | 
             
            # Configuration parameters: InverseMethods, InverseBlocks.
         | 
| 485 493 | 
             
            Style/InverseMethods:
         | 
| @@ -501,14 +509,29 @@ Style/MultilineTernaryOperator: | |
| 501 509 | 
             
              Exclude:
         | 
| 502 510 | 
             
                - 'lib/stanford-mods/physical_location.rb'
         | 
| 503 511 |  | 
| 512 | 
            +
            # Offense count: 1
         | 
| 513 | 
            +
            Style/MultipleComparison:
         | 
| 514 | 
            +
              Exclude:
         | 
| 515 | 
            +
                - 'lib/stanford-mods/origin_info.rb'
         | 
| 516 | 
            +
             | 
| 504 517 | 
             
            # Offense count: 1
         | 
| 505 518 | 
             
            # Cop supports --auto-correct.
         | 
| 506 | 
            -
            # Configuration parameters: EnforcedOctalStyle | 
| 519 | 
            +
            # Configuration parameters: EnforcedOctalStyle.
         | 
| 507 520 | 
             
            # SupportedOctalStyles: zero_with_o, zero_only
         | 
| 508 521 | 
             
            Style/NumericLiteralPrefix:
         | 
| 509 522 | 
             
              Exclude:
         | 
| 510 523 | 
             
                - 'spec/date_parsing_spec.rb'
         | 
| 511 524 |  | 
| 525 | 
            +
            # Offense count: 4
         | 
| 526 | 
            +
            # Cop supports --auto-correct.
         | 
| 527 | 
            +
            # Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
         | 
| 528 | 
            +
            # SupportedStyles: predicate, comparison
         | 
| 529 | 
            +
            Style/NumericPredicate:
         | 
| 530 | 
            +
              Exclude:
         | 
| 531 | 
            +
                - 'spec/**/*'
         | 
| 532 | 
            +
                - 'lib/stanford-mods/origin_info.rb'
         | 
| 533 | 
            +
                - 'lib/stanford-mods/searchworks.rb'
         | 
| 534 | 
            +
             | 
| 512 535 | 
             
            # Offense count: 8
         | 
| 513 536 | 
             
            # Cop supports --auto-correct.
         | 
| 514 537 | 
             
            Style/PerlBackrefs:
         | 
| @@ -517,15 +540,35 @@ Style/PerlBackrefs: | |
| 517 540 |  | 
| 518 541 | 
             
            # Offense count: 3
         | 
| 519 542 | 
             
            # Cop supports --auto-correct.
         | 
| 520 | 
            -
            # Configuration parameters: EnforcedStyle | 
| 543 | 
            +
            # Configuration parameters: EnforcedStyle.
         | 
| 521 544 | 
             
            # SupportedStyles: short, verbose
         | 
| 522 545 | 
             
            Style/PreferredHashMethods:
         | 
| 523 546 | 
             
              Exclude:
         | 
| 524 547 | 
             
                - 'lib/stanford-mods/searchworks.rb'
         | 
| 525 548 |  | 
| 549 | 
            +
            # Offense count: 5
         | 
| 550 | 
            +
            # Cop supports --auto-correct.
         | 
| 551 | 
            +
            Style/RedundantCondition:
         | 
| 552 | 
            +
              Exclude:
         | 
| 553 | 
            +
                - 'lib/stanford-mods/origin_info.rb'
         | 
| 554 | 
            +
                - 'lib/stanford-mods/searchworks.rb'
         | 
| 555 | 
            +
             | 
| 556 | 
            +
            # Offense count: 3
         | 
| 557 | 
            +
            # Cop supports --auto-correct.
         | 
| 558 | 
            +
            # Configuration parameters: AllowMultipleReturnValues.
         | 
| 559 | 
            +
            Style/RedundantReturn:
         | 
| 560 | 
            +
              Exclude:
         | 
| 561 | 
            +
                - 'lib/stanford-mods/date_parsing.rb'
         | 
| 562 | 
            +
             | 
| 563 | 
            +
            # Offense count: 1
         | 
| 564 | 
            +
            # Cop supports --auto-correct.
         | 
| 565 | 
            +
            Style/RedundantSort:
         | 
| 566 | 
            +
              Exclude:
         | 
| 567 | 
            +
                - 'lib/stanford-mods/origin_info.rb'
         | 
| 568 | 
            +
             | 
| 526 569 | 
             
            # Offense count: 6
         | 
| 527 570 | 
             
            # Cop supports --auto-correct.
         | 
| 528 | 
            -
            # Configuration parameters: EnforcedStyle,  | 
| 571 | 
            +
            # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
         | 
| 529 572 | 
             
            # SupportedStyles: slashes, percent_r, mixed
         | 
| 530 573 | 
             
            Style/RegexpLiteral:
         | 
| 531 574 | 
             
              Exclude:
         | 
| @@ -539,9 +582,28 @@ Style/RescueModifier: | |
| 539 582 | 
             
              Exclude:
         | 
| 540 583 | 
             
                - 'lib/stanford-mods/origin_info.rb'
         | 
| 541 584 |  | 
| 585 | 
            +
            # Offense count: 4
         | 
| 586 | 
            +
            # Cop supports --auto-correct.
         | 
| 587 | 
            +
            # Configuration parameters: EnforcedStyle.
         | 
| 588 | 
            +
            # SupportedStyles: implicit, explicit
         | 
| 589 | 
            +
            Style/RescueStandardError:
         | 
| 590 | 
            +
              Exclude:
         | 
| 591 | 
            +
                - 'lib/stanford-mods/imprint.rb'
         | 
| 592 | 
            +
             | 
| 593 | 
            +
            # Offense count: 18
         | 
| 594 | 
            +
            # Cop supports --auto-correct.
         | 
| 595 | 
            +
            # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
         | 
| 596 | 
            +
            # AllowedMethods: present?, blank?, presence, try, try!
         | 
| 597 | 
            +
            Style/SafeNavigation:
         | 
| 598 | 
            +
              Exclude:
         | 
| 599 | 
            +
                - 'lib/stanford-mods/date_parsing.rb'
         | 
| 600 | 
            +
                - 'lib/stanford-mods/imprint.rb'
         | 
| 601 | 
            +
                - 'lib/stanford-mods/searchworks.rb'
         | 
| 602 | 
            +
                - 'lib/stanford-mods/searchworks_subjects.rb'
         | 
| 603 | 
            +
             | 
| 542 604 | 
             
            # Offense count: 1
         | 
| 543 605 | 
             
            # Cop supports --auto-correct.
         | 
| 544 | 
            -
            # Configuration parameters: EnforcedStyle | 
| 606 | 
            +
            # Configuration parameters: EnforcedStyle.
         | 
| 545 607 | 
             
            # SupportedStyles: only_raise, only_fail, semantic
         | 
| 546 608 | 
             
            Style/SignalException:
         | 
| 547 609 | 
             
              Exclude:
         | 
| @@ -549,7 +611,7 @@ Style/SignalException: | |
| 549 611 |  | 
| 550 612 | 
             
            # Offense count: 1
         | 
| 551 613 | 
             
            # Cop supports --auto-correct.
         | 
| 552 | 
            -
            # Configuration parameters:  | 
| 614 | 
            +
            # Configuration parameters: .
         | 
| 553 615 | 
             
            # SupportedStyles: use_perl_names, use_english_names
         | 
| 554 616 | 
             
            Style/SpecialGlobalVars:
         | 
| 555 617 | 
             
              EnforcedStyle: use_perl_names
         | 
| @@ -560,9 +622,9 @@ Style/StderrPuts: | |
| 560 622 | 
             
              Exclude:
         | 
| 561 623 | 
             
                - 'Rakefile'
         | 
| 562 624 |  | 
| 563 | 
            -
            # Offense count:  | 
| 625 | 
            +
            # Offense count: 12
         | 
| 564 626 | 
             
            # Cop supports --auto-correct.
         | 
| 565 | 
            -
            # Configuration parameters: MinSize | 
| 627 | 
            +
            # Configuration parameters: MinSize.
         | 
| 566 628 | 
             
            # SupportedStyles: percent, brackets
         | 
| 567 629 | 
             
            Style/SymbolArray:
         | 
| 568 630 | 
             
              EnforcedStyle: brackets
         | 
| @@ -576,17 +638,25 @@ Style/SymbolProc: | |
| 576 638 | 
             
                - 'lib/stanford-mods/searchworks.rb'
         | 
| 577 639 | 
             
                - 'lib/stanford-mods/searchworks_subjects.rb'
         | 
| 578 640 |  | 
| 641 | 
            +
            # Offense count: 1
         | 
| 642 | 
            +
            # Cop supports --auto-correct.
         | 
| 643 | 
            +
            # Configuration parameters: EnforcedStyleForMultiline.
         | 
| 644 | 
            +
            # SupportedStylesForMultiline: comma, consistent_comma, no_comma
         | 
| 645 | 
            +
            Style/TrailingCommaInArrayLiteral:
         | 
| 646 | 
            +
              Exclude:
         | 
| 647 | 
            +
                - 'spec/date_parsing_spec.rb'
         | 
| 648 | 
            +
             | 
| 579 649 | 
             
            # Offense count: 125
         | 
| 580 650 | 
             
            # Cop supports --auto-correct.
         | 
| 581 | 
            -
            # Configuration parameters:  | 
| 651 | 
            +
            # Configuration parameters: MinSize, WordRegex.
         | 
| 582 652 | 
             
            # SupportedStyles: percent, brackets
         | 
| 583 653 | 
             
            Style/WordArray:
         | 
| 584 654 | 
             
              EnforcedStyle: brackets
         | 
| 585 655 |  | 
| 586 656 | 
             
            # Offense count: 2
         | 
| 587 657 | 
             
            # Cop supports --auto-correct.
         | 
| 588 | 
            -
            # Configuration parameters: EnforcedStyle | 
| 589 | 
            -
            # SupportedStyles:  | 
| 658 | 
            +
            # Configuration parameters: EnforcedStyle.
         | 
| 659 | 
            +
            # SupportedStyles: forbid_for_all_comparison_operators, forbid_for_equality_operators_only, require_for_all_comparison_operators, require_for_equality_operators_only
         | 
| 590 660 | 
             
            Style/YodaCondition:
         | 
| 591 661 | 
             
              Exclude:
         | 
| 592 662 | 
             
                - 'lib/stanford-mods/date_parsing.rb'
         |