samvera-nesting_indexer 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eda0716fd21bf940a1579608723873ead488df6e
4
- data.tar.gz: 6496a06843f6d404036595c82238662275d465d6
3
+ metadata.gz: 3ad74f407b44bdc3b0ec0662e88cd7e816859102
4
+ data.tar.gz: 612c1e2e3472b3ebc72403163bbed296824ba2bc
5
5
  SHA512:
6
- metadata.gz: 0d6e41b470b8e3655c8f01f5a2eb593f44b1bf7dd3739363502b65a51bd77c8b5e52e0f84a02b3adba21ea63891fa7368c0660880916016ff0d2ee96a6364bc0
7
- data.tar.gz: 647c0d4d3b3e4b50ca0c69cb220b01745e5c77ccb1144c26853f1533a81b7b480fe74454e45b8ba101b2e7489d9606517f007beb3b4bfc86700f11db776b50c8
6
+ metadata.gz: ada7bf4240708b933108f6692428ebe4c92d114a0828adc96a9f22e180eb2dcb9a598409cc58f2d0bc27deb2c22bb65344bb76741b248beecd91196b756eb7af
7
+ data.tar.gz: 15a36430ce0f4500bd51ddce816e71388b9dc799e4e96d3f3c1f2d6d49776e750054866aaa8e9331e8076de308dd70a1d79561d17af46461553527e4cc489ce6
@@ -33,6 +33,9 @@ ModuleLength:
33
33
  Exclude:
34
34
  - 'spec/**/*'
35
35
 
36
+ Metrics/BlockLength:
37
+ Exclude:
38
+ - 'spec/**/*_spec.rb'
36
39
 
37
40
  Style/StringLiterals:
38
41
  Description: 'Checks if uses of quotes match the configured preference.'
@@ -3,15 +3,9 @@ cache: bundler
3
3
 
4
4
  language: ruby
5
5
  rvm:
6
- - 2.3.1
7
- - 2.2.5
8
- - 2.2.2
9
- - 2.1.10
10
- - 2.0.0
11
-
12
- matrix:
13
- allow_failures:
14
- - rvm: "2.3.1"
6
+ - 2.4.1
7
+ - 2.3.4
8
+ - 2.2.7
15
9
 
16
10
  before_install: gem install bundler -v 1.12.5
17
11
 
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # Samvera::NestingIndexer
2
2
 
3
- [![Build Status](https://travis-ci.org/ndlib/samvera-indexer.png?branch=master)](https://travis-ci.org/ndlib/samvera-indexer)
4
- [![Test Coverage](https://codeclimate.com/github/ndlib/samvera-indexer/badges/coverage.svg)](https://codeclimate.com/github/ndlib/samvera-indexer)
5
- [![Code Climate](https://codeclimate.com/github/ndlib/samvera-indexer.png)](https://codeclimate.com/github/ndlib/samvera-indexer)
6
- [![Documentation Status](http://inch-ci.org/github/ndlib/samvera-indexer.svg?branch=master)](http://inch-ci.org/github/ndlib/samvera-indexer)
3
+ [![Build Status](https://travis-ci.org/samvera-labs/samvera-nesting_indexer.png?branch=master)](https://travis-ci.org/samvera-labs/samvera-nesting_indexer)
4
+ [![Test Coverage](https://codeclimate.com/github/samvera-labs/samvera-nesting_indexer/badges/coverage.svg)](https://codeclimate.com/github/samvera-labs/samvera-nesting_indexer)
5
+ [![Code Climate](https://codeclimate.com/github/samvera-labs/samvera-nesting_indexer.png)](https://codeclimate.com/github/samvera-labs/samvera-nesting_indexer)
6
+ [![Documentation Status](http://inch-ci.org/github/samvera-labs/samvera-nesting_indexer.svg?branch=master)](http://inch-ci.org/github/samvera-labs/samvera-nesting_indexer)
7
7
  [![APACHE 2 License](http://img.shields.io/badge/APACHE2-license-blue.svg)](./LICENSE)
8
8
 
9
9
  The Samvera::NestingIndexer gem is responsible for indexing the graph relationship of objects. It maps a PreservationDocument to an IndexDocument by mapping a PreservationDocument's direct parents into the paths to get from a root document to the given PreservationDocument.
data/Rakefile CHANGED
@@ -4,7 +4,9 @@ require "rspec/core/rake_task"
4
4
  namespace :commitment do
5
5
  require 'rubocop/rake_task'
6
6
  # Why hound? Because hound-ci assumes this file, and perhaps you'll be using this
7
- RuboCop::RakeTask.new
7
+ RuboCop::RakeTask.new do |task|
8
+ task.options = ['--display-cop-names']
9
+ end
8
10
 
9
11
  task :configure_test_for_code_coverage do
10
12
  ENV['COVERAGE'] = 'true'
@@ -27,7 +27,7 @@ module Samvera
27
27
  # @api public
28
28
  # @yield Samvera::NestingIndexer::Document::PreservationDocument
29
29
  def self.each_preservation_document(&block)
30
- Preservation.find_each { |document| yield(document) }
30
+ Preservation.find_each { |document| block.call(document) }
31
31
  end
32
32
 
33
33
  # @api public
@@ -1,8 +1,8 @@
1
1
  if defined?(RSpec)
2
2
  RSpec.shared_examples 'a Samvera::NestingIndexer::Adapter' do
3
- let(:required_keyword_parameters) { ->(method) { method.parameters.select { |type, kwarg| type == :keyreq }.map(&:last) } }
4
- let(:required_parameters) { ->(method) { method.parameters.select { |type, kwarg| type == :keyreq || type == :req }.map(&:last) } }
5
- let(:block_parameter_extracter) { ->(method) { method.parameters.select { |type, kwarg| type == :block }.map(&:last) } }
3
+ let(:required_keyword_parameters) { ->(method) { method.parameters.select { |type, _kwarg| type == :keyreq }.map(&:last) } }
4
+ let(:required_parameters) { ->(method) { method.parameters.select { |type, _kwarg| type == :keyreq || type == :req }.map(&:last) } }
5
+ let(:block_parameter_extracter) { ->(method) { method.parameters.select { |type, _kwarg| type == :block }.map(&:last) } }
6
6
 
7
7
  describe '.find_preservation_document_by' do
8
8
  subject { described_class.method(:find_preservation_document_by) }
@@ -9,8 +9,7 @@ module Samvera
9
9
  class Configuration
10
10
  DEFAULT_MAXIMUM_NESTING_DEPTH = 15
11
11
 
12
- def initialize(adapter: default_adapter, maximum_nesting_depth: DEFAULT_MAXIMUM_NESTING_DEPTH)
13
- self.adapter = adapter
12
+ def initialize(maximum_nesting_depth: DEFAULT_MAXIMUM_NESTING_DEPTH)
14
13
  self.maximum_nesting_depth = maximum_nesting_depth
15
14
  end
16
15
 
@@ -1,5 +1,5 @@
1
1
  module Samvera
2
2
  module NestingIndexer
3
- VERSION = "0.3.1".freeze
3
+ VERSION = "0.3.2".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: samvera-nesting_indexer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Friesen