-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run rubocop autocorrect for consistent styles
- Loading branch information
Showing
115 changed files
with
1,625 additions
and
1,434 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
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,22 +1,24 @@ | ||
#!/usr/bin/env rake | ||
require "bundler/gem_tasks" | ||
# frozen_string_literal: true | ||
|
||
require 'bundler/gem_tasks' | ||
require 'rspec/core/rake_task' | ||
|
||
APP_ROOT= File.expand_path(File.join(File.dirname(__FILE__),"..")) | ||
import "tasks/hydra-access-controls.rake" | ||
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..')) | ||
import 'tasks/hydra-access-controls.rake' | ||
|
||
desc 'Default: run specs.' | ||
task :default => :spec | ||
task default: :spec | ||
|
||
desc "Run specs" | ||
desc 'Run specs' | ||
RSpec::Core::RakeTask.new do |t| | ||
if ENV['COVERAGE'] and RUBY_VERSION =~ /^1.8/ | ||
if ENV['COVERAGE'] && RUBY_VERSION =~ /^1.8/ | ||
t.rcov = true | ||
t.rcov_opts = %w{--exclude spec\/*,gems\/*,ruby\/* --aggregate coverage.data} | ||
t.rcov_opts = %w[--exclude spec\/*,gems\/*,ruby\/* --aggregate coverage.data] | ||
end | ||
end | ||
|
||
desc "clean" | ||
desc 'clean' | ||
task :clean do | ||
#nop, required by hydra-head ci | ||
# nop, required by hydra-head ci | ||
end |
2 changes: 2 additions & 0 deletions
2
hydra-access-controls/app/indexers/hydra/access_controls/embargo_indexer.rb
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,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Hydra::AccessControls | ||
class EmbargoIndexer | ||
def initialize(object) | ||
|
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
2 changes: 2 additions & 0 deletions
2
hydra-access-controls/app/models/concerns/hydra/access_controls.rb
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,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module Hydra | ||
module AccessControls | ||
extend ActiveSupport::Autoload | ||
|
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.