rake-ui 0.1.2 → 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: b5703262643de959dc202deea4531e36ad1331d8ceb4826d1588abcba905cc69
4
- data.tar.gz: 10c73a8a50a107d3f75bebb480236c2292d5719311d0b84c2c7357fda670d8f7
3
+ metadata.gz: 1908294b9112c4e194b37f62602869d5440b834ea96d1a608b4442bacd68931c
4
+ data.tar.gz: 43cfb8e2c716024dd9f32f6653da422d6349b43ed303bf6f184e5d4274ed86b2
5
5
  SHA512:
6
- metadata.gz: 03ebc9ce3b7a31f7f7d66dc4c6b2532a4fd908db8bfe3a59dbd2ca4a46cbd87021690849789ad03360bcde08245227fa206c2f5be670ddf4548d997e6d9adb96
7
- data.tar.gz: 1f41c1455006a10c9efc273ad39a09ab45fdba27cd16de4ab413607cfc386c470970f280226bbe1f1d6e6e45909d76df35b4802070b9732fbb2447eac1f36082
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
 
@@ -3,7 +3,7 @@
3
3
  module RakeUi
4
4
  class RakeTaskLog < OpenStruct
5
5
  # year-month-day-hour(24hour time)-minute-second-nanosecond-utc
6
- ID_DATE_FORMAT = "%Y-%m-%d-%H-%M-%S.%N%z"
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.2"
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.2
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-08-24 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
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
133
  requirements: []
134
- rubygems_version: 3.5.22
134
+ rubygems_version: 3.1.6
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: A Mountable Rails Engine to manage Rake Tasks through a UI