mrt-ingest 0.0.5 → 0.0.6

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
- SHA1:
3
- metadata.gz: 564379d9be6c8e4625b31c7960d31927edf00d8c
4
- data.tar.gz: 9329f69b68d2235082bc6e030d7d44529080094c
2
+ SHA256:
3
+ metadata.gz: c46977a557350af94d24aea5e4d53ed2252aa13bdbb059289ac48b6c36c9a05c
4
+ data.tar.gz: bb12de3c86fe0a45f9b7f4fbea5f0a9478d13ed5e5dd1f6dea09da655cd08306
5
5
  SHA512:
6
- metadata.gz: '0801ccf1a414ffdbb70882036771d4e63b2138274658873e65b3df68b8b3d8e26e2ebc004d18aed3042158300ef8a0cfc21d40b10302eb4138c7f80e96fa40f6'
7
- data.tar.gz: d0e324c585de1f785c8d3c54bb0217ceedb0bece034fe6694b966b72cd0cc87d57fe231c71446d9f70eef4dcffff37ac4f3e7d71393270576a858a322ebe99cb
6
+ metadata.gz: 5391b059eb9bcfca59bc4af506b4c8cddf5a923e53b23e35f12f255893c5e88e178e2fdff150555a37477a0c4e64b45f9d3cf71a61855a03b7730a1a0084cac5
7
+ data.tar.gz: 28cef0d3f22950f7127e766a2e1de0ebd78bffd326ee3a85e0a66beeb790b7417860155b61221dce09e932352c3411368294a467026f0e60e425ef0351588147
data/.rubocop.yml CHANGED
@@ -26,7 +26,7 @@ Layout/MultilineOperationIndentation:
26
26
  Enabled: false
27
27
 
28
28
  # Reasonable line-length check; it's too easy for the cure to be worse than the disease
29
- Metrics/LineLength:
29
+ Layout/LineLength:
30
30
  Max: 150
31
31
 
32
32
  # Confusing and weird
@@ -38,7 +38,7 @@ Naming/MemoizedInstanceVariableName:
38
38
  Enabled: False
39
39
 
40
40
  # It works in context, trust us
41
- Naming/UncommunicativeMethodParamName:
41
+ Naming/MethodParameterName:
42
42
  Enabled: False
43
43
 
44
44
  # Do what's readable in the context you're in
@@ -49,10 +49,6 @@ Style/AccessModifierDeclarations:
49
49
  Style/AsciiComments:
50
50
  Enabled: false
51
51
 
52
- # Sometimes we want to distinguish hash parameters from keyword arguments
53
- Style/BracesAroundHashParameters:
54
- Enabled: False
55
-
56
52
  # Seriously?
57
53
  Style/CommentedKeyword:
58
54
  Enabled: False
data/CHANGES.md CHANGED
@@ -1,3 +1,5 @@
1
+ ## 0.0.6 (Next)
2
+
1
3
  ## 0.0.5 (2019-05-17)
2
4
 
3
5
  - Invalid arguments (nil required parameters, string URLs where `URI` objects are expected, etc.)
data/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ # The MIT License (MIT)
2
+
3
+ Copyright © 2019 The Regents of the University of California
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a
6
+ copy of this software and associated documentation files (the “Software”),
7
+ to deal in the Software without restriction, including without limitation
8
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
9
+ and/or sell copies of the Software, and to permit persons to whom the
10
+ Software is furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21
+ DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,19 +1,26 @@
1
- # mrt-ingest (ruby)
1
+ # Merritt Ingest Gem
2
2
 
3
3
  [![Build Status](https://travis-ci.org/CDLUC3/mrt-ingest-ruby.svg?branch=master)](https://travis-ci.org/CDLUC3/mrt-ingest-ruby)
4
4
 
5
- ## What?
5
+ This microservice is part of the [Merritt Preservation System](https://github.com/CDLUC3/mrt-doc).
6
6
 
7
- A Ruby ingest client for [Merritt](https://merritt.cdlib.org/).
7
+ ## Purpose
8
8
 
9
- ## Install
9
+ This library provides utility methods for preparing content for ingest into Merritt.
10
+
11
+ ## Used By
12
+
13
+ This code is used by
14
+ - [Merritt UI](https://github.com/CDLUC3/mrt-dashboard)
15
+
16
+ ## Build instructions
10
17
 
11
18
  ```
12
19
  $ gem build mrt-ingest.gemspec
13
20
  $ sudo gem install mrt-ingest-0.0.1.gem
14
21
  ```
15
22
 
16
- ## Usage
23
+ ## Test instructions
17
24
 
18
25
  The code below creates a new Merritt object with content consisting of two local files
19
26
  and one remote URL. The object is submitted to Merritt as a manifest, with the manifest,
@@ -53,4 +60,6 @@ obj.finish_ingest # waits for all files to be served, then shuts down
53
60
  ```
54
61
 
55
62
  For a more detailed example, see the [Merritt::Atom](https://github.com/CDLUC3/mrt-dashboard/tree/master/lib/merritt/atom)
56
- module of the Merritt dashboard.
63
+ module of the Merritt dashboard.
64
+
65
+ ## Internal Links
@@ -48,7 +48,7 @@ module Mrt
48
48
  # rubocop:enable Metrics/MethodLength, Metrics/ParameterLists
49
49
 
50
50
  # Returns a hash of arguments suitable for sending to a server.
51
- # rubocop: disable Metrics/MethodLength, Metrics/AbcSize
51
+ # rubocop: disable Metrics/MethodLength
52
52
  def mk_args
53
53
  {
54
54
  'creator' => creator,
@@ -67,7 +67,7 @@ module Mrt
67
67
  'type' => type
68
68
  }.reject { |_k, v| v.nil? || (v == '') }
69
69
  end
70
- # rubocop: enable Metrics/MethodLength, Metrics/AbcSize
70
+ # rubocop: enable Metrics/MethodLength
71
71
 
72
72
  private
73
73
 
data/mrt-ingest.gemspec CHANGED
@@ -1,8 +1,9 @@
1
1
  $LOAD_PATH.push File.expand_path('lib', __dir__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
+ s.required_ruby_version = '>= 2.4.0'
4
5
  s.name = 'mrt-ingest'
5
- s.version = '0.0.5'
6
+ s.version = '0.0.6'
6
7
  s.platform = Gem::Platform::RUBY
7
8
  s.authors = ['Mark Reyes', 'David Moles']
8
9
  s.email = ['mark.reyes@ucop.edu', 'david.moles@ucop.edu']
@@ -14,7 +15,7 @@ Gem::Specification.new do |s|
14
15
  s.add_dependency 'json', '~> 2.0'
15
16
  s.add_dependency 'rest-client', '~> 2.0'
16
17
 
17
- s.add_development_dependency 'bundler', '~> 1.16'
18
+ s.add_development_dependency 'bundler', '>= 2.2.10'
18
19
  s.add_development_dependency 'checkm', '0.0.6'
19
20
  s.add_development_dependency 'mocha', '~> 1.7'
20
21
  s.add_development_dependency 'rake', '~> 12.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mrt-ingest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Reyes
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-05-17 00:00:00.000000000 Z
12
+ date: 2021-06-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -43,16 +43,16 @@ dependencies:
43
43
  name: bundler
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - "~>"
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
- version: '1.16'
48
+ version: 2.2.10
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - "~>"
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: '1.16'
55
+ version: 2.2.10
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: checkm
58
58
  requirement: !ruby/object:Gem::Requirement
@@ -200,7 +200,7 @@ files:
200
200
  - ".travis.yml"
201
201
  - CHANGES.md
202
202
  - Gemfile
203
- - LICENSE
203
+ - LICENSE.md
204
204
  - README.md
205
205
  - Rakefile
206
206
  - lib/mrt/ingest.rb
@@ -236,15 +236,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
236
236
  requirements:
237
237
  - - ">="
238
238
  - !ruby/object:Gem::Version
239
- version: '0'
239
+ version: 2.4.0
240
240
  required_rubygems_version: !ruby/object:Gem::Requirement
241
241
  requirements:
242
242
  - - ">="
243
243
  - !ruby/object:Gem::Version
244
244
  version: '0'
245
245
  requirements: []
246
- rubyforge_project:
247
- rubygems_version: 2.6.14.1
246
+ rubygems_version: 3.0.3.1
248
247
  signing_key:
249
248
  specification_version: 4
250
249
  summary: A client for Merritt ingest.
data/LICENSE DELETED
@@ -1,26 +0,0 @@
1
- Copyright (c) 2011-2018, Regents of the University of California
2
- All rights reserved.
3
-
4
- Redistribution and use in source and binary forms, with or without
5
- modification, are permitted provided that the following conditions are met:
6
-
7
- - Redistributions of source code must retain the above copyright notice,
8
- this list of conditions and the following disclaimer.
9
- - Redistributions in binary form must reproduce the above copyright notice,
10
- this list of conditions and the following disclaimer in the documentation
11
- and/or other materials provided with the distribution.
12
- - Neither the name of the University of California nor the names of its
13
- contributors may be used to endorse or promote products derived from this
14
- software without specific prior written permission.
15
-
16
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19
- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
20
- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21
- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22
- SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23
- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24
- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25
- ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26
- POSSIBILITY OF SUCH DAMAGE.