llama_bot_rails 0.1.14 → 0.1.15

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: 4a2a7cba5de6b95658edf2f1445ddd883bf0fa7b6f0a844fc7b65d75696bbe93
4
- data.tar.gz: 471a4c54a3f26dd4d6b68c6d208d3c8e553cfcf2933436bad3e7b30af2d50296
3
+ metadata.gz: 2980680620ba107e40e8a37a0c885904d48ef1c1e48a2fe1ccfffc59257e72dc
4
+ data.tar.gz: fbab7ffd1aa4fd6c43568bda008094cb4c5341626284aea8b9c0c4fbf565fd82
5
5
  SHA512:
6
- metadata.gz: 49afcfcec2697177cccc266cbdca5b7b0859feef23fb45d2626435c686368e0231d9cf0c66b894a3a0696dc50d54c9e285fc6b66905b42be752ac24126c82d97
7
- data.tar.gz: ada3ecb0a74f2fef56122ffcc97889b7c877d670296a5f8a556d3afad685b53332f7be4306cfdf901f2b00744f8fd600c56041605aef02db666d9e51fe633a72
6
+ metadata.gz: 5f445dd978190f9e987979322e24d18e70a364deaf07e521a6bb1b6e26ecd6b9e82448a0a48a08c22e83942ac7f711c4719444a1fd8f20b6098e9990c552fa4e
7
+ data.tar.gz: 1453feba5f8148ce85afcfcf2401b5763e39d1893678b71bcdb693a13090638ce7ead883caa6bc18f83cc8ee792f3da9e0bd8d660cd6a31e51b7390a8eb78104
@@ -209,9 +209,20 @@ module LlamaBotRails
209
209
  end
210
210
 
211
211
  uri = URI(websocket_url)
212
-
213
- uri.scheme = 'wss'
214
- uri.scheme = 'ws' if Rails.env.development?
212
+
213
+ # Normalize the WebSocket URI scheme so it is always either ws:// or wss://.
214
+ # We want to gracefully handle users passing in http/https URLs or omitting a scheme entirely.
215
+ case uri.scheme&.downcase
216
+ when 'wss', 'ws'
217
+ # already valid, do nothing
218
+ when 'https'
219
+ uri.scheme = 'wss'
220
+ when 'http'
221
+ uri.scheme = 'ws'
222
+ else
223
+ # If a scheme is missing or unrecognized, fall back to sensible defaults
224
+ uri.scheme = Rails.env.development? ? 'ws' : 'wss'
225
+ end
215
226
 
216
227
  endpoint = Async::HTTP::Endpoint.new(
217
228
  uri,
@@ -1,3 +1,3 @@
1
1
  module LlamaBotRails
2
- VERSION = "0.1.14"
2
+ VERSION = "0.1.15"
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: llama_bot_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kody Kendall
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-07-31 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rails
@@ -166,7 +165,6 @@ licenses:
166
165
  - MIT
167
166
  metadata:
168
167
  homepage_uri: https://llamapress.ai
169
- post_install_message:
170
168
  rdoc_options: []
171
169
  require_paths:
172
170
  - lib
@@ -181,8 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
179
  - !ruby/object:Gem::Version
182
180
  version: '0'
183
181
  requirements: []
184
- rubygems_version: 3.5.16
185
- signing_key:
182
+ rubygems_version: 3.7.1
186
183
  specification_version: 4
187
184
  summary: LlamaBotRails is a gem that turns your existing Rails App into an AI Agent
188
185
  by connecting it to an open source LangGraph agent, LlamaBot.