rake-ui 0.1.1 → 0.1.3

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: a66b9b0231a472dbbfb3dae969eab443def70832d9f52ffc4b803be8c1123782
4
- data.tar.gz: ebef2c3058517271dd4bab6a2b99f647f42795359a04c4325e15647576e4e8c4
3
+ metadata.gz: 1908294b9112c4e194b37f62602869d5440b834ea96d1a608b4442bacd68931c
4
+ data.tar.gz: 43cfb8e2c716024dd9f32f6653da422d6349b43ed303bf6f184e5d4274ed86b2
5
5
  SHA512:
6
- metadata.gz: c3688dbe3121f828132c8699d803100c0648ad10699ee22a80177606314797d46f336279d5dbd9cd8b92d44eb0dd138c91d8abc2f8a8c0177b707326000e7284
7
- data.tar.gz: dd25fe11781e13cf75ca0d069ee17d40e08feb576ca42fbb038fcea9590058e2afcb4f0913681ddc859e469f61ee735098af31e348b2c7a84c50f07b2024801b
6
+ metadata.gz: 3e2615ec56b69c6188487ab893304f22a81cd9a9b3888ecbf52dd3ca5b50ef3aa7079a7863066218cbad28167c50443a574d4a58b9d427d0492d66e92e37d7a4
7
+ data.tar.gz: 527eeb3ff132ad75e18f8125da4d6eabf5f770279ae586e24219a8aaaf23e5ad7d5b2d93ad68fbce9207c6453c533de5517de63ecc924cf842422cff9027a647
@@ -27,7 +27,7 @@ module RakeUi
27
27
  def show
28
28
  @rake_task_log = RakeUi::RakeTaskLog.find_by_id(params[:id])
29
29
 
30
- @rake_task_log_content = @rake_task_log.file_contents.gsub("\n", "<br />")
30
+ @rake_task_log_content = @rake_task_log.file_contents
31
31
  @rake_task_log_content_url = rake_task_log_path(@rake_task_log.id, format: :json)
32
32
  @is_rake_task_log_finished = @rake_task_log.finished?
33
33
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  module RakeUi
4
4
  class RakeTaskLog < OpenStruct
5
- # year-month-day-hour(24hour time)-minute-second-utc
6
- ID_DATE_FORMAT = "%Y-%m-%d-%H-%M-%S%z"
5
+ # year-month-day-hour(24hour time)-minute-second-nanosecond-utc
6
+ ID_DATE_FORMAT = "%Y-%m-%d-%H-%M-%S-%N%z"
7
7
  REPOSITORY_DIR = Rails.root.join("tmp", "rake_ui")
8
8
  FILE_DELIMITER = "____"
9
9
  FINISHED_STRING = "+++++ COMMAND FINISHED +++++"
@@ -5,8 +5,8 @@
5
5
 
6
6
  <hr />
7
7
 
8
- <div id="log_content" class="overflow-y: scroll">
9
- <%= @rake_task_log_content.html_safe %>
8
+ <div id="log_content" style="overflow-y: scroll; white-space: pre-wrap;">
9
+ <%= @rake_task_log_content %>
10
10
  </div>
11
11
 
12
12
  <script type="application/javascript">
@@ -15,7 +15,7 @@
15
15
  var is_requesting = false
16
16
 
17
17
  function replaceContent(content) {
18
- document.getElementById('log_content').innerHTML = content
18
+ document.getElementById('log_content').textContent = content
19
19
  }
20
20
 
21
21
  interval = setInterval(function () {
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RakeUi
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Story
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-20 00:00:00.000000000 Z
11
+ date: 2026-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport