Skip to content

Commit

Permalink
update resque, resque-web, resque-pool
Browse files Browse the repository at this point in the history
added 'font-awesome-sass' for resque-web
copied over app/views/layouts/resque_web/application.html.erb for
resque_web, resque/resque-web#156
  • Loading branch information
sethaj committed Jul 5, 2022
1 parent 6f630c8 commit b8d25f2
Show file tree
Hide file tree
Showing 5 changed files with 119 additions and 28 deletions.
8 changes: 6 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ gem 'devise-guests', '~> 0.7'
gem 'faraday', '~> 0.9'
# NOTE: This is the last minor release in the v0.x series, next release will be 1.0 to match Faraday v1.0 release and from then on only fixes will be applied to v0.14.x!
gem 'faraday_middleware', '~> 0.14.0'

# needed by resque-web
gem 'font-awesome-sass', '>= 6.0'

#
# # Use gem version of handle_rest
gem 'handle_rest', git: 'https://github.com/mlibrary/handle_rest', ref: 'baed402b5a530eb57e838443ce292ec3f46cd5e6'
Expand Down Expand Up @@ -164,9 +168,9 @@ gem 'prawn', '~> 2.2'
gem 'redcarpet', '~> 3.5.1'
gem 'reverse_markdown'

gem 'resque', '~> 1.26.0'
gem 'resque', '~> 2.2.1 '
gem 'resque-pool'
gem 'resque-web', '~> 0.0.7', require: 'resque_web'
gem 'resque-web', '~> 0.0.12', require: 'resque_web'

gem 'riiif', '1.4.1'

Expand Down
49 changes: 23 additions & 26 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -347,8 +347,8 @@ GEM
jquery-rails
font-awesome-rails (4.7.0.8)
railties (>= 3.2, < 8.0)
font-awesome-sass (5.2.0)
sassc (>= 1.11)
font-awesome-sass (6.1.1)
sassc (~> 2.0)
forwardable-extended (2.6.0)
geocoder (1.8.0)
globalid (1.0.0)
Expand Down Expand Up @@ -600,11 +600,10 @@ GEM
multi_json
less (2.6.0)
commonjs (~> 0.2.7)
less-rails (2.8.0)
actionpack (>= 4.0)
less-rails (4.0.0)
actionpack (>= 4)
less (~> 2.6.0)
sprockets (> 2, < 4)
tilt
sprockets (>= 2)
link_header (0.0.8)
linkeddata (3.2.0)
json-ld (~> 3.2)
Expand Down Expand Up @@ -666,8 +665,8 @@ GEM
mini_mime (1.1.2)
mini_portile2 (2.8.0)
minitar (0.8)
minitest (5.15.0)
mono_logger (1.1.0)
minitest (5.16.2)
mono_logger (1.1.1)
msgpack (1.3.3)
multi_json (1.15.0)
multi_xml (0.6.0)
Expand Down Expand Up @@ -743,13 +742,13 @@ GEM
rails (>= 5.0, < 6.2)
rdf
racc (1.6.0)
rack (2.2.3.1)
rack (2.2.4)
rack-protection (2.2.0)
rack
rack-proxy (0.7.0)
rack
rack-test (1.1.0)
rack (>= 1.0, < 3)
rack-test (2.0.2)
rack (>= 1.3)
rails (5.2.7.1)
actioncable (= 5.2.7.1)
actionmailer (= 5.2.7.1)
Expand Down Expand Up @@ -851,7 +850,7 @@ GEM
redcarpet (3.5.1)
redic (1.5.3)
hiredis
redis (4.6.0)
redis (4.7.1)
redis-namespace (1.8.2)
redis (>= 3.0.4)
redlock (1.2.2)
Expand All @@ -873,15 +872,14 @@ GEM
responders (3.0.0)
actionpack (>= 5.0)
railties (>= 5.0)
resque (1.26.0)
resque (2.2.1)
mono_logger (~> 1.0)
multi_json (~> 1.0)
redis-namespace (~> 1.3)
redis-namespace (~> 1.6)
sinatra (>= 0.9.2)
vegas (~> 0.1.2)
resque-pool (0.6.0)
rake
resque (~> 1.22)
resque-pool (0.7.1)
rake (>= 10.0, < 14.0)
resque (>= 1.22, < 3)
resque-web (0.0.12)
coffee-rails
font-awesome-sass
Expand Down Expand Up @@ -1087,11 +1085,11 @@ GEM
turbolinks (5.2.0)
turbolinks-source (~> 5.2)
turbolinks-source (5.2.0)
twitter-bootstrap-rails (4.0.0)
actionpack (~> 5.0, >= 5.0.1)
twitter-bootstrap-rails (5.0.0)
actionpack (>= 5.0, < 8.0)
execjs (~> 2.7)
less-rails (~> 2.8, >= 2.8.0)
railties (~> 5.0, >= 5.0.1)
less-rails (>= 3.0, < 5.0)
railties (>= 5.0, < 8.0)
twitter-typeahead-rails (0.11.1.pre.corejavascript)
actionpack (>= 3.1)
jquery-rails
Expand Down Expand Up @@ -1126,8 +1124,6 @@ GEM
rdf-vocab
reform (~> 2.2)
reform-rails
vegas (0.1.11)
rack (>= 1.0.0)
warden (1.2.8)
rack (>= 2.0.6)
web-console (3.6.2)
Expand Down Expand Up @@ -1193,6 +1189,7 @@ DEPENDENCIES
faraday (~> 0.9)
faraday_middleware (~> 0.14.0)
fcrepo_wrapper (= 0.5.2)
font-awesome-sass (>= 6.0)
handle_rest!
hyrax (= 3.4.1)
i18n (~> 0.7)
Expand Down Expand Up @@ -1226,9 +1223,9 @@ DEPENDENCIES
rails-controller-testing
rails-html-sanitizer (~> 1.3.0)
redcarpet (~> 3.5.1)
resque (~> 1.26.0)
resque (~> 2.2.1)
resque-pool
resque-web (~> 0.0.7)
resque-web (~> 0.0.12)
reverse_markdown
riiif (= 1.4.1)
rsolr (~> 2.0.1)
Expand Down
6 changes: 6 additions & 0 deletions app/assets/stylesheets/_font-awesome-sprockets.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/* removed sometime after font-awesome v5, needed by resque-web v0.0.12 */
@function fa-font-path($path) {
@return font-path($path);
}

$fa-sass-asset-helper: true;
1 change: 1 addition & 0 deletions app/assets/stylesheets/application.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@
* require_tree .
* require_self
*/

83 changes: 83 additions & 0 deletions app/views/layouts/resque_web/application.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<%# copied over from the resque_web gem due to https://github.com/resque/resque-web/issues/156 %>
<%# It's just "Resque::VERSION" instead of Resque::Version at the bottom of this file %>


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<title>Resque.</title>
<%= stylesheet_link_tag "resque_web/application", :media => "all" %>
<%=
ResqueWeb::Plugins.plugins.collect do |p|
file_path = "#{p.name.underscore.downcase}/application.css"
if (Rails.application.assets && Rails.application.assets.find_asset(file_path)) ||
(Rails.application.assets_manifest && Rails.application.assets_manifest.assets[file_path])
stylesheet_link_tag "#{p.name.underscore.downcase}/application"
end
end.join("\n").html_safe
%>
<%= javascript_include_tag "resque_web/application" %>
<%=
ResqueWeb::Plugins.plugins.collect do |p|
file_path = "#{p.name.underscore.downcase}/application.js"
if (Rails.application.assets && Rails.application.assets.find_asset(file_path)) ||
(Rails.application.assets_manifest && Rails.application.assets_manifest.assets[file_path])
javascript_include_tag "#{p.name.underscore.downcase}/application"
end
end.join("\n").html_safe
%>
<%= csrf_meta_tags %>
</head>
<body>

<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<%= image_tag "resque_web/lifebuoy.png", class: 'logo' %>
<%= link_to "Resque", ResqueWeb::Engine.app.url_helpers.root_path, :class => "brand navbar-brand" %>
<div class="nav-collapse navbar-collapse collapse">
<ul class="nav navbar-nav">
<% tabs.each do |tab_name,path| %>
<%= tab tab_name,path %>
<% end %>
<% if respond_to?(:main_app) %>
<li><%= link_to "Return to Application", main_app.root_path, :class => "nav navbar-nav" %></li>
<% end %>
</ul>
</div>
</div>
</div>
</div>

<% unless subtabs.empty? %>
<ul class="nav subnav">
<div class="container">
<% subtabs.each do |tab_name| %>
<%= subtab tab_name %>
<% end %>
</div>
</ul>
<% end %>

<div class="container" id="main">
<%= yield %>
</div>

<footer id="footer">
<div class="container">
<p>Powered by <a href="http://github.com/resque/resque">Resque</a> v<%=Resque::VERSION%></p>
<p>Connected to Redis namespace <%= Resque.redis.namespace %> on <%=Resque.redis_id%></p>
</div>
</footer>

</body>
</html>

0 comments on commit b8d25f2

Please sign in to comment.