roda-debug_bar 0.1.1 → 0.2.1

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: 579c3658131b0cbcf37b4eb150bac95328b6fd03f6fcce27a2470dbb8549f232
4
- data.tar.gz: ef1819c9640e2df2575bb1f5c11a5dc934e951ea57adc03a24c6bedbab7ca27a
3
+ metadata.gz: baf180849090a2ccbbb53956154adee24d012387230c2ecf895cdda9dd69664f
4
+ data.tar.gz: 622d259d1aa55214e91b2ebf9d850e41814ef55d24ef6fdb722327fe9b2f02cb
5
5
  SHA512:
6
- metadata.gz: 839359c83b959a366d8eaf8d6b181ec30288b9ee6c13c8020e34287be24cf9b8d3074d7296e343e4e2eea3119de43359b27f3db09d57b30f9902e2db70ca9698
7
- data.tar.gz: 8707fa854cf92383fa8e76adf3045212be52807496e0b749776c777ad29d3c3c4003d6084dca2120a4e2c5f57a594bfcb0e6e3462721e5077cc08e8c1c80af76
6
+ metadata.gz: 1be406548ca3f14b70a481c24862495835c15ef1fd068c8444d835f71b6d77d8af5e0f7e679bb93d6cabf3157ca4e6f1d1014e6fc18b1566b7650f0010e39591
7
+ data.tar.gz: d19d1cb1f3524e8e0ad139dffbf37b38acaf1c4038f0a4302526ab5e5beebe370e1ad07847c144ac1ae1a70fdaa3c26a9ac50a4785ca3354d3b04c530226e087
@@ -39,6 +39,7 @@ class Roda
39
39
  @root = root
40
40
  @log_entries = []
41
41
  # @views = []
42
+ @messages = []
42
43
  @matches = []
43
44
  @timer = Process.clock_gettime(Process::CLOCK_MONOTONIC)
44
45
  @filter = filter || proc { false }
@@ -115,6 +116,10 @@ class Roda
115
116
  data[:views] = views
116
117
  end
117
118
 
119
+ if @messages
120
+ data[:messages] = @messages
121
+ end
122
+
118
123
  data[:request] = request
119
124
 
120
125
  # data[:request_inspect] = request.env
@@ -178,9 +183,17 @@ class Roda
178
183
  # puts @views
179
184
  # end
180
185
 
186
+ # built-in from roda-enhanced_logger
181
187
  def add_log_entry(record)
182
188
  @log_entries << record
183
189
  end
190
+
191
+ public
192
+
193
+ # logged to message tab
194
+ def add_message(log_level, message)
195
+ @messages << {type: log_level, message: message}
196
+ end
184
197
  end
185
198
  end
186
199
  end
@@ -0,0 +1,39 @@
1
+ <% if @data[:messages].nil? %>
2
+ <!-- <div class="px-4 py-2 odd:bg-white even:bg-ruby-50">No queries</div> -->
3
+ <li>No messages to log</li>
4
+ <% else %>
5
+ <div class="px-4 py-2 space-y-2">
6
+ <% @data[:messages].each do |message| %>
7
+ <div class="flex items-center">
8
+ <!-- <div class="flex justify-center items-center"><span class="pl-1 pb-2 bg-blue-400 w-4 h-4 rounded-full">!</span></div> -->
9
+
10
+ <!-- This case statement doesn't work if the block is indented right -->
11
+ <!-- Seems to be a bug with ERB rendering -->
12
+ <% color = '' %>
13
+ <% case message[:type] %>
14
+ <% when :info %>
15
+ <% color = 'blue' %>
16
+ <svg class="size-4 fill-<%= color %>-600"
17
+ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"> <path fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM8 4a.75.75 0 0 1 .75.75v3a.75.75 0 0 1-1.5 0v-3A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd" /> </svg>
18
+ <% when :warn %>
19
+ <% color = 'yellow' %>
20
+ <svg class="size-4 fill-<%= color %>-600"
21
+ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor"> <path fill-rule="evenodd" d="M6.701 2.25c.577-1 2.02-1 2.598 0l5.196 9a1.5 1.5 0 0 1-1.299 2.25H2.804a1.5 1.5 0 0 1-1.3-2.25l5.197-9ZM8 4a.75.75 0 0 1 .75.75v3a.75.75 0 1 1-1.5 0v-3A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd" /> </svg>
22
+ <% when :error %>
23
+ <% color = 'red' %>
24
+ <svg class="size-4 fill-<%= color %>-600"
25
+ xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor"> <path fill-rule="evenodd" d="M6.701 2.25c.577-1 2.02-1 2.598 0l5.196 9a1.5 1.5 0 0 1-1.299 2.25H2.804a1.5 1.5 0 0 1-1.3-2.25l5.197-9ZM8 4a.75.75 0 0 1 .75.75v3a.75.75 0 1 1-1.5 0v-3A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd" /> </svg>
26
+ <% end %>
27
+
28
+ <!-- This is so tailwind generates the dynamically used styles -->
29
+ <div hidden class="fill-blue-600 fill-red-600 fill-yellow-600"></div>
30
+ <div hidden class="text-blue-900 text-red-900 text-yellow-900"></div>
31
+
32
+ <span class="ml-1 text-<%= color %>-900">
33
+ <%= message[:message] %>
34
+ </span>
35
+
36
+ </div>
37
+ <% end %>
38
+ </div>
39
+ <% end %>
@@ -24,7 +24,7 @@
24
24
  <ul x-show="open" class="font-mono">
25
25
  <% models_list.each do |values| %>
26
26
  <!-- <li class="ml-6 highlight">{ <%= highlight_ruby_hash(values.map { |k, v| "#{k}: #{v}" }.join(', ')) %> }</li> -->
27
- <li class="ml-6 highlight ruby"><%= highlight_ruby_hash(values.to_s) %></li>
27
+ <li class="ml-6 highlight ruby hash"><%= highlight_ruby_hash(values.to_s) %></li>
28
28
  <% end %>
29
29
  </ul>
30
30
  </div>
@@ -6,13 +6,24 @@
6
6
  %>
7
7
  <div class="px-4 py-2 odd:bg-white even:bg-ruby-50 font-mono flex justify-between">
8
8
  <span class="italic"><%= @data[:db_queries] == 1? "1 statement was executed": "#{@data[:db_queries]} statements were executed" %></span>
9
- <span class="text-gray-900"><%= format_time(@data[:db]) %></span>
9
+
10
+ <span class="text-gray-900 flex items-center">
11
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="size-4 mr-1">
12
+ <path fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8Zm7.75-4.25a.75.75 0 0 0-1.5 0V8c0 .414.336.75.75.75h3.25a.75.75 0 0 0 0-1.5h-2.5v-3.5Z" clip-rule="evenodd" />
13
+ </svg>
14
+ <%= format_time(@data[:db]) %></span>
10
15
 
11
16
  </div>
12
17
  <% @data[:db_messages].each do |query| %>
13
18
  <div class="highlight px-4 py-2 odd:bg-white even:bg-ruby-50 font-mono flex justify-between">
14
19
  <span><%= sql_highlight(query[:query]).downcase %></span>
15
- <span class="text-gray-500"><%= format_time(query[:duration]) %></span>
20
+ <span class="text-gray-500 flex items-center">
21
+
22
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="size-4 mr-1">
23
+ <path fill-rule="evenodd" d="M1 8a7 7 0 1 1 14 0A7 7 0 0 1 1 8Zm7.75-4.25a.75.75 0 0 0-1.5 0V8c0 .414.336.75.75.75h3.25a.75.75 0 0 0 0-1.5h-2.5v-3.5Z" clip-rule="evenodd" />
24
+ </svg>
25
+
26
+ <%= format_time(query[:duration]) %></span>
16
27
  </div>
17
28
  <% end %>
18
29
 
@@ -9,9 +9,40 @@
9
9
  </a>
10
10
  </div>
11
11
  <% @data[:routes].each do |route| %>
12
- <div class="px-4 py-2 odd:bg-white even:bg-ruby-50">
12
+ <div class="px-4 py-2 odd:bg-white even:bg-ruby-50 flex justify-between">
13
+
14
+ <a class="highlight ruby route hover:underline hover:cursor-pointer" href="vscode://file/<%= File.join(@app_root, route[:path]) %>">
15
+ <%= highlight_ruby_hash(route[:handler]) %>
16
+ </a>
17
+
13
18
  <a class="text-blue-500 hover:underline hover:cursor-pointer" href="vscode://file/<%= File.join(@app_root, route[:path]) %>">
14
- <%= route[:handler] %>
19
+ <%= route[:path] %>
15
20
  </a>
21
+
22
+
23
+
24
+
25
+
16
26
  </div>
17
27
  <% end %>
28
+
29
+
30
+ <!-- views.erb
31
+ <% @app_root ||= __dir__ %>
32
+
33
+ <% if @data[:views] %>
34
+ <div class="max-w mx-auto">
35
+ <% views = @data[:views].tally; views.each do |view, count| %>
36
+ <div class="px-4 py-2 odd:bg-white even:bg-ruby-50 flex justify-between">
37
+ <span>
38
+ <%= view %>
39
+ <span class="ml-1 px-2 py-[0.125rem] bg-ruby-600 text-white rounded-full text-xs"><%= count %></span>
40
+ </span>
41
+ <a href="<%= "vscode://file/#{File.join(@app_root, "views/#{view}.erb")}" %>" class="text-blue-500 hover:underline hover:cursor-pointer"><%= "views/#{view}.erb" %></a>
42
+ </div>
43
+ <% end %>
44
+ <% else %>
45
+ <div class="p-4 odd:bg-white even:bg-ruby-50">No views</div>
46
+ <% end %>
47
+ </div>
48
+ -->
@@ -0,0 +1,3 @@
1
+ <div class="px-4 py-2">
2
+ This is a placeholder
3
+ </div
@@ -32,27 +32,55 @@
32
32
  /****** ruby hash ******/
33
33
 
34
34
  /* strings */
35
- .highlight.ruby .ss {
35
+ .highlight.ruby.hash .ss {
36
36
  font-weight: bold;
37
37
  color: #912520;
38
38
  }
39
39
 
40
- .highlight.ruby .s2 {
40
+ .highlight.ruby.hash .s2 {
41
41
  color: #009999;
42
42
  }
43
43
 
44
44
  /* integers */
45
- .highlight.ruby .mi {
45
+ .highlight.ruby.hash .mi {
46
46
  font-weight: normal;
47
47
  color: #0086B3;
48
48
  }
49
49
 
50
50
  /* punctuation */
51
- .highlight.ruby .p {
51
+ .highlight.ruby.hash .p {
52
52
  color: #9ca3af;
53
53
  }
54
54
 
55
55
 
56
+ /******* ruby routes tab *******/
57
+
58
+ .highlight.ruby.route .s1 {
59
+ color: #009999;
60
+ }
61
+
62
+ .highlight.ruby.route .nf {
63
+ font-style: italic;
64
+ }
65
+
66
+ .highlight.ruby.route .n {
67
+ font-weight: bold;
68
+ color: #912520; /* ruby-700 */
69
+ }
70
+
71
+ .highlight.ruby.route .no {
72
+ color: #138;
73
+ }
74
+
75
+ .highlight.ruby.route .o {
76
+ color: #9ca3af;
77
+ }
78
+
79
+ .highlight.ruby .nb {
80
+ color: #701d19;
81
+ }
82
+
83
+
56
84
  /*
57
85
  .reset {
58
86
  all: initial;
@@ -163,14 +191,13 @@
163
191
  { label: 'Request', content: `<%= relative_render('debug_bar/request') %>` },
164
192
  { label: 'Models', content: `<%= relative_render('debug_bar/models') %>` },
165
193
  { label: 'Queries', content: `<%= relative_render('debug_bar/queries') %>` },
166
- { label: 'Messages', content: 'Debug Info for Tab 1' },
167
- // { label: 'Timeline', content: 'Debug Info for Tab 2' },
194
+ { label: 'Messages', content: `<%= relative_render('debug_bar/messages') %>` },
168
195
  // { label: 'Exceptions', content: 'Debug Info for Tab 3' },
169
196
  { label: 'Views', content: `<%= relative_render('debug_bar/views') %>` },
170
197
  { label: 'Route', content: `<%= relative_render('debug_bar/route') %>` },
171
198
  // { label: 'Mails', content: 'Debug Info for Tab 4' },
172
199
  // { label: 'Gate', content: 'Debug Info for Tab 4' },
173
- { label: 'Session', content: 'Debug Info for Tab 4' },
200
+ { label: 'Session', content: `<%= relative_render('debug_bar/session') %>` },
174
201
  ],
175
202
 
176
203
  init() {
@@ -16,8 +16,7 @@ class Roda
16
16
  db: nil,
17
17
  log_time: false,
18
18
  trace_missed: true,
19
- ##### PUT TRACE ALL TO TRUE AGAIN
20
- trace_all: false,
19
+ trace_all: true,
21
20
  # trace_all: true,
22
21
  filtered_params: %w[password password_confirmation _csrf],
23
22
  handlers: [:console]
@@ -35,6 +34,7 @@ class Roda
35
34
 
36
35
  def self.configure(app, opts = {})
37
36
  # app.opts[:debug_bar] = opts
37
+ # app.include InstanceMethods::DebugLog
38
38
 
39
39
  @@data_store = []
40
40
 
@@ -133,6 +133,8 @@ class Roda
133
133
  # This @data is available to views
134
134
  @data = @_debug_bar_instance.debug_data
135
135
 
136
+ puts @data.to_json
137
+
136
138
  if @debug_catch
137
139
  response = @data.to_json
138
140
  res[1]['content-type'] = 'application/json'
@@ -208,6 +210,19 @@ HTML
208
210
 
209
211
  module InstanceMethods
210
212
 
213
+ # module DebugLog
214
+ def log_info message
215
+ @_debug_bar_instance.add_message(:info, message)
216
+ end
217
+ def log_warn message
218
+ @_debug_bar_instance.add_message(:warn, message)
219
+ end
220
+ def log_error message
221
+ @_debug_bar_instance.add_message(:error, message)
222
+ end
223
+ # end
224
+
225
+
211
226
  # def add_data(data)
212
227
  # if @@data_store.size < 5
213
228
  # @@data_store << data
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module DebugBar
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.1"
3
3
  end
data/public/out.css CHANGED
@@ -566,24 +566,28 @@ video:where(.debug-bar,.debug-bar *):where(:not(.no-tailwind,.no-tailwind *)) {
566
566
  margin-right: auto;
567
567
  }
568
568
 
569
- .ml-6 {
570
- margin-left: 1.5rem;
571
- }
572
-
573
- .mr-2 {
574
- margin-right: 0.5rem;
575
- }
576
-
577
569
  .ml-1 {
578
570
  margin-left: 0.25rem;
579
571
  }
580
572
 
573
+ .ml-2 {
574
+ margin-left: 0.5rem;
575
+ }
576
+
581
577
  .ml-4 {
582
578
  margin-left: 1rem;
583
579
  }
584
580
 
585
- .ml-2 {
586
- margin-left: 0.5rem;
581
+ .ml-6 {
582
+ margin-left: 1.5rem;
583
+ }
584
+
585
+ .mr-1 {
586
+ margin-right: 0.25rem;
587
+ }
588
+
589
+ .mr-2 {
590
+ margin-right: 0.5rem;
587
591
  }
588
592
 
589
593
  .block {
@@ -606,13 +610,17 @@ video:where(.debug-bar,.debug-bar *):where(:not(.no-tailwind,.no-tailwind *)) {
606
610
  display: none;
607
611
  }
608
612
 
613
+ .size-4 {
614
+ width: 1rem;
615
+ height: 1rem;
616
+ }
617
+
609
618
  .size-5 {
610
619
  width: 1.25rem;
611
620
  height: 1.25rem;
612
621
  }
613
622
 
614
- .size-4 {
615
- width: 1rem;
623
+ .h-4 {
616
624
  height: 1rem;
617
625
  }
618
626
 
@@ -628,48 +636,28 @@ video:where(.debug-bar,.debug-bar *):where(:not(.no-tailwind,.no-tailwind *)) {
628
636
  height: 1.75rem;
629
637
  }
630
638
 
631
- .h-4 {
632
- height: 1rem;
633
- }
634
-
635
- .h-8 {
636
- height: 2rem;
637
- }
638
-
639
639
  .w-16 {
640
640
  width: 4rem;
641
641
  }
642
642
 
643
- .w-64 {
644
- width: 16rem;
645
- }
646
-
647
- .w-auto {
648
- width: auto;
649
- }
650
-
651
- .w-full {
652
- width: 100%;
653
- }
654
-
655
643
  .w-4 {
656
644
  width: 1rem;
657
645
  }
658
646
 
659
- .w-7 {
660
- width: 1.75rem;
647
+ .w-64 {
648
+ width: 16rem;
661
649
  }
662
650
 
663
- .w-8 {
664
- width: 2rem;
651
+ .w-8\/12 {
652
+ width: 66.666667%;
665
653
  }
666
654
 
667
- .w-3 {
668
- width: 0.75rem;
655
+ .w-auto {
656
+ width: auto;
669
657
  }
670
658
 
671
- .w-8\/12 {
672
- width: 66.666667%;
659
+ .w-full {
660
+ width: 100%;
673
661
  }
674
662
 
675
663
  .flex-1 {
@@ -711,18 +699,24 @@ video:where(.debug-bar,.debug-bar *):where(:not(.no-tailwind,.no-tailwind *)) {
711
699
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
712
700
  }
713
701
 
714
- .overflow-y-auto {
715
- overflow-y: auto;
702
+ .space-y-2 > :not([hidden]) ~ :not([hidden]) {
703
+ --tw-space-y-reverse: 0;
704
+ margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
705
+ margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
716
706
  }
717
707
 
718
- .rounded-md {
719
- border-radius: 0.375rem;
708
+ .overflow-y-auto {
709
+ overflow-y: auto;
720
710
  }
721
711
 
722
712
  .rounded-full {
723
713
  border-radius: 9999px;
724
714
  }
725
715
 
716
+ .rounded-md {
717
+ border-radius: 0.375rem;
718
+ }
719
+
726
720
  .border {
727
721
  border-width: 1px;
728
722
  }
@@ -749,6 +743,11 @@ video:where(.debug-bar,.debug-bar *):where(:not(.no-tailwind,.no-tailwind *)) {
749
743
  border-color: transparent;
750
744
  }
751
745
 
746
+ .bg-blue-400 {
747
+ --tw-bg-opacity: 1;
748
+ background-color: rgb(96 165 250 / var(--tw-bg-opacity, 1));
749
+ }
750
+
752
751
  .bg-gray-100 {
753
752
  --tw-bg-opacity: 1;
754
753
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
@@ -769,34 +768,26 @@ video:where(.debug-bar,.debug-bar *):where(:not(.no-tailwind,.no-tailwind *)) {
769
768
  background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));
770
769
  }
771
770
 
772
- .bg-white {
773
- --tw-bg-opacity: 1;
774
- background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
775
- }
776
-
777
- .bg-ruby-800 {
778
- --tw-bg-opacity: 1;
779
- background-color: rgb(112 29 25 / var(--tw-bg-opacity, 1));
780
- }
781
-
782
771
  .bg-ruby-600 {
783
772
  --tw-bg-opacity: 1;
784
773
  background-color: rgb(186 47 41 / var(--tw-bg-opacity, 1));
785
774
  }
786
775
 
787
- .bg-ruby-500 {
776
+ .bg-white {
788
777
  --tw-bg-opacity: 1;
789
- background-color: rgb(204 52 45 / var(--tw-bg-opacity, 1));
778
+ background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
790
779
  }
791
780
 
792
- .bg-ruby-300 {
793
- --tw-bg-opacity: 1;
794
- background-color: rgb(221 119 114 / var(--tw-bg-opacity, 1));
781
+ .fill-blue-600 {
782
+ fill: #2563eb;
795
783
  }
796
784
 
797
- .bg-ruby-200 {
798
- --tw-bg-opacity: 1;
799
- background-color: rgb(232 162 158 / var(--tw-bg-opacity, 1));
785
+ .fill-red-600 {
786
+ fill: #dc2626;
787
+ }
788
+
789
+ .fill-yellow-600 {
790
+ fill: #ca8a04;
800
791
  }
801
792
 
802
793
  .p-4 {
@@ -807,10 +798,6 @@ video:where(.debug-bar,.debug-bar *):where(:not(.no-tailwind,.no-tailwind *)) {
807
798
  padding: 2rem;
808
799
  }
809
800
 
810
- .p-2 {
811
- padding: 0.5rem;
812
- }
813
-
814
801
  .px-2 {
815
802
  padding-left: 0.5rem;
816
803
  padding-right: 0.5rem;
@@ -826,25 +813,19 @@ video:where(.debug-bar,.debug-bar *):where(:not(.no-tailwind,.no-tailwind *)) {
826
813
  padding-bottom: 0.5rem;
827
814
  }
828
815
 
829
- .py-1 {
830
- padding-top: 0.25rem;
831
- padding-bottom: 0.25rem;
832
- }
833
-
834
816
  .py-\[0\.125rem\] {
835
817
  padding-top: 0.125rem;
836
818
  padding-bottom: 0.125rem;
837
819
  }
838
820
 
839
- .px-1 {
840
- padding-left: 0.25rem;
841
- padding-right: 0.25rem;
842
- }
843
-
844
821
  .pb-2 {
845
822
  padding-bottom: 0.5rem;
846
823
  }
847
824
 
825
+ .pl-1 {
826
+ padding-left: 0.25rem;
827
+ }
828
+
848
829
  .pl-2 {
849
830
  padding-left: 0.5rem;
850
831
  }
@@ -875,11 +856,6 @@ video:where(.debug-bar,.debug-bar *):where(:not(.no-tailwind,.no-tailwind *)) {
875
856
  line-height: 1rem;
876
857
  }
877
858
 
878
- .text-base {
879
- font-size: 1rem;
880
- line-height: 1.5rem;
881
- }
882
-
883
859
  .font-bold {
884
860
  font-weight: 700;
885
861
  }
@@ -893,19 +869,9 @@ video:where(.debug-bar,.debug-bar *):where(:not(.no-tailwind,.no-tailwind *)) {
893
869
  color: rgb(59 130 246 / var(--tw-text-opacity, 1));
894
870
  }
895
871
 
896
- .text-gray-800 {
897
- --tw-text-opacity: 1;
898
- color: rgb(31 41 55 / var(--tw-text-opacity, 1));
899
- }
900
-
901
- .text-gray-600 {
902
- --tw-text-opacity: 1;
903
- color: rgb(75 85 99 / var(--tw-text-opacity, 1));
904
- }
905
-
906
- .text-gray-400 {
872
+ .text-blue-900 {
907
873
  --tw-text-opacity: 1;
908
- color: rgb(156 163 175 / var(--tw-text-opacity, 1));
874
+ color: rgb(30 58 138 / var(--tw-text-opacity, 1));
909
875
  }
910
876
 
911
877
  .text-gray-500 {
@@ -913,19 +879,19 @@ video:where(.debug-bar,.debug-bar *):where(:not(.no-tailwind,.no-tailwind *)) {
913
879
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
914
880
  }
915
881
 
916
- .text-gray-900 {
882
+ .text-gray-800 {
917
883
  --tw-text-opacity: 1;
918
- color: rgb(17 24 39 / var(--tw-text-opacity, 1));
884
+ color: rgb(31 41 55 / var(--tw-text-opacity, 1));
919
885
  }
920
886
 
921
- .text-ruby-50 {
887
+ .text-gray-900 {
922
888
  --tw-text-opacity: 1;
923
- color: rgb(250 235 234 / var(--tw-text-opacity, 1));
889
+ color: rgb(17 24 39 / var(--tw-text-opacity, 1));
924
890
  }
925
891
 
926
- .text-ruby-100 {
892
+ .text-red-900 {
927
893
  --tw-text-opacity: 1;
928
- color: rgb(239 192 190 / var(--tw-text-opacity, 1));
894
+ color: rgb(127 29 29 / var(--tw-text-opacity, 1));
929
895
  }
930
896
 
931
897
  .text-white {
@@ -933,14 +899,14 @@ video:where(.debug-bar,.debug-bar *):where(:not(.no-tailwind,.no-tailwind *)) {
933
899
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
934
900
  }
935
901
 
936
- .text-ruby-800 {
902
+ .text-yellow-600 {
937
903
  --tw-text-opacity: 1;
938
- color: rgb(112 29 25 / var(--tw-text-opacity, 1));
904
+ color: rgb(202 138 4 / var(--tw-text-opacity, 1));
939
905
  }
940
906
 
941
- .text-ruby-900 {
907
+ .text-yellow-900 {
942
908
  --tw-text-opacity: 1;
943
- color: rgb(86 22 19 / var(--tw-text-opacity, 1));
909
+ color: rgb(113 63 18 / var(--tw-text-opacity, 1));
944
910
  }
945
911
 
946
912
  .filter {
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roda-debug_bar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Avi Feher Sternlieb
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-06 00:00:00.000000000 Z
10
+ date: 2025-01-15 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: roda
@@ -116,11 +116,13 @@ files:
116
116
  - lib/roda/debug_bar/current.rb
117
117
  - lib/roda/debug_bar/instance.rb
118
118
  - lib/roda/debug_bar/views/debug_bar.erb
119
+ - lib/roda/debug_bar/views/debug_bar/messages.erb
119
120
  - lib/roda/debug_bar/views/debug_bar/models.erb
120
121
  - lib/roda/debug_bar/views/debug_bar/queries.erb
121
122
  - lib/roda/debug_bar/views/debug_bar/request.erb
122
123
  - lib/roda/debug_bar/views/debug_bar/right_bar.erb
123
124
  - lib/roda/debug_bar/views/debug_bar/route.erb
125
+ - lib/roda/debug_bar/views/debug_bar/session.erb
124
126
  - lib/roda/debug_bar/views/debug_bar/views.erb
125
127
  - lib/roda/plugins/debug_bar.rb
126
128
  - lib/sequel/extensions/debug_bar.rb