arclight 1.0.0.beta3 β†’ 1.0.0.beta4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7013a9e0dc84a12fb9b6ed9e54e691c69153105e776dfadcc20c2f4aad877ec
4
- data.tar.gz: a582750f5f80679ee4aaf7004bf0c30487f1f1c517c5738b509990597024636f
3
+ metadata.gz: de99e4c2ae0648272400bc3f6e1ebc44d72c4eba1dd5a5da249c24cc3c81fbd9
4
+ data.tar.gz: 223999c19a620b8dfbabdf237799f2284aa45ca7eccfc2a9c78f9b3afd1454e2
5
5
  SHA512:
6
- metadata.gz: 1934764433941e5bd519c1ac95646109b766fc36df6826fb273d285f0abbc6a3de6b3d58a2f7cd321c0edbbe402d03eef257f63dcf890508c2f1ac9a53104910
7
- data.tar.gz: fca59f728f58b919dfabb27f37bf1190e6513680e29cb6ddd55ef5f9fe5c622b7d35657076a7e3beef5d0d1b8d3b828cce7411d6452745ae9560a14e3a142934
6
+ metadata.gz: dffd784bd5b96d60bc8ff647330ce887347437b22e6fdf3b02dd918bd94c9159f340491a47c41c12367d3681d749501992d1e00155477e152f2c9f4c9dbb631e
7
+ data.tar.gz: 56ec25a1e40465b4ecee490243da9959c5559a1060813e8a5a579ea1275950f9d07b5222f378820ea584b7a922b0b00249496d1e6a4c8272eb2c1dbcee38d222
@@ -13,7 +13,6 @@ jobs:
13
13
  matrix:
14
14
  rails_version: [7.0.4]
15
15
  ruby: ['3.0', '3.1', '3.2']
16
- blacklight_version: [8.0.0.beta7]
17
16
  env:
18
17
  RAILS_VERSION: ${{ matrix.rails_version }}
19
18
  steps:
data/.rubocop.yml CHANGED
@@ -200,9 +200,9 @@ RSpec/SubjectDeclaration: # new in 2.5
200
200
  Enabled: true
201
201
  RSpec/VerifiedDoubleReference: # new in 2.10.0
202
202
  Enabled: true
203
- RSpec/Capybara/SpecificFinders: # new in 2.13
203
+ Capybara/SpecificFinders: # new in 2.13
204
204
  Enabled: true
205
- RSpec/Capybara/SpecificMatcher: # new in 2.12
205
+ Capybara/SpecificMatcher: # new in 2.12
206
206
  Enabled: true
207
207
  RSpec/FactoryBot/SyntaxMethods: # new in 2.7
208
208
  Enabled: true
@@ -314,9 +314,9 @@ Style/RedundantStringEscape: # new in 1.37
314
314
  Enabled: true
315
315
  RSpec/SortMetadata: # new in 2.14
316
316
  Enabled: true
317
- RSpec/Capybara/NegationMatcher: # new in 2.14
317
+ Capybara/NegationMatcher: # new in 2.14
318
318
  Enabled: true
319
- RSpec/Capybara/SpecificActions: # new in 2.14
319
+ Capybara/SpecificActions: # new in 2.14
320
320
  Enabled: true
321
321
  RSpec/FactoryBot/ConsistentParenthesesStyle: # new in 2.14
322
322
  Enabled: false # https://github.com/rspec/rspec-rails/issues/2635
@@ -327,4 +327,36 @@ Rails/ActionOrder: # new in 2.17
327
327
  Rails/IgnoredColumnsAssignment: # new in 2.17
328
328
  Enabled: true
329
329
  Rails/WhereNotWithMultipleConditions: # new in 2.17
330
+ Enabled: true
331
+ Gemspec/DevelopmentDependencies: # new in 1.44
332
+ Enabled: true
333
+ Lint/UselessRescue: # new in 1.43
334
+ Enabled: true
335
+ Style/ArrayIntersect: # new in 1.40
336
+ Enabled: true
337
+ Style/ComparableClamp: # new in 1.44
338
+ Enabled: true
339
+ Style/ConcatArrayLiterals: # new in 1.41
340
+ Enabled: true
341
+ Style/MapToSet: # new in 1.42
342
+ Enabled: true
343
+ Style/MinMaxComparison: # new in 1.42
344
+ Enabled: true
345
+ Style/RedundantConstantBase: # new in 1.40
346
+ Enabled: true
347
+ Style/RedundantDoubleSplatHashBraces: # new in 1.41
348
+ Enabled: true
349
+ Style/RedundantHeredocDelimiterQuotes: # new in 1.45
350
+ Enabled: true
351
+ Capybara/MatchStyle: # new in 2.17
352
+ Enabled: true
353
+ RSpec/DuplicatedMetadata: # new in 2.16
354
+ Enabled: true
355
+ RSpec/PendingWithoutReason: # new in 2.16
356
+ Enabled: true
357
+ RSpec/FactoryBot/FactoryNameStyle: # new in 2.16
358
+ Enabled: false # https://github.com/rubocop/rubocop-rspec/issues/1587
359
+ RSpec/Rails/MinitestAssertions: # new in 2.17
360
+ Enabled: true
361
+ Rails/ResponseParsedBody: # new in 2.18
330
362
  Enabled: true
data/.rubocop_todo.yml CHANGED
@@ -1,39 +1,40 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2022-10-05 03:27:31 UTC using RuboCop version 1.36.0.
3
+ # on 2023-02-27 17:35:23 UTC using RuboCop version 1.46.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
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 2
10
- # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods, CountRepeatedAttributes.
9
+ # Offense count: 10
10
+ # Configuration parameters: EnforcedStyle, AllowedGems, Include.
11
+ # SupportedStyles: Gemfile, gems.rb, gemspec
12
+ # Include: **/*.gemspec, **/Gemfile, **/gems.rb
13
+ Gemspec/DevelopmentDependencies:
14
+ Exclude:
15
+ - 'arclight.gemspec'
16
+
17
+ # Offense count: 1
18
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
11
19
  Metrics/AbcSize:
12
20
  Max: 19
13
21
 
14
- # Offense count: 2
15
- # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
22
+ # Offense count: 1
23
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
16
24
  Metrics/CyclomaticComplexity:
17
25
  Max: 8
18
26
 
19
- # Offense count: 4
20
- # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods.
27
+ # Offense count: 3
28
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
21
29
  Metrics/MethodLength:
22
- Max: 17
30
+ Max: 11
23
31
 
24
- # Offense count: 1
25
- # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
32
+ # Offense count: 2
33
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
26
34
  Metrics/PerceivedComplexity:
27
35
  Max: 9
28
36
 
29
- # Offense count: 1
30
- # Configuration parameters: ForbiddenDelimiters.
31
- # ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
32
- Naming/HeredocDelimiterNaming:
33
- Exclude:
34
- - 'spec/features/autocomplete_spec.rb'
35
-
36
- # Offense count: 80
37
+ # Offense count: 60
37
38
  # Configuration parameters: Prefixes, AllowedPatterns.
38
39
  # Prefixes: when, with, without
39
40
  RSpec/ContextWording:
@@ -47,38 +48,32 @@ RSpec/DescribedClass:
47
48
  Exclude:
48
49
  - 'spec/presenters/arclight/show_presenter_spec.rb'
49
50
 
50
- # Offense count: 62
51
+ # Offense count: 60
51
52
  # Configuration parameters: CountAsOne.
52
53
  RSpec/ExampleLength:
53
54
  Max: 49
54
55
 
55
- # Offense count: 2
56
- RSpec/ExpectInHook:
57
- Exclude:
58
- - 'spec/helpers/arclight_helper_spec.rb'
59
-
60
- # Offense count: 1
61
- # Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
62
- # Include: **/*_spec*rb*, **/spec/**/*
63
- RSpec/FilePath:
64
- Exclude:
65
- - 'spec/lib/arclight/viewers/oembed_spec.rb'
66
-
67
- # Offense count: 132
56
+ # Offense count: 112
68
57
  RSpec/MultipleExpectations:
69
- Max: 25
58
+ Max: 22
70
59
 
71
- # Offense count: 30
60
+ # Offense count: 37
72
61
  # Configuration parameters: AllowSubject.
73
62
  RSpec/MultipleMemoizedHelpers:
74
63
  Max: 10
75
64
 
76
- # Offense count: 19
65
+ # Offense count: 22
77
66
  # Configuration parameters: AllowedGroups.
78
67
  RSpec/NestedGroups:
79
68
  Max: 5
80
69
 
81
- # Offense count: 7
70
+ # Offense count: 2
71
+ RSpec/PendingWithoutReason:
72
+ Exclude:
73
+ - 'spec/features/document_tools_spec.rb'
74
+ - 'spec/features/google_form_request_spec.rb'
75
+
76
+ # Offense count: 5
82
77
  # This cop supports unsafe autocorrection (--autocorrect-all).
83
78
  # Configuration parameters: Strict, EnforcedStyle, AllowedExplicitMatchers.
84
79
  # SupportedStyles: inflected, explicit
@@ -87,13 +82,7 @@ RSpec/PredicateMatcher:
87
82
  - 'spec/helpers/arclight_helper_spec.rb'
88
83
  - 'spec/lib/arclight/year_range_spec.rb'
89
84
 
90
- # Offense count: 3
91
- RSpec/StubbedMock:
92
- Exclude:
93
- - 'spec/helpers/arclight_helper_spec.rb'
94
- - 'spec/lib/arclight/viewer_spec.rb'
95
-
96
- # Offense count: 2
85
+ # Offense count: 1
97
86
  # This cop supports unsafe autocorrection (--autocorrect-all).
98
87
  # Configuration parameters: NilOrEmpty, NotPresent, UnlessPresent.
99
88
  Rails/Blank:
@@ -112,7 +101,7 @@ Rails/OutputSafety:
112
101
  Exclude:
113
102
  - 'app/helpers/arclight/field_config_helpers.rb'
114
103
 
115
- # Offense count: 7
104
+ # Offense count: 6
116
105
  # This cop supports unsafe autocorrection (--autocorrect-all).
117
106
  # Configuration parameters: Include.
118
107
  # Include: **/Rakefile, **/*.rake
@@ -125,3 +114,9 @@ Rails/RakeEnvironment:
125
114
  Security/Open:
126
115
  Exclude:
127
116
  - 'lib/tasks/index.rake'
117
+
118
+ # Offense count: 1
119
+ # This cop supports safe autocorrection (--autocorrect).
120
+ Style/RedundantConstantBase:
121
+ Exclude:
122
+ - 'spec/spec_helper.rb'
data/CONTRIBUTORS.md CHANGED
@@ -45,7 +45,7 @@ Individual project contributors include ([emoji key](https://allcontributors.org
45
45
  </tr>
46
46
  <tr>
47
47
  <td align="center"><a href="https://github.com/gordonleacock"><img src="https://avatars3.githubusercontent.com/u/12927191?v=4" width="125px;" alt="Gordon Leacock"/><br /><sub><b>Gordon Leacock</b></sub></a><br /><a href="https://github.com/projectblacklight/arclight/commits?author=gordonleacock" title="Code">πŸ’»</a> <a href="https://github.com/projectblacklight/arclight/commits?author=gordonleacock" title="Documentation">πŸ“–</a></td>
48
- <td align="center"><a href="https://matienzo.org/"><img src="https://avatars0.githubusercontent.com/u/73732?v=4" width="125px;" alt="Mark A. Matienzo"/><br /><sub><b>Mark A. Matienzo</b></sub></a><br /><a href="#projectManagement-anarchivist" title="Project Management">πŸ“†</a> <a href="#business-anarchivist" title="Business development">πŸ’Ό</a> <a href="#analysis-anarchivist" title="Functional requirements and related research">πŸ”¬</a> <a href="#productOwner-anarchivist" title="Product owner">πŸ—Ί</a></td>
48
+ <td align="center"><a href="https://matienzo.org/"><img src="https://avatars0.githubusercontent.com/u/73732?v=4" width="125px;" alt="MarΓ­a A. Matienzo"/><br /><sub><b>MarΓ­a A. Matienzo</b></sub></a><br /><a href="#projectManagement-anarchivist" title="Project Management">πŸ“†</a> <a href="#business-anarchivist" title="Business development">πŸ’Ό</a> <a href="#analysis-anarchivist" title="Functional requirements and related research">πŸ”¬</a> <a href="#productOwner-anarchivist" title="Product owner">πŸ—Ί</a></td>
49
49
  <td align="center"><a href="https://github.com/archivistsarah"><img src="https://avatars0.githubusercontent.com/u/25084902?v=4" width="125px;" alt="Sarah Newhouse"/><br /><sub><b>Sarah Newhouse</b></sub></a><br /><a href="#analysis-archivistsarah" title="Functional requirements and related research">πŸ”¬</a></td>
50
50
  <td align="center"><a href="https://github.com/grepcats"><img src="https://avatars0.githubusercontent.com/u/7513448?v=4" width="125px;" alt="Kayla Ondracek"/><br /><sub><b>Kayla Ondracek</b></sub></a><br /><a href="#analysis-grepcats" title="Functional requirements and related research">πŸ”¬</a></td>
51
51
  <td align="center"><a href="https://github.com/djpillen"><img src="https://avatars3.githubusercontent.com/u/11635158?v=4" width="125px;" alt="Dallas Pillen"/><br /><sub><b>Dallas Pillen</b></sub></a><br /><a href="https://github.com/projectblacklight/arclight/commits?author=djpillen" title="Code">πŸ’»</a> <a href="#userTesting-djpillen" title="User Testing">πŸ““</a></td>
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Gem Version](https://badge.fury.io/rb/arclight.svg)](https://badge.fury.io/rb/arclight)
2
+ [![npm version](https://badge.fury.io/js/arclight.svg)](https://badge.fury.io/js/arclight)
1
3
  ![Build Status](https://github.com/projectblacklight/arclight/workflows/CI/badge.svg)
2
4
  [![All Contributors](https://img.shields.io/badge/all_contributors-17-orange.svg?style=flat-square)](CONTRIBUTORS.md)
3
5
  [![Code Climate Test Coverage](https://codeclimate.com/github/projectblacklight/arclight/badges/coverage.svg)](https://codeclimate.com/github/projectblacklight/arclight/coverage)
@@ -1,6 +1,6 @@
1
1
  <div class="offcanvas-lg offcanvas-start p-3 p-lg-1" tabindex="-1" id="sidebar">
2
2
  <%= collection_context %>
3
- <%= render 'show_tools' %>
3
+ <%= render 'show_tools', document: document %>
4
4
  <%= collection_sidebar %>
5
5
  <div id="collection-context" class="sidebar-section">
6
6
  <h2><%= t('arclight.views.show.has_content') %></h2>
data/arclight.gemspec CHANGED
@@ -10,10 +10,11 @@ Gem::Specification.new do |spec|
10
10
  spec.authors = ['Darren Hardy', 'Jessie Keck', 'Gordon Leacock', 'Jack Reed']
11
11
  spec.email = ['drh@stanford.edu', 'jessie.keck@gmail.com', 'gordonl@umich.edu', 'phillipjreed@gmail.com']
12
12
 
13
- spec.summary = ''
13
+ spec.summary = 'A Blacklight-based environment to support discovery and delivery for archives and special collections'
14
14
  spec.description = ''
15
- spec.homepage = 'https://github.com/projectblacklight/arclight'
16
- spec.license = 'Apache-2.0'
15
+ spec.homepage = 'https://library.stanford.edu/projects/arclight'
16
+ spec.metadata = { 'source_code_uri' => 'https://github.com/projectblacklight/arclight' }
17
+ spec.license = 'Apache-2.0'
17
18
 
18
19
  spec.required_ruby_version = '>= 3.0.0'
19
20
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
@@ -23,7 +24,7 @@ Gem::Specification.new do |spec|
23
24
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
25
  spec.require_paths = ['lib']
25
26
 
26
- spec.add_dependency 'blacklight', '>= 8.0.0.beta', '< 9'
27
+ spec.add_dependency 'blacklight', '>= 8.0.0', '< 9'
27
28
  spec.add_dependency 'gretel'
28
29
  spec.add_dependency 'rails', '~> 7.0'
29
30
  spec.add_dependency 'traject', '~> 3.0'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Arclight
4
- VERSION = '1.0.0.beta3'
4
+ VERSION = '1.0.0.beta4'
5
5
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arclight",
3
- "version": "1.0.0-beta.3",
3
+ "version": "1.0.0-beta.4",
4
4
  "description": "The frontend for arclight",
5
5
  "main": "app/assets/javascript/arclight/arclight.js",
6
6
  "files": [
@@ -18,12 +18,12 @@
18
18
  },
19
19
  "repository": {
20
20
  "type": "git",
21
- "url": "git+https://github.com/projectblacklight/arclight.git"
21
+ "url": "https://github.com/projectblacklight/arclight.git"
22
22
  },
23
23
  "author": "",
24
24
  "license": "Apache-2.0",
25
25
  "bugs": {
26
26
  "url": "https://github.com/projectblacklight/arclight/issues"
27
27
  },
28
- "homepage": "https://github.com/projectblacklight/arclight#readme"
28
+ "homepage": "https://library.stanford.edu/projects/arclight"
29
29
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arclight
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.beta3
4
+ version: 1.0.0.beta4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darren Hardy
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: exe
13
13
  cert_chain: []
14
- date: 2023-02-27 00:00:00.000000000 Z
14
+ date: 2023-03-20 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: blacklight
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirements:
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 8.0.0.beta
22
+ version: 8.0.0
23
23
  - - "<"
24
24
  - !ruby/object:Gem::Version
25
25
  version: '9'
@@ -29,7 +29,7 @@ dependencies:
29
29
  requirements:
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 8.0.0.beta
32
+ version: 8.0.0
33
33
  - - "<"
34
34
  - !ruby/object:Gem::Version
35
35
  version: '9'
@@ -493,10 +493,11 @@ files:
493
493
  - solr/conf/xslt/luke.xsl
494
494
  - tasks/arclight.rake
495
495
  - template.rb
496
- homepage: https://github.com/projectblacklight/arclight
496
+ homepage: https://library.stanford.edu/projects/arclight
497
497
  licenses:
498
498
  - Apache-2.0
499
- metadata: {}
499
+ metadata:
500
+ source_code_uri: https://github.com/projectblacklight/arclight
500
501
  post_install_message:
501
502
  rdoc_options: []
502
503
  require_paths:
@@ -515,5 +516,6 @@ requirements: []
515
516
  rubygems_version: 3.3.26
516
517
  signing_key:
517
518
  specification_version: 4
518
- summary: ''
519
+ summary: A Blacklight-based environment to support discovery and delivery for archives
520
+ and special collections
519
521
  test_files: []