rorvswild 1.9.0 → 1.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4752356e6d6e1b7b9883b55c5f9f29223dedd2c31cc4abdac85065215b1b05b
4
- data.tar.gz: 254eaff9c5412c5d1e121644d0993f0a8557748ac25370a9266ce1e61fe9f031
3
+ metadata.gz: d31f6ef0dd4fcc5e08ae7e1240394079152dcf8af49c981daf0c03bbd9011e99
4
+ data.tar.gz: b30e2b3e985f0da7ca5f4e286c5a4cce25f81c2b86675eba2015176bddf69600
5
5
  SHA512:
6
- metadata.gz: b4b7acb9cc0fe303310648985dda337a3ab11c941af8c0e4d06199404064eee3c9a5cd93993f94e701fbc121f7f633123395fd89e5ddd3e28b52cd9cfa2e65e5
7
- data.tar.gz: 404254bcfd4f9bb5c165da7955d712f1435514c061f70b019c84fbc1973626b71935a87ee8b1eae9b9b2741d79e74d2cfaef8378472f65b2a22ca78e03a99590
6
+ metadata.gz: 5d8cffc2578da110fda0d4c2e7b7c2f592b62d3ed6379051df91888634d9530d44bf199362c8f8c5a9a3bbcd153f0c3cc8e326771dfc8a8a85fbe3b2daa8b110
7
+ data.tar.gz: 526fbfb4f3adabf86aef6f8996cd0b0bff80fc308fa21038a2d78679ce5d3dad90aa04ea565cb4953f756f0066e5893a51cbcad4bc46294b6414eb4d2742f2e9
@@ -204,6 +204,7 @@ RorVsWild.Local.Request.prototype.sections = function() {
204
204
  kind: section.kind.substring(0, 7),
205
205
  file: section.file,
206
206
  line: section.line,
207
+ isLineRelevant: section.line > 0,
207
208
  location: section.kind == "view" ? section.file : section.file + ":" + section.line,
208
209
  locationUrl: RorVsWild.Local.pathToUrl(this.data.environment.cwd, section.file, section.line),
209
210
  isAsync: RorVsWild.Local.relevantRounding(section.async_runtime) > 0,
@@ -1,6 +1,6 @@
1
1
  <div id="RorVsWild.Local" class="is-<%= widget_position %>" >
2
2
  <% if @current_request %>
3
- <div data-barber="RorVsWild.Local" data-editor-url="<%= editor_url %>" data-request-uuid="<%= @current_request["uuid"] %>"></div>
3
+ <div data-barber="RorVsWild.Local" data-editor-url="<%= editor_url %>" data-request-uuid="<%= @current_request[:uuid] %>"></div>
4
4
  <% else %>
5
5
  <div data-barber="RorVsWild.Local" data-editor-url="<%= editor_url %>"></div>
6
6
  <% end %>
@@ -56,7 +56,7 @@
56
56
 
57
57
  <% if @current_request %>
58
58
  {{#embedded}}
59
- <div class="rorvswild-local-toggler" data-events="click->toggle" data-uuid="<%= @current_request["uuid"] %>"><%= @current_request["runtime"].round %><small>ms</small></div>
59
+ <div class="rorvswild-local-toggler" data-events="click->toggle" data-uuid="<%= @current_request[:uuid] %>"><%= @current_request[:runtime].round %><small>ms</small></div>
60
60
  {{/embedded}}
61
61
  <% end %>
62
62
  </script>
@@ -170,7 +170,9 @@
170
170
  <a href="{{locationUrl}}" class="rorvswild-local-panel__file__name" title="Open in your editor">{{location}}</a>
171
171
  {{/locationUrl}}
172
172
  {{^locationUrl}}
173
- <span class="rorvswild-local-panel__file__name">{{file}}<span>:{{line}}</span></span>
173
+ <span class="rorvswild-local-panel__file__name">{{file}}
174
+ {{#isLineRelevant}}<span>:{{line}}</span>{{/isLineRelevant}}
175
+ </span>
174
176
  {{/locationUrl}}
175
177
  </span>
176
178
  <span class="rorvswild-local-panel__details__section__average" title="Self runtime">{{selfRuntime}}<small>ms</small></span>
@@ -45,7 +45,7 @@ module RorVsWild
45
45
  end
46
46
 
47
47
  def load_data(name)
48
- JSON.load_file(File.join(directoy, "#{name}.json")) rescue []
48
+ JSON.load_file(File.join(directoy, "#{name}.json"), symbolize_names: true) rescue []
49
49
  end
50
50
 
51
51
  def directoy
@@ -13,10 +13,12 @@ module RorVsWild
13
13
  end
14
14
 
15
15
  def start(name, id, payload)
16
+ return if !payload[:identifier]
16
17
  RorVsWild::Section.start
17
18
  end
18
19
 
19
20
  def finish(name, id, payload)
21
+ return if !payload[:identifier]
20
22
  RorVsWild::Section.stop do |section|
21
23
  section.kind = "view"
22
24
  section.commands << RorVsWild.agent.locator.relative_path(payload[:identifier])
@@ -1,3 +1,3 @@
1
1
  module RorVsWild
2
- VERSION = "1.9.0".freeze
2
+ VERSION = "1.9.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rorvswild
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexis Bernard
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-01-30 00:00:00.000000000 Z
12
+ date: 2025-02-20 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Performances and errors insights for rails developers.
15
15
  email: