sdr-client 0.28.4 → 0.33.0

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
  SHA256:
3
- metadata.gz: 6db2cf36687c4acd4edf26d6046299958450211f89a4e29984d4955c84c891a9
4
- data.tar.gz: f614d2ae6ecf2a6ac35775d9b20f6ac800c805c1aa8e8700052ffef3531b214d
3
+ metadata.gz: 61620c0879bf47dd81a5481650eade57191620a6943ea8e0687748508e50490c
4
+ data.tar.gz: 39ba9d51e9f957c712a5388c67722e2086eb8c59825d54b852f08d0ea9d094c0
5
5
  SHA512:
6
- metadata.gz: 36b84aec31d944071d118a997cc16a48149c562812da2173af9927db31ae92c4e8d44d0ad9d55e43ef434f9f5d9be6898fecebffc967d44ff0350caa0c2ba4b5
7
- data.tar.gz: 744e993e54fa8dc5cffff643cd619879d4b4c65d63431f7892ca77bd79da63d353cb3d299a029f516bec2c3e16dcb534de112a664c2435f2d01f0130318bdd9d
6
+ metadata.gz: f4f8b2d7f879beed528924f10e2607a3809ac578079d20cbf0bb40609d3f6e8ac41c4cdee7d8c8d0cae72b3617f283736e330635a6bc90d9cff628e09d9c9d55
7
+ data.tar.gz: 7d7562b81af79dd9b065e63e179bc4b6f0cabd0f8fe5a9edaba2327aad853271af8f368af589c465d6cadc5e20e6067d827d1a4e2cc3455941eb9ee8d615b83e
@@ -0,0 +1,35 @@
1
+ version: 2.1
2
+
3
+ jobs:
4
+ build:
5
+ docker:
6
+ - image: circleci/ruby:2.7.1
7
+ environment:
8
+ CC_TEST_REPORTER_ID: 859fcfe88b00c026d15dce30e838e2299face8088b49fe62bc3a02d1507ce3d5
9
+ RAILS_ENV: test
10
+ steps:
11
+ - checkout
12
+ - run:
13
+ name: Install Bundler
14
+ command: gem install bundler
15
+ - run:
16
+ name: Which bundler?
17
+ command: bundle -v
18
+ - run:
19
+ name: Bundle Install
20
+ command: bundle check || bundle install
21
+ - run:
22
+ name: Lint using rubocop
23
+ command: bundle exec rubocop
24
+ - run:
25
+ name: Setup Code Climate test-reporter
26
+ command: |
27
+ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
28
+ chmod +x ./cc-test-reporter
29
+ ./cc-test-reporter before-build
30
+ - run:
31
+ name: rspec
32
+ command: bundle exec rspec
33
+ - run:
34
+ name: upload test coverage report to Code Climate
35
+ command: ./cc-test-reporter after-build --coverage-input-type simplecov --exit-code $?
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2020-06-24 17:02:25 -0700 using RuboCop version 0.79.0.
3
+ # on 2020-09-08 13:16:08 -0500 using RuboCop version 0.79.0.
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
@@ -21,9 +21,9 @@ Style/IfUnlessModifier:
21
21
  Exclude:
22
22
  - 'exe/sdr'
23
23
 
24
- # Offense count: 187
24
+ # Offense count: 188
25
25
  # Cop supports --auto-correct.
26
26
  # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
27
27
  # URISchemes: http, https
28
28
  Layout/LineLength:
29
- Max: 1228
29
+ Max: 1230
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- [![Build Status](https://travis-ci.org/sul-dlss/sdr-client.svg?branch=master)](https://travis-ci.org/sul-dlss/sdr-client)
1
+ [![CircleCI](https://circleci.com/gh/sul-dlss/sdr-client.svg?style=svg)](https://circleci.com/gh/sul-dlss/sdr-client)
2
2
  [![Maintainability](https://api.codeclimate.com/v1/badges/1210855d46d4f424bf30/maintainability)](https://codeclimate.com/github/sul-dlss/sdr-client/maintainability)
3
3
  [![Test Coverage](https://api.codeclimate.com/v1/badges/1210855d46d4f424bf30/test_coverage)](https://codeclimate.com/github/sul-dlss/sdr-client/test_coverage)
4
4
  [![Gem Version](https://badge.fury.io/rb/sdr-client.svg)](https://badge.fury.io/rb/sdr-client)
@@ -104,7 +104,7 @@ module SdrClient
104
104
 
105
105
  def structural
106
106
  {}.tap do |json|
107
- json[:isMemberOf] = collection if collection
107
+ json[:isMemberOf] = [collection] if collection
108
108
  json[:contains] = file_sets.map(&:as_json) unless file_sets.empty?
109
109
  json[:hasMemberOrders] = [{ viewingDirection: viewing_direction }] if viewing_direction
110
110
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SdrClient
4
- VERSION = '0.28.4'
4
+ VERSION = '0.33.0'
5
5
  end
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.require_paths = ['lib']
29
29
 
30
30
  spec.add_dependency 'activesupport'
31
- spec.add_dependency 'cocina-models', '~> 0.33.0'
31
+ spec.add_dependency 'cocina-models', '~> 0.40.1'
32
32
  spec.add_dependency 'dry-monads'
33
33
  spec.add_dependency 'faraday', '>= 0.16'
34
34
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sdr-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.4
4
+ version: 0.33.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-30 00:00:00.000000000 Z
11
+ date: 2020-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.33.0
33
+ version: 0.40.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.33.0
40
+ version: 0.40.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: dry-monads
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -173,12 +173,12 @@ executables:
173
173
  extensions: []
174
174
  extra_rdoc_files: []
175
175
  files:
176
+ - ".circleci/config.yml"
176
177
  - ".github/pull_request_template.md"
177
178
  - ".gitignore"
178
179
  - ".rspec"
179
180
  - ".rubocop.yml"
180
181
  - ".rubocop_todo.yml"
181
- - ".travis.yml"
182
182
  - Gemfile
183
183
  - LICENSE
184
184
  - README.md
@@ -219,7 +219,7 @@ metadata:
219
219
  homepage_uri: https://github.com/sul-dlss/sdr-client
220
220
  source_code_uri: https://github.com/sul-dlss/sdr-client
221
221
  changelog_uri: https://github.com/sul-dlss/sdr-client/releases
222
- post_install_message:
222
+ post_install_message:
223
223
  rdoc_options: []
224
224
  require_paths:
225
225
  - lib
@@ -234,8 +234,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
234
234
  - !ruby/object:Gem::Version
235
235
  version: '0'
236
236
  requirements: []
237
- rubygems_version: 3.0.3
238
- signing_key:
237
+ rubygems_version: 3.1.2
238
+ signing_key:
239
239
  specification_version: 4
240
240
  summary: The CLI for https://github.com/sul-dlss/sdr-api
241
241
  test_files: []
@@ -1,20 +0,0 @@
1
- ---
2
- sudo: false
3
- language: ruby
4
- cache: bundler
5
- rvm:
6
- - 2.6.4
7
- before_install: gem install bundler -v 2.1.2
8
-
9
- before_script:
10
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
11
- - chmod +x ./cc-test-reporter
12
- - ./cc-test-reporter before-build
13
- after_script:
14
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
15
-
16
- env:
17
- global:
18
- - CC_TEST_REPORTER_ID=859fcfe88b00c026d15dce30e838e2299face8088b49fe62bc3a02d1507ce3d5
19
- notifications:
20
- email: false