tramway 2.3.1 → 2.3.1.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: 0062ba6e33495a79ef0d2dc0fcca348e7de9ed5a892855d800bc7de45022205d
4
- data.tar.gz: 350731c7514a5b6f3d513635c2397f65a52f81cb50a05ff0e198af191a09b75d
3
+ metadata.gz: 0f94931c225d093e9cb11e8957ae333b66a2a6feb0e36427c77bbe864ae75433
4
+ data.tar.gz: a16912c9f8ea5da24eabbba7dd0f0524f1ef0f057c14a6af6f56c2d930b08b37
5
5
  SHA512:
6
- metadata.gz: 4c5ad624bc5aa06c742ac6a02cbaea4accfe21028ec422f5818514a3bb87b854f06e830986f35d767a2fe82f06f0d3ab433e615651522e8ab332d46925e54c58
7
- data.tar.gz: ffd97ea24ee55e590368a3a34beafcb440010358a65db27d0e231629225bcd05f0d0f22987c38f6dc7ebf97193ebc6f26ba76628280b2e1e92169f1b20dd69fa
6
+ metadata.gz: 0174d5e8d6ed3f337bcbc01523471d651d333d30104399da24d0e9ac16dd0a7549982e3ad77b8ff15c8af26c59791e11120c4afee462215870bbf4c1a9fbdf81
7
+ data.tar.gz: 9e229945662dadadb01ca4075bf0a2da71b90fdca30e4b687144424d72e9929face26facbc94cee1c6e01cdda29c8c72a4ef072d0784fb46329bfc3c6ed257c2
@@ -13,7 +13,7 @@
13
13
  - waiting_placeholder = t('tramway.chat.placeholders.waiting')
14
14
  - typing_placeholder = t('tramway.chat.placeholders.type')
15
15
  = f.text_field :text,
16
- class: 'flex-1 md:rounded-full rounded-bl-2xl md:border border-gray-300 px-4 py-2 text-sm text-gray-900 shadow-sm placeholder:text-gray-400 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-200 disabled:cursor-not-allowed disabled:bg-gray-100 border-gray-600 bg-gray-800 text-white focus:border-blue-400 focus:ring-blue-500/30',
16
+ class: 'flex-1 md:rounded-full rounded-bl-2xl md:border border-gray-300 px-4 py-2 text-sm text-gray-900 shadow-sm placeholder:text-gray-400 focus:border-blue-500 focus:outline-none focus:ring-2 focus:ring-blue-200 disabled:cursor-not-allowed border-gray-600 bg-gray-800 text-white focus:border-blue-400 focus:ring-blue-500/30',
17
17
  placeholder: send_messages_enabled ? typing_placeholder : waiting_placeholder,
18
18
  disabled: !send_messages_enabled
19
19
 
@@ -77,7 +77,7 @@ module Tramway
77
77
  component 'tramway/flash', text:, type:, options:
78
78
  end
79
79
 
80
- def tramway_chat(chat_id:, messages:, message_form:, send_message_path:)
80
+ def tramway_chat(chat_id:, messages:, message_form:, send_message_path:, **)
81
81
  unless messages.all? { _1[:id].present? && _1[:type].present? }
82
82
  raise ArgumentError, 'Each message must have :id and :type keys'
83
83
  end
@@ -86,7 +86,7 @@ module Tramway
86
86
  raise ArgumentError, 'Message :type must be either :sent or :received'
87
87
  end
88
88
 
89
- component 'tramway/chat', chat_id:, messages:, message_form:, send_message_path:
89
+ component 'tramway/chat', chat_id:, messages:, message_form:, send_message_path:, **
90
90
  end
91
91
 
92
92
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tramway
4
- VERSION = '2.3.1'
4
+ VERSION = '2.3.1.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - kalashnikovisme