rorvswild 1.9.0 → 1.9.2

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: e4752356e6d6e1b7b9883b55c5f9f29223dedd2c31cc4abdac85065215b1b05b
4
- data.tar.gz: 254eaff9c5412c5d1e121644d0993f0a8557748ac25370a9266ce1e61fe9f031
3
+ metadata.gz: 97a87e145dfb9f5da27bda89cc828855af232f03a268d7caa7ca89be40c09bd0
4
+ data.tar.gz: f883c96fdf00e036ca750984ef64ce87318ba8d1ea353ea0b39cc1bd5c3dc71e
5
5
  SHA512:
6
- metadata.gz: b4b7acb9cc0fe303310648985dda337a3ab11c941af8c0e4d06199404064eee3c9a5cd93993f94e701fbc121f7f633123395fd89e5ddd3e28b52cd9cfa2e65e5
7
- data.tar.gz: 404254bcfd4f9bb5c165da7955d712f1435514c061f70b019c84fbc1973626b71935a87ee8b1eae9b9b2741d79e74d2cfaef8378472f65b2a22ca78e03a99590
6
+ metadata.gz: 6728519bcc2ecb291180d6aa1b57947c1b81b845c35ceea401ffe769af3aad83899b17bdd43da5da0f393d42f0f82340fc6376d0fb8aac02c43f9f14c74e0b1d
7
+ data.tar.gz: 612cd0e042075ebc1249ac05932c9657590d71a783a6e9532ec2d0d85337ed3aeb7869c01f7f1ae82532a75bd29c1a5c1c9d9ddba21b8b72af5dc1b59604076d
@@ -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,14 @@ module RorVsWild
13
13
  end
14
14
 
15
15
  def start(name, id, payload)
16
+ return if !payload[:identifier]
17
+ return if payload[:count] == 0 # render empty collection
16
18
  RorVsWild::Section.start
17
19
  end
18
20
 
19
21
  def finish(name, id, payload)
22
+ return if !payload[:identifier]
23
+ return if payload[:count] == 0 # render empty collection
20
24
  RorVsWild::Section.stop do |section|
21
25
  section.kind = "view"
22
26
  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.2".freeze
3
3
  end
metadata CHANGED
@@ -1,15 +1,14 @@
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.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexis Bernard
8
8
  - Antoine Marguerie
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2025-01-30 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: Performances and errors insights for rails developers.
15
14
  email:
@@ -71,7 +70,6 @@ licenses:
71
70
  metadata:
72
71
  source_code_uri: https://github.com/BaseSecrete/rorvswild
73
72
  changelog_uri: https://github.com/BaseSecrete/rorvswild/blob/master/CHANGELOG.md
74
- post_install_message:
75
73
  rdoc_options: []
76
74
  require_paths:
77
75
  - lib
@@ -86,8 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
84
  - !ruby/object:Gem::Version
87
85
  version: '0'
88
86
  requirements: []
89
- rubygems_version: 3.5.22
90
- signing_key:
87
+ rubygems_version: 3.6.7
91
88
  specification_version: 4
92
89
  summary: Ruby on Rails applications monitoring
93
90
  test_files: []