Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Ease how we determine preprocessed location #299

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 7 additions & 0 deletions .gitguardian.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
secret:
ignored-matches:
- match: 482ff525fad5752fc89e4fa3eb252dac53290fdcb6180ad43df4113818823ed1
name: Rails Master Key - /Users/jeremy/git/iiif_print/.internal_test_app/config/master.key
- match: bbbe487a7d2f7e0da6e71682a17a9ee265aeee01dab4c6fc990fe04e9352da4a
name: Generic High Entropy Secret - /Users/jeremy/git/iiif_print/.internal_test_app/config/initializers/devise.rb
version: 2
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fits.log
.byebug_history

# Ignore generated engine_cart testing app:
.internal_test_app
# .internal_test_app

# Ignore all RubyMine temp files
.idea/
Expand All @@ -53,4 +53,4 @@ pkg/

# yard generated files
.yardoc/
doc/
doc/
4 changes: 4 additions & 0 deletions .internal_test_app/.fcrepo_wrapper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Place any default configuration for fcrepo_wrapper here
port: 8984
enable_jms: false
fcrepo_home_dir: tmp/fcrepo4-development-data
1 change: 1 addition & 0 deletions .internal_test_app/.generated_engine_cart
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"env":{"RUBY_DESCRIPTION":"ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [aarch64-linux-musl]","BUNDLE_GEMFILE":"/app/samvera/hyrax-webapp/Gemfile"},"files":[{"file":"./iiif_print.gemspec","fingerprint":"697b4ea9c02f156ec5da9c441ff0c088"},{"file":"/app/samvera/hyrax-webapp/Gemfile","fingerprint":"edbef6e01d3287d0504c48a09f406d6d"},{"file":"./db/migrate/20230109000000_create_iiif_print_pending_relationships.rb","fingerprint":"3c8521829fd229af00173a329da7fc28"},{"file":"./db/migrate/20190107165909_create_iiif_print_ingest_file_relations.rb","fingerprint":"5878b26b5ee7fc5a571865df79d09705"},{"file":"./db/migrate/20181214181358_create_iiif_print_derivative_attachments.rb","fingerprint":"281928302b83635d9d152daf95e8d09a"},{"file":"./db/migrate/20231110163052_add_model_details_to_iiif_print_pending_relationships.rb","fingerprint":"27af681d2be1a641720587b0551270c1"},{"file":"./lib/generators/iiif_print/assets_generator.rb","fingerprint":"3b3da2347a52e6f31dab8e26585cb4e0"},{"file":"./lib/generators/iiif_print/install_generator.rb","fingerprint":"e04c33f0f77bbbf9d314a91e1e404e66"},{"file":"./lib/generators/iiif_print/templates/iiif_print.scss","fingerprint":"5eb33a0df11070353489fe174e4438c5"},{"file":"./lib/generators/iiif_print/templates/config/initializers/iiif_print.rb","fingerprint":"70bfff234c4e9b52883c2b040331953e"},{"file":"./lib/generators/iiif_print/templates/helpers/iiif_print_helper.rb","fingerprint":"21bdeb997e70f246a4620688d861f2db"},{"file":"./lib/generators/iiif_print/catalog_controller_generator.rb","fingerprint":"284395fbc909179a4ebfbe4a9ed5df29"},{"file":"./spec/test_app_templates/fedora.yml","fingerprint":"b02b06873a71176ec63cdf3b45a78d2c"},{"file":"./spec/test_app_templates/blacklight.yml","fingerprint":"59ceef60f894538cd5ac0f5469cccb4d"},{"file":"./spec/test_app_templates/solr.yml","fingerprint":"ad5d95be78b367588d83f47f33acdf7e"},{"file":"./spec/test_app_templates/redis.yml","fingerprint":"b935b3fccb537207e8479e25ecb313dd"},{"file":"./spec/test_app_templates/solr/conf/schema.xml","fingerprint":"7b1a9c71af79646c6f260ff9fe5e7336"},{"file":"./spec/test_app_templates/solr/conf/solrconfig.xml","fingerprint":"126c60d5a6987da4334354d0b43e5a95"},{"file":"./spec/test_app_templates/lib/generators/test_app_generator.rb","fingerprint":"96c3500646750b9cc087d540ee9259ca"}]}
1 change: 1 addition & 0 deletions .internal_test_app/.rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--require spec_helper
1 change: 1 addition & 0 deletions .internal_test_app/.ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby-2.7.6
8 changes: 8 additions & 0 deletions .internal_test_app/.solr_wrapper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Place any default configuration for solr_wrapper here
# version: 6.0.0
# port: 8983
instance_dir: tmp/solr-development
collection:
persist: true
dir: solr/conf/
name: hydra-development
66 changes: 66 additions & 0 deletions .internal_test_app/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '2.7.6'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.2.8', '>= 5.2.8.1'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use Puma as the app server
gem 'puma', '~> 3.11'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'mini_racer', platforms: :ruby

# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use ActiveStorage variant
# gem 'mini_magick', '~> 4.8'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
end

group :development do
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
gem 'web-console', '>= 3.3.0'
end


# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
gemspec path: '/app/samvera/hyrax-webapp'
eval_gemfile File.expand_path('/app/samvera/hyrax-webapp/spec/test_app_templates/Gemfile.extra', File.dirname(__FILE__)) if File.exist?('/app/samvera/hyrax-webapp/spec/test_app_templates/Gemfile.extra')

gem 'redis', '4.8.1'
group :development, :test do
gem 'solr_wrapper', '>= 0.3'
end

gem 'rsolr', '>= 1.0', '< 3'
gem 'bootstrap-sass', '~> 3.0'
gem 'twitter-typeahead-rails', '0.11.1.pre.corejavascript'
gem 'jquery-rails'
gem 'devise'
gem 'devise-guests', '~> 0.6'
group :development, :test do
gem 'fcrepo_wrapper'
gem 'rspec-rails'
end
24 changes: 24 additions & 0 deletions .internal_test_app/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# README

This README would normally document whatever steps are necessary to get the
application up and running.

Things you may want to cover:

* Ruby version

* System dependencies

* Configuration

* Database creation

* Database initialization

* How to run the test suite

* Services (job queues, cache servers, search engines, etc.)

* Deployment instructions

* ...
8 changes: 8 additions & 0 deletions .internal_test_app/Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

require_relative 'config/application'

Rails.application.load_tasks

require 'solr_wrapper/rake_task' unless Rails.env.production?
3 changes: 3 additions & 0 deletions .internal_test_app/app/assets/config/manifest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//= link_tree ../images
//= link_directory ../javascripts .js
//= link_directory ../stylesheets .css
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions .internal_test_app/app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
// vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file. JavaScript code in this file should be added after the last require_* statement.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require rails-ujs
//= require activestorage
//= require turbolinks
//
// Required by Blacklight
//= require jquery
//= require blacklight/blacklight

//= require_tree .
//= require hyrax
//= require iiif_print


13 changes: 13 additions & 0 deletions .internal_test_app/app/assets/javascripts/cable.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Action Cable provides the framework to deal with WebSockets in Rails.
// You can generate new channels where WebSocket features live using the `rails generate channel` command.
//
//= require action_cable
//= require_self
//= require_tree ./channels

(function() {
this.App || (this.App = {});

App.cable = ActionCable.createConsumer();

}).call(this);
15 changes: 15 additions & 0 deletions .internal_test_app/app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
* vendor/assets/stylesheets directory can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
*
*= require_tree .
*= require_self
*/
17 changes: 17 additions & 0 deletions .internal_test_app/app/assets/stylesheets/hyrax.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* ...
*= require jquery-ui
*= require select2
*= require_self
*/

@import "bootstrap-sprockets";
@import "bootstrap-default-overrides";
@import 'bootstrap';
@import 'blacklight/blacklight';
@import "font-awesome";
@import "blacklight_gallery/gallery";
@import "blacklight_gallery/masonry";
@import "blacklight_gallery/slideshow";
@import "blacklight_gallery/osd_viewer";
@import 'hyrax/hyrax';
@import 'hyrax/login_signup';
1 change: 1 addition & 0 deletions .internal_test_app/app/assets/stylesheets/iiif_print.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import 'iiif_print/iiif_print';
4 changes: 4 additions & 0 deletions .internal_test_app/app/channels/application_cable/channel.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module ApplicationCable
class Channel < ActionCable::Channel::Base
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module ApplicationCable
class Connection < ActionCable::Connection::Base
end
end
12 changes: 12 additions & 0 deletions .internal_test_app/app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
class ApplicationController < ActionController::Base
# Adds a few additional behaviors into the application controller
include Blacklight::Controller
include Hydra::Controller::ControllerBehavior

# Adds Hyrax behaviors into the application controller
include Hyrax::Controller
include Hyrax::ThemedLayoutController
with_themed_layout '1_column'


end
Loading
Loading