roda-debug_bar 0.1.1 → 0.2.0

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: 1a81b9b197aece30bf9fb928d9395a6f8a1926053c3cd3d2e6c6e03bf7560bf5
4
+ data.tar.gz: 1f33f1cc90ccb8d77dda10f75af4d52b7ef58401151baaabe5b148079ece2f9a
5
5
  SHA512:
6
- metadata.gz: 839359c83b959a366d8eaf8d6b181ec30288b9ee6c13c8020e34287be24cf9b8d3074d7296e343e4e2eea3119de43359b27f3db09d57b30f9902e2db70ca9698
7
- data.tar.gz: 8707fa854cf92383fa8e76adf3045212be52807496e0b749776c777ad29d3c3c4003d6084dca2120a4e2c5f57a594bfcb0e6e3462721e5077cc08e8c1c80af76
6
+ metadata.gz: 9742307c5e57fe1ec22ad37061d64bf2239d30f12ecfaec07f806ae16ebb2d2aabf4acbf81c6f8e27059ed460fbad6cf6ea1be469a6683cca35c356a1f74844f
7
+ data.tar.gz: 78cf79cf7353d43112235a731d41b9ce4d7a4391b0f8c74244e0d661d0233ef1c36673e726243f2c295617d1a50fb260164067436ffe94917b1524cd07674b6f
@@ -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,38 @@
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="text-blue-900 text-red-900 text-yellow-900"></div>
30
+
31
+ <span class="ml-1 text-<%= color %>-900">
32
+ <%= message[:message] %>
33
+ </span>
34
+
35
+ </div>
36
+ <% end %>
37
+ </div>
38
+ <% 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.0"
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-2 {
586
+ margin-right: 0.5rem;
587
+ }
588
+
589
+ .mr-1 {
590
+ margin-right: 0.25rem;
587
591
  }
588
592
 
589
593
  .block {
@@ -632,10 +636,6 @@ video:where(.debug-bar,.debug-bar *):where(:not(.no-tailwind,.no-tailwind *)) {
632
636
  height: 1rem;
633
637
  }
634
638
 
635
- .h-8 {
636
- height: 2rem;
637
- }
638
-
639
639
  .w-16 {
640
640
  width: 4rem;
641
641
  }
@@ -644,6 +644,10 @@ video:where(.debug-bar,.debug-bar *):where(:not(.no-tailwind,.no-tailwind *)) {
644
644
  width: 16rem;
645
645
  }
646
646
 
647
+ .w-8\/12 {
648
+ width: 66.666667%;
649
+ }
650
+
647
651
  .w-auto {
648
652
  width: auto;
649
653
  }
@@ -656,22 +660,6 @@ video:where(.debug-bar,.debug-bar *):where(:not(.no-tailwind,.no-tailwind *)) {
656
660
  width: 1rem;
657
661
  }
658
662
 
659
- .w-7 {
660
- width: 1.75rem;
661
- }
662
-
663
- .w-8 {
664
- width: 2rem;
665
- }
666
-
667
- .w-3 {
668
- width: 0.75rem;
669
- }
670
-
671
- .w-8\/12 {
672
- width: 66.666667%;
673
- }
674
-
675
663
  .flex-1 {
676
664
  flex: 1 1 0%;
677
665
  }
@@ -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
  }
@@ -769,34 +763,19 @@ video:where(.debug-bar,.debug-bar *):where(:not(.no-tailwind,.no-tailwind *)) {
769
763
  background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));
770
764
  }
771
765
 
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
766
  .bg-ruby-600 {
783
767
  --tw-bg-opacity: 1;
784
768
  background-color: rgb(186 47 41 / var(--tw-bg-opacity, 1));
785
769
  }
786
770
 
787
- .bg-ruby-500 {
788
- --tw-bg-opacity: 1;
789
- background-color: rgb(204 52 45 / var(--tw-bg-opacity, 1));
790
- }
791
-
792
- .bg-ruby-300 {
771
+ .bg-white {
793
772
  --tw-bg-opacity: 1;
794
- background-color: rgb(221 119 114 / var(--tw-bg-opacity, 1));
773
+ background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
795
774
  }
796
775
 
797
- .bg-ruby-200 {
776
+ .bg-blue-400 {
798
777
  --tw-bg-opacity: 1;
799
- background-color: rgb(232 162 158 / var(--tw-bg-opacity, 1));
778
+ background-color: rgb(96 165 250 / var(--tw-bg-opacity, 1));
800
779
  }
801
780
 
802
781
  .p-4 {
@@ -807,10 +786,6 @@ video:where(.debug-bar,.debug-bar *):where(:not(.no-tailwind,.no-tailwind *)) {
807
786
  padding: 2rem;
808
787
  }
809
788
 
810
- .p-2 {
811
- padding: 0.5rem;
812
- }
813
-
814
789
  .px-2 {
815
790
  padding-left: 0.5rem;
816
791
  padding-right: 0.5rem;
@@ -826,21 +801,11 @@ video:where(.debug-bar,.debug-bar *):where(:not(.no-tailwind,.no-tailwind *)) {
826
801
  padding-bottom: 0.5rem;
827
802
  }
828
803
 
829
- .py-1 {
830
- padding-top: 0.25rem;
831
- padding-bottom: 0.25rem;
832
- }
833
-
834
804
  .py-\[0\.125rem\] {
835
805
  padding-top: 0.125rem;
836
806
  padding-bottom: 0.125rem;
837
807
  }
838
808
 
839
- .px-1 {
840
- padding-left: 0.25rem;
841
- padding-right: 0.25rem;
842
- }
843
-
844
809
  .pb-2 {
845
810
  padding-bottom: 0.5rem;
846
811
  }
@@ -857,6 +822,10 @@ video:where(.debug-bar,.debug-bar *):where(:not(.no-tailwind,.no-tailwind *)) {
857
822
  padding-top: 0.5rem;
858
823
  }
859
824
 
825
+ .pl-1 {
826
+ padding-left: 0.25rem;
827
+ }
828
+
860
829
  .text-center {
861
830
  text-align: center;
862
831
  }
@@ -875,11 +844,6 @@ video:where(.debug-bar,.debug-bar *):where(:not(.no-tailwind,.no-tailwind *)) {
875
844
  line-height: 1rem;
876
845
  }
877
846
 
878
- .text-base {
879
- font-size: 1rem;
880
- line-height: 1.5rem;
881
- }
882
-
883
847
  .font-bold {
884
848
  font-weight: 700;
885
849
  }
@@ -893,54 +857,39 @@ video:where(.debug-bar,.debug-bar *):where(:not(.no-tailwind,.no-tailwind *)) {
893
857
  color: rgb(59 130 246 / var(--tw-text-opacity, 1));
894
858
  }
895
859
 
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 {
907
- --tw-text-opacity: 1;
908
- color: rgb(156 163 175 / var(--tw-text-opacity, 1));
909
- }
910
-
911
860
  .text-gray-500 {
912
861
  --tw-text-opacity: 1;
913
862
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
914
863
  }
915
864
 
916
- .text-gray-900 {
865
+ .text-gray-800 {
917
866
  --tw-text-opacity: 1;
918
- color: rgb(17 24 39 / var(--tw-text-opacity, 1));
867
+ color: rgb(31 41 55 / var(--tw-text-opacity, 1));
919
868
  }
920
869
 
921
- .text-ruby-50 {
870
+ .text-gray-900 {
922
871
  --tw-text-opacity: 1;
923
- color: rgb(250 235 234 / var(--tw-text-opacity, 1));
872
+ color: rgb(17 24 39 / var(--tw-text-opacity, 1));
924
873
  }
925
874
 
926
- .text-ruby-100 {
875
+ .text-white {
927
876
  --tw-text-opacity: 1;
928
- color: rgb(239 192 190 / var(--tw-text-opacity, 1));
877
+ color: rgb(255 255 255 / var(--tw-text-opacity, 1));
929
878
  }
930
879
 
931
- .text-white {
880
+ .text-blue-900 {
932
881
  --tw-text-opacity: 1;
933
- color: rgb(255 255 255 / var(--tw-text-opacity, 1));
882
+ color: rgb(30 58 138 / var(--tw-text-opacity, 1));
934
883
  }
935
884
 
936
- .text-ruby-800 {
885
+ .text-red-900 {
937
886
  --tw-text-opacity: 1;
938
- color: rgb(112 29 25 / var(--tw-text-opacity, 1));
887
+ color: rgb(127 29 29 / var(--tw-text-opacity, 1));
939
888
  }
940
889
 
941
- .text-ruby-900 {
890
+ .text-yellow-900 {
942
891
  --tw-text-opacity: 1;
943
- color: rgb(86 22 19 / var(--tw-text-opacity, 1));
892
+ color: rgb(113 63 18 / var(--tw-text-opacity, 1));
944
893
  }
945
894
 
946
895
  .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.0
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