From 0734fe8554e07ebdba96a8ac105b269563911c38 Mon Sep 17 00:00:00 2001 From: Kevin Musiorski Date: Tue, 8 May 2018 10:42:48 -0500 Subject: [PATCH 1/5] add xray rails to look at pretty views --- Gemfile | 1 + Gemfile.lock | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Gemfile b/Gemfile index 3a7d9c8..edab756 100644 --- a/Gemfile +++ b/Gemfile @@ -60,6 +60,7 @@ group :development, :test do gem 'rspec-rails' gem 'selenium-webdriver' gem 'solr_wrapper', '>= 0.3' + gem 'xray-rails' end group :test do diff --git a/Gemfile.lock b/Gemfile.lock index 1f28a5d..fd2cd1d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -812,6 +812,8 @@ GEM xml-simple (1.1.5) xpath (3.0.0) nokogiri (~> 1.8) + xray-rails (0.3.1) + rails (>= 3.1.0) PLATFORMS ruby @@ -852,6 +854,7 @@ DEPENDENCIES tzinfo-data uglifier (>= 1.3.0) web-console (>= 3.3.0) + xray-rails BUNDLED WITH 1.16.1 From f4c74d2fbf58cc7ffccb5582eea873ce95d0f687 Mon Sep 17 00:00:00 2001 From: Kevin Musiorski Date: Tue, 8 May 2018 11:29:33 -0500 Subject: [PATCH 2/5] overrides hyrax footer and turns constant into a link to github with the env var that capistrano sets on deploy. --- app/views/shared/_footer.html.erb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 app/views/shared/_footer.html.erb diff --git a/app/views/shared/_footer.html.erb b/app/views/shared/_footer.html.erb new file mode 100644 index 0000000..4137933 --- /dev/null +++ b/app/views/shared/_footer.html.erb @@ -0,0 +1,14 @@ +
+
+ + +
+
From 92cbc1c92512f06e6dbcfa26b1e12f0fea5541fb Mon Sep 17 00:00:00 2001 From: Kevin Musiorski Date: Tue, 8 May 2018 11:53:23 -0500 Subject: [PATCH 3/5] looks at the actual issue on asc repo and sees links to help articles on not reinventing the wheel :( --- app/views/shared/_footer.html.erb | 2 +- config/initializers/git_sha.rb | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 config/initializers/git_sha.rb diff --git a/app/views/shared/_footer.html.erb b/app/views/shared/_footer.html.erb index 4137933..c6c9fa2 100644 --- a/app/views/shared/_footer.html.erb +++ b/app/views/shared/_footer.html.erb @@ -2,7 +2,7 @@