builder_apm 0.3.1 → 0.3.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: 3093b97251b903ff111919ffe0d9a70aaa0471aa0ad7bb300de2def9d538ac02
4
- data.tar.gz: 89c83518fc32c6bc771de43d508989e95c8c7e0a390d6ae48fdb76325c1985bb
3
+ metadata.gz: 8c694ae0d5543f44bb905abf9456e8768e3ae547bd99066fe0012f12e11aa89f
4
+ data.tar.gz: 1df6c105dbe848d600f1ae5197a64c2fe2816584072d4fb82ee69850dc6f61d6
5
5
  SHA512:
6
- metadata.gz: 6553a4566484b7598e24f193645c113221a55f1508e3a1c6446620110d7ce6c499326a331f7fa6a5ab543b45b350f46fed994483d6442644816a14c5ba9d71a6
7
- data.tar.gz: 5bd0063576d12bb6b7e5e61f64e93f084776944bfb2fb9aadccee08a8a334f3f4cc0bd3411a79bba386bfb280c07ba6f6cedf0430c316a3e61a01dadaa54359b
6
+ metadata.gz: 21f191411ce9106d7db006b92dc12ffd72efa414f62730f42bb26cdacc77ac0f841d9cabb2be482128ce3577ea9f67f5eadf8421c7ed6d0a826ab924cb40ef35
7
+ data.tar.gz: fcc1962c887a01e84cca5b1a7afa1deced47ef7ffcadefe2d26db6126f56c9bc99b7d0b52b9e65296ccf5a4af01bd6c131d043d50c370990364c37d6e0733637
@@ -47,13 +47,14 @@ $(document).ready(function() {
47
47
  $('<td>').append(renderDuration(item['view_runtime'])).appendTo(row);
48
48
  // Action column
49
49
  var actionTd = $('<td>');
50
- var actionButton = $('<button>').text('Details');
51
- actionButton.on('click', function() {
52
- // Replace 'your-details-url' with the actual URL where the details are to be fetched.
53
- // It's assumed the ID is required as a URL parameter, modify as per your requirements.
54
- window.location.href = '<%= request_details_path %>?request_id=' + item['request_id'];
55
- });
56
- actionButton.appendTo(actionTd);
50
+
51
+ if(item.stack && item.stack.length > 0) {
52
+
53
+ var actionLink = $('<a>').text('Details');
54
+ actionLink.attr('href', '<%= request_details_path %>?request_id=' + item['request_id']);
55
+ actionLink.attr('target', '_blank');
56
+ actionLink.appendTo(actionTd);
57
+ }
57
58
  actionTd.appendTo(row);
58
59
 
59
60
  // Append the row to the table body
@@ -48,13 +48,14 @@ $(document).ready(function() {
48
48
  $('<td>').append(renderDuration(item['view_runtime'])).appendTo(row);
49
49
  // Action column
50
50
  var actionTd = $('<td>');
51
- var actionButton = $('<button>').text('Details');
52
- actionButton.on('click', function() {
53
- // Replace 'your-details-url' with the actual URL where the details are to be fetched.
54
- // It's assumed the ID is required as a URL parameter, modify as per your requirements.
55
- window.location.href = '<%= request_details_path %>?request_id=' + item['request_id'];
56
- });
57
- actionButton.appendTo(actionTd);
51
+
52
+ if(item.stack && item.stack.length > 0) {
53
+
54
+ var actionLink = $('<a>').text('Details');
55
+ actionLink.attr('href', '<%= request_details_path %>?request_id=' + item['request_id']);
56
+ actionLink.attr('target', '_blank');
57
+ actionLink.appendTo(actionTd);
58
+ }
58
59
  actionTd.appendTo(row);
59
60
 
60
61
  // Append the row to the table body
Binary file
Binary file
Binary file
@@ -1,3 +1,3 @@
1
1
  module BuilderApm
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: builder_apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Ketelle
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-25 00:00:00.000000000 Z
11
+ date: 2023-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -94,6 +94,9 @@ files:
94
94
  - app/views/builder_apm/wip/index.html.erb
95
95
  - bin/console
96
96
  - bin/setup
97
+ - builder_apm-0.2.5.gem
98
+ - builder_apm-0.3.0.gem
99
+ - builder_apm-0.3.1.gem
97
100
  - builder_apm.gemspec
98
101
  - config/routes.rb
99
102
  - lib/builder_apm.rb
@@ -110,11 +113,11 @@ files:
110
113
  - lib/generators/builder_apm/templates/builder_apm_config.rb
111
114
  - lib/generators/builder_apm/templates/create_builder_apm_requests.rb
112
115
  - lib/generators/builder_apm/templates/create_builder_apm_sql_queries.rb
113
- homepage:
116
+ homepage:
114
117
  licenses:
115
118
  - MIT
116
119
  metadata: {}
117
- post_install_message:
120
+ post_install_message:
118
121
  rdoc_options: []
119
122
  require_paths:
120
123
  - lib
@@ -129,8 +132,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
132
  - !ruby/object:Gem::Version
130
133
  version: '0'
131
134
  requirements: []
132
- rubygems_version: 3.1.4
133
- signing_key:
135
+ rubygems_version: 3.0.9
136
+ signing_key:
134
137
  specification_version: 4
135
138
  summary: Write a short summary, because RubyGems requires one.
136
139
  test_files: []