bullet_train-themes 1.19.2 → 1.20.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: 2605b8171fdcfaf1ee9168f569980a8315c752372d0303ddad6af1b0360810d3
4
- data.tar.gz: 9d9a56ccec3e5adea0bc5f888d2df83f19c0bbfe0dae2667b0f502b42dd987b8
3
+ metadata.gz: 4de84403140b3fe6ab22833d6db278852c940af9021602d6a177ea5699419328
4
+ data.tar.gz: c0420537cafc00b177b8c824200ec8809d04d9c6c069a455fe0ee4d2d9859a7e
5
5
  SHA512:
6
- metadata.gz: 6466159e5bacbd67c8976d48f4239457d84af22f570b346a8c3b9a92f45e74425a04e7e0380fc2e9b4078b5055f879a27a226c2e1606c62050dc710e7c2a6238
7
- data.tar.gz: f5726ec15ef3b31df5de99cb0d7ae660bf87d83de5b69514af90dc6f378f5931d6adebd04eb5cba0188a3115b23d6ae46e47408b6016d0694315b6a16997ab21
6
+ metadata.gz: 51a8c9737bb3173f0e602791c823c347b267e8a51488092badff6f71d0df29789faf7af4107ce431af713bb754852b10fdcaada158c9a6289f691b61f4ca14ee
7
+ data.tar.gz: 6a63be11c49b65f977bfae8cf686dbcdf5d61b6e77b703a9c6ec61c5c32b4c39206ebc0eb05326e8abbc1d5ab2e9bf7a250f2c8ab7ef22b8a456f01be08c3954
@@ -0,0 +1,14 @@
1
+ <% object ||= current_attributes_object %>
2
+ <% strategy ||= current_attributes_strategy || :none %>
3
+ <% source ||= nil %>
4
+ <% url ||= nil %>
5
+ <%
6
+ snippet_class ||= ""
7
+ snippet_class += " text-[0.75rem] text-slate-600 dark:text-slate-400 line-clamp-1"
8
+ %>
9
+
10
+ <% if object.public_send(attribute).present? %>
11
+ <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
12
+ <code class="<%= snippet_class %>"><pre><%= object.send(source || attribute) %></pre></code>
13
+ <% end %>
14
+ <% end %>
@@ -1,5 +1,5 @@
1
1
  module BulletTrain
2
2
  module Themes
3
- VERSION = "1.19.2"
3
+ VERSION = "1.20.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bullet_train-themes
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.2
4
+ version: 1.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Culver
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-25 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: standard
@@ -99,6 +99,7 @@ files:
99
99
  - app/views/themes/base/attributes/_block.html.erb
100
100
  - app/views/themes/base/attributes/_boolean.html.erb
101
101
  - app/views/themes/base/attributes/_code.html.erb
102
+ - app/views/themes/base/attributes/_code_snippet.html.erb
102
103
  - app/views/themes/base/attributes/_date.html.erb
103
104
  - app/views/themes/base/attributes/_date_and_time.html.erb
104
105
  - app/views/themes/base/attributes/_days_ago.html.erb
@@ -149,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
150
  - !ruby/object:Gem::Version
150
151
  version: '0'
151
152
  requirements: []
152
- rubygems_version: 3.6.2
153
+ rubygems_version: 3.6.7
153
154
  specification_version: 4
154
155
  summary: Bullet Train Themes
155
156
  test_files: []