tybo 0.0.36 → 0.0.38

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 036cdcc280ede0327d1bcbe692a18d1569265fc78292805d28a4dfbdd65ee9ef
4
- data.tar.gz: 8fc3de9a562d1e81cd41193fd229182eacbfed5f1f5ab8dbcaa183b53d84a364
3
+ metadata.gz: 99557e47d47ae93efa3be536ac6f13e8bce6993f1d1e49c0b22f8c9333e55f0a
4
+ data.tar.gz: 252e756f4e1436b0bb975e8af283dcb5604103b22d837987e5fac9746bbd01be
5
5
  SHA512:
6
- metadata.gz: 5b6e068ca9110bc095adbff483c08710ff87e7987d372723c1f2a38ef7b86d35585bdd34f7520caafcb0e8c5fa6add2620725c8cf2c3887c550147bef641fcb8
7
- data.tar.gz: 04ef441ff6cb1d0a89b736b2191a91b5bc8c9c73414a7f1a85d6f3d7962b38297ea70a09677a6aa378196a7016da51313d3353066103d866e4a5f837cd8b4739
6
+ metadata.gz: 675cbbd35136484b36933a3f425032bafb9f0fd70987c4d7771fdbd14b2124692dba79d206edbf496d63a0d38ef0f2eaba9c15984b786f6f10d0cc3cb67df3b2
7
+ data.tar.gz: 668b61e903ab1f30c6ffdcedd54824bb87c7156872cb7aa6deb8bbbc7fb8a652e831dce36657767d201613a579e78704b85314db308aded1c62cda35838e56f3
@@ -3,7 +3,8 @@
3
3
  include Turbo::FramesHelper, Turbo::Streams::StreamName, Turbo::Streams::Broadcasts
4
4
 
5
5
  class AttachmentCardComponent < ViewComponent::Base
6
- def initialize(attachment:)
6
+ def initialize(attachment:, url:)
7
7
  @attachment = attachment
8
+ @url = url
8
9
  end
9
10
  end
@@ -1,3 +1,3 @@
1
1
  <td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm font-medium text-gray-900">
2
- <%= strip_tags(content) == content ? content&.truncate(30) : content %>
2
+ <%= strip_tags(content) == content ? content&.truncate(30) : content %>
3
3
  </td>
@@ -25,7 +25,7 @@ def create_translations
25
25
  data[local]['bo'][file_name.underscore] = {
26
26
  'one' => find_existing_translation(bo_model.to_s.downcase, local),
27
27
  'others' => find_existing_translation(bo_model.to_s.pluralize.downcase, local),
28
- 'new' => find_existing_translation(bo_model.to_s.pluralize.downcase, local),
28
+ 'new' => find_existing_translation(nil, local),
29
29
  'subtitle' => find_existing_translation("list of #{bo_model.to_s.pluralize.downcase}", local),
30
30
  'attributes' => model_attributes(data, local)
31
31
 
data/lib/tybo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tybo
2
- VERSION = '0.0.36'
2
+ VERSION = '0.0.38'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tybo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.36
4
+ version: 0.0.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michel Delpierre
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-03-30 00:00:00.000000000 Z
12
+ date: 2023-04-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails