-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
289 additions
and
113 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
require: rubocop-rspec | ||
inherit_from: .rubocop_todo.yml | ||
|
||
AllCops: | ||
DisplayCopNames: true | ||
Include: | ||
- '**/Rakefile' | ||
- '**/config.ru' | ||
Exclude: | ||
- 'db/**/*' | ||
- 'script/**/*' | ||
- 'spec/internal/**/*' | ||
- 'spec/test_app_templates/**/*' | ||
- 'vendor/**/*' | ||
|
||
Lint/ImplicitStringConcatenation: | ||
Exclude: | ||
- 'lib/generators/sufia/**/*' | ||
|
||
Metrics/LineLength: | ||
Enabled: false | ||
|
||
Metrics/AbcSize: | ||
Enabled: false | ||
|
||
Metrics/MethodLength: | ||
Enabled: false | ||
|
||
Performance/RedundantMerge: | ||
Enabled: false | ||
|
||
Style/ZeroLengthPredicate: | ||
Enabled: false | ||
|
||
Style/BlockDelimiters: | ||
Exclude: | ||
- 'spec/**/*' | ||
|
||
Style/BlockEndNewline: | ||
Exclude: | ||
- 'spec/**/*' | ||
|
||
Style/MultilineBlockLayout: | ||
Exclude: | ||
- 'spec/**/*' | ||
|
||
Style/IndentationConsistency: | ||
EnforcedStyle: rails | ||
|
||
Style/CollectionMethods: | ||
PreferredMethods: | ||
collect: 'map' | ||
collect!: 'map!' | ||
inject: 'reduce' | ||
detect: 'find' | ||
find_all: 'select' | ||
|
||
Style/WordArray: | ||
Enabled: false | ||
|
||
Style/RegexpLiteral: | ||
Enabled: false | ||
|
||
Style/StringLiterals: | ||
Enabled: false | ||
|
||
Style/ClassAndModuleChildren: | ||
Enabled: false | ||
|
||
Style/Documentation: | ||
Enabled: false | ||
|
||
Style/LineEndConcatenation: | ||
Exclude: | ||
- 'spec/test_app_templates/lib/generators/**/*' | ||
- 'lib/generators/**/*' | ||
|
||
Style/SingleLineBlockParams: | ||
Enabled: false | ||
|
||
Style/SignalException: | ||
Enabled: false | ||
|
||
Style/ZeroLengthPredicate: | ||
Enabled: false | ||
|
||
Rails: | ||
Enabled: true | ||
|
||
Rails/Date: | ||
Enabled: false | ||
|
||
Rails/TimeZone: | ||
Enabled: false | ||
|
||
RSpec/AnyInstance: | ||
Enabled: false | ||
|
||
RSpec/ExampleWording: | ||
CustomTransform: | ||
be: is | ||
have: has | ||
not: does not | ||
NOT: does NOT | ||
IgnoredWords: | ||
- only | ||
|
||
RSpec/FilePath: | ||
Enabled: false | ||
|
||
RSpec/InstanceVariable: | ||
Enabled: false | ||
|
||
RSpec/NotToNot: | ||
Enabled: false |
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,57 @@ | ||
# Put any overides here | ||
Metrics/ClassLength: | ||
Exclude: | ||
- 'app/controllers/catalog_controller.rb' | ||
# Metrics/ModuleLength: | ||
# Exclude: | ||
# - 'app/controllers/concerns/sufia/users_controller_behavior.rb' | ||
# - 'app/controllers/concerns/sufia/files_controller_behavior.rb' | ||
# - 'app/helpers/sufia/sufia_helper_behavior.rb' | ||
# | ||
# Style/HashSyntax: | ||
# Exclude: | ||
# - 'lib/generators/sufia/templates/catalog_controller.rb' | ||
# | ||
# Style/LineEndConcatenation: | ||
# Exclude: | ||
# - 'spec/test_app_templates/lib/generators/**/*' | ||
# - 'lib/generators/**/*' | ||
# | ||
# Style/PredicateName: | ||
# Exclude: | ||
# - 'app/helpers/sufia/sufia_helper_behavior.rb' | ||
# - 'app/controllers/concerns/sufia/controller.rb' | ||
# | ||
# Style/GlobalVars: | ||
# Exclude: | ||
# - 'spec/**/*' | ||
# - 'spec/jobs/event_jobs_spec.rb' | ||
# - 'lib/generators/sufia/templates/config/redis_config.rb' | ||
# - 'lib/sufia/redis_event_store.rb' | ||
# | ||
# Style/ClassVars: | ||
# Exclude: | ||
# - 'lib/sufia/models.rb' | ||
# - 'lib/sufia.rb' | ||
# | ||
# Rails/Output: | ||
# Exclude: | ||
# - 'lib/generators/**/*' | ||
# - 'app/services/sufia/user_stat_importer.rb' | ||
# | ||
# Rails/HasAndBelongsToMany: | ||
# Exclude: | ||
# - 'app/models/domain_term.rb' | ||
# - 'app/models/local_authority.rb' | ||
# | ||
# RSpec/DescribeClass: | ||
# Exclude: | ||
# - 'spec/javascripts/jasmine_spec.rb' | ||
# - 'spec/tasks/rake_spec.rb' | ||
# - 'spec/jobs/event_jobs_spec.rb' | ||
# - 'spec/config/sufia_events_spec.rb' | ||
# - 'spec/features/**/*' | ||
# - 'spec/views/**/*' | ||
# - 'spec/routing/**/*' | ||
# - 'spec/requests/**/*' | ||
# - 'spec/inputs/**/*' |
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
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
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 |
---|---|---|
@@ -1,28 +1,25 @@ | ||
# frozen_string_literal: true | ||
class SolrDocument | ||
|
||
class SolrDocument | ||
include Blacklight::Solr::Document | ||
# Adds CurationConcerns behaviors to the SolrDocument. | ||
include CurationConcerns::SolrDocumentBehavior | ||
|
||
|
||
# self.unique_key = 'id' | ||
|
||
# Email uses the semantic field mappings below to generate the body of an email. | ||
SolrDocument.use_extension( Blacklight::Document::Email ) | ||
SolrDocument.use_extension(Blacklight::Document::Email) | ||
|
||
# SMS uses the semantic field mappings below to generate the body of an SMS email. | ||
SolrDocument.use_extension( Blacklight::Document::Sms ) | ||
SolrDocument.use_extension(Blacklight::Document::Sms) | ||
|
||
# DublinCore uses the semantic field mappings below to assemble an OAI-compliant Dublin Core document | ||
# Semantic mappings of solr stored fields. Fields may be multi or | ||
# single valued. See Blacklight::Document::SemanticFields#field_semantics | ||
# and Blacklight::Document::SemanticFields#to_semantic_values | ||
# Recommendation: Use field names from Dublin Core | ||
use_extension( Blacklight::Document::DublinCore) | ||
|
||
use_extension(Blacklight::Document::DublinCore) | ||
|
||
# Do content negotiation for AF models. | ||
# Do content negotiation for AF models. | ||
|
||
use_extension( Hydra::ContentNegotiation ) | ||
use_extension(Hydra::ContentNegotiation) | ||
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
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
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
Oops, something went wrong.