Skip to content

Commit 01223b9

Browse files
authored
Merge pull request #96 from TAMULib/spotlight-operational-sprint-staging
Spotlight Operational Sprint
2 parents c311200 + 6bf9a2f commit 01223b9

File tree

19 files changed

+161
-8627
lines changed

19 files changed

+161
-8627
lines changed

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,3 @@
3939
/yarn-error.log
4040
yarn-debug.log*
4141
.yarn-integrity
42-
43-
~
44-
$(rbenv root)
45-
.env*

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.4
1+
3.1.6

Gemfile

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
source 'https://rubygems.org'
22
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
33

4-
ruby '3.1.4'
4+
ruby '3.1.6'
55

66
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
77
gem 'rails', '~> 6.1'
@@ -51,13 +51,12 @@ gem 'tzinfo-data'
5151

5252
gem 'pg'
5353

54-
gem 'devise_ldap_authenticatable'
54+
gem 'devise_saml_authenticatable'
5555

5656
gem 'tinymce-rails'
5757

58-
gem 'blacklight', '~> 7.35'
59-
# gem 'blacklight-spotlight', github: 'projectblacklight/spotlight', branch: 'main'
60-
gem 'blacklight-spotlight', '~> 3.3', '>= 3.3.0'
58+
gem 'blacklight', ' ~> 7.0'
59+
gem 'blacklight-spotlight', ' ~> 3.0.3'
6160
group :development, :test do
6261
gem 'solr_wrapper', '>= 0.3'
6362
end
@@ -70,12 +69,10 @@ gem 'devise'
7069
gem 'devise-guests', '~> 0.6'
7170
gem 'coffee-rails', '~> 4.2'
7271
gem 'uglifier', '>= 1.3.0'
73-
gem 'terser', '~> 1.1', '>= 1.1.19'
7472
gem 'friendly_id'
7573
gem 'sitemap_generator'
76-
gem 'blacklight-gallery', '~> 3.5'
77-
gem 'blacklight-oembed', '~> 1.1', '>= 1.1.1'
74+
gem 'blacklight-gallery', '~> 1.1'
75+
gem 'blacklight-oembed', '~> 1.0'
7876
gem 'devise_invitable'
79-
gem 'mimemagic', github: 'mimemagicrb/mimemagic', ref: '01f92d86d15d85cfd0f20dabd025dcbd36a8a60f'
80-
gem 'psych', '~> 3.3', '>= 3.3.4'
81-
gem 'sir_trevor_rails', '~> 0.6.1'
77+
78+
gem 'psych', '~> 3.1'

app/models/search_builder.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# frozen_string_literal: true
22
class SearchBuilder < Blacklight::SearchBuilder
33
include Blacklight::Solr::SearchBuilderBehavior
4-
5-
include Spotlight::AccessControlsEnforcementSearchBuilder
4+
include Spotlight::SearchBuilder
65

76
##
87
# @example Adding a new step to the processor chain

app/models/user.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class User < ApplicationRecord
66

77
# Include default devise modules. Others available are:
88
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
9-
devise :invitable, :ldap_authenticatable, :rememberable, :validatable
9+
devise :invitable, :saml_authenticatable, :rememberable, :validatable
1010

1111
# Method added by Blacklight; Blacklight uses #to_s on your
1212
# user class to get a user-displayable login/identifier for

app/views/shared/_footer.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<li class="list-inline-item"><%= link_to "Off-Campus Access", "https://library.tamu.edu/services/tech_troubleshooting.html" %></li>
88
<li class="list-inline-item"><%= link_to "Texas A&M University", "https://www.tamu.edu" %></li>
99
<li class="list-inline-item"><%= link_to "Site Policies", "https://library.tamu.edu/about/compliance.html" %></li>
10-
<li class="list-inline-item"><%= link_to "Texas CREWS", "http://www.thecb.state.tx.us/apps/txcrews" %></li>
10+
<li class="list-inline-item"><%= link_to "Texas CREWS", "https://txcrews.org/" %></li>
1111
<li class="list-inline-item"><%= link_to "Accessibility", "https://askus.library.tamu.edu/faq/229193" %></li>
1212
<li class="list-inline-item"><%= link_to "Comments", "https://askus.library.tamu.edu/contact/index" %></li>
1313
<li class="list-inline-item"><%= link_to "Copyright", "https://tamu.libwizard.com/id/92fdfdec4a3227642e99d2a56f7755f8" %></li>

babel.config.js

Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
module.exports = function(api) {
2-
var validEnv = ['development', 'test', 'production']
3-
var currentEnv = api.env()
4-
var isDevelopmentEnv = api.env('development')
5-
var isProductionEnv = api.env('production')
6-
var isTestEnv = api.env('test')
2+
var validEnv = ['development', 'test', 'production'];
3+
var currentEnv = api.env();
4+
var isDevelopmentEnv = api.env('development');
5+
var isProductionEnv = api.env('production');
6+
var isTestEnv = api.env('test');
77

88
if (!validEnv.includes(currentEnv)) {
99
throw new Error(
@@ -12,7 +12,7 @@ module.exports = function(api) {
1212
'"test", and "production". Instead, received: ' +
1313
JSON.stringify(currentEnv) +
1414
'.'
15-
)
15+
);
1616
}
1717

1818
return {
@@ -21,9 +21,9 @@ module.exports = function(api) {
2121
'@babel/preset-env',
2222
{
2323
targets: {
24-
node: 'current'
25-
}
26-
}
24+
node: 'current',
25+
},
26+
},
2727
],
2828
(isProductionEnv || isDevelopmentEnv) && [
2929
'@babel/preset-env',
@@ -32,9 +32,9 @@ module.exports = function(api) {
3232
useBuiltIns: 'entry',
3333
corejs: 3,
3434
modules: false,
35-
exclude: ['transform-typeof-symbol']
36-
}
37-
]
35+
exclude: ['transform-typeof-symbol'],
36+
},
37+
],
3838
].filter(Boolean),
3939
plugins: [
4040
'babel-plugin-macros',
@@ -44,29 +44,41 @@ module.exports = function(api) {
4444
[
4545
'@babel/plugin-proposal-class-properties',
4646
{
47-
loose: true
48-
}
47+
loose: true,
48+
},
4949
],
5050
[
5151
'@babel/plugin-proposal-object-rest-spread',
5252
{
53-
useBuiltIns: true
54-
}
53+
useBuiltIns: true,
54+
},
5555
],
5656
[
5757
'@babel/plugin-transform-runtime',
5858
{
5959
helpers: false,
6060
regenerator: true,
61-
corejs: false
62-
}
61+
corejs: false,
62+
},
6363
],
6464
[
6565
'@babel/plugin-transform-regenerator',
6666
{
67-
async: false
68-
}
69-
]
70-
].filter(Boolean)
71-
}
72-
}
67+
async: false,
68+
},
69+
],
70+
[
71+
'@babel/plugin-transform-private-methods',
72+
{
73+
loose: true,
74+
},
75+
],
76+
[
77+
'@babel/plugin-transform-private-property-in-object',
78+
{
79+
loose: true,
80+
},
81+
],
82+
].filter(Boolean),
83+
};
84+
};

config/application.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
module TamuSpotlight
1010
class Application < Rails::Application
1111
config.action_mailer.default_url_options = { host: "localhost:4200", from: "noreply@example.com" }
12+
13+
config.active_record.use_yaml_unsafe_load = true
14+
1215
# Initialize configuration defaults for originally generated Rails version.
1316
config.load_defaults 6.0
1417

config/attribute-map.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# attribute-map.yml
2+
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name": "user_name"
3+
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name": "email"

config/database.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ production:
2525
encoding: <%= ENV['DATABASE_ENCODING'] || "unicode" %>
2626
database: <%= ENV['DATABASE_NAME'] || "spotlight" %>
2727
pool: <%= ENV['DATABASE_POOL'] || 5 %>
28-
username: <%= ENV['DATABASE_USERNAME'] || "spotlight_user" %>
28+
username: <%= ENV['DATABASE_USERNAME'] || "spotlight" %>
2929
password: <%= ENV['DATABASE_PASSWORD'] || "spotlight" %>
3030
host: <%= ENV['DATABASE_HOST'] || "localhost" %>
3131
port: <%= ENV['DATABASE_PORT'] || 5432 %>

0 commit comments

Comments
 (0)