ruby_conversations 1.0.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.
Files changed (31) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +125 -0
  3. data/Rakefile +12 -0
  4. data/app/models/concerns/ruby_conversations/messageable.rb +13 -0
  5. data/app/models/concerns/ruby_conversations/versionable.rb +20 -0
  6. data/app/models/ruby_conversations/ai_conversation.rb +107 -0
  7. data/app/models/ruby_conversations/ai_message.rb +28 -0
  8. data/app/models/ruby_conversations/ai_message_input.rb +22 -0
  9. data/app/models/ruby_conversations/ai_message_prompt.rb +28 -0
  10. data/app/models/ruby_conversations/message_builder.rb +100 -0
  11. data/app/models/ruby_conversations/prompt.rb +104 -0
  12. data/app/models/ruby_conversations/prompt_version.rb +16 -0
  13. data/lib/generators/ruby_conversations/install/install_generator.rb +60 -0
  14. data/lib/generators/ruby_conversations/install/templates/README.md +42 -0
  15. data/lib/generators/ruby_conversations/install/templates/initializer.rb.erb +18 -0
  16. data/lib/generators/ruby_conversations/install/templates/migrations/create_ai_conversations.rb.erb +13 -0
  17. data/lib/generators/ruby_conversations/install/templates/migrations/create_ai_message_inputs.rb.erb +13 -0
  18. data/lib/generators/ruby_conversations/install/templates/migrations/create_ai_message_prompts.rb.erb +18 -0
  19. data/lib/generators/ruby_conversations/install/templates/migrations/create_ai_messages.rb.erb +18 -0
  20. data/lib/generators/ruby_conversations/install/templates/migrations/create_ai_tool_calls.rb.erb +15 -0
  21. data/lib/generators/ruby_conversations/install/templates/migrations/create_prompt_versions.rb.erb +14 -0
  22. data/lib/generators/ruby_conversations/install/templates/migrations/create_prompts.rb.erb +16 -0
  23. data/lib/ruby_conversations/configuration.rb +28 -0
  24. data/lib/ruby_conversations/engine.rb +41 -0
  25. data/lib/ruby_conversations/jwt_client.rb +23 -0
  26. data/lib/ruby_conversations/storage/base.rb +28 -0
  27. data/lib/ruby_conversations/storage/local.rb +30 -0
  28. data/lib/ruby_conversations/storage/remote.rb +93 -0
  29. data/lib/ruby_conversations/version.rb +9 -0
  30. data/lib/ruby_conversations.rb +62 -0
  31. metadata +314 -0
metadata ADDED
@@ -0,0 +1,314 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby_conversations
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Paul Shippy
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2025-04-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: jwt
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '7.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '7.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: ruby_llm
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: zeitwerk
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.5'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.5'
83
+ - !ruby/object:Gem::Dependency
84
+ name: bootsnap
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: database_cleaner-active_record
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: dotenv-rails
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: factory_bot_rails
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: parallel_tests
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: pg
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: pry-byebug
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: rspec-rails
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: rubocop-rails
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: rubocop-rspec
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :development
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: shoulda-matchers
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :development
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ - !ruby/object:Gem::Dependency
238
+ name: sqlite3
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ type: :development
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ description: 'A Rails engine for managing AI conversations with support for both '
252
+ email:
253
+ - paul.shippy@strongmind.com
254
+ executables: []
255
+ extensions: []
256
+ extra_rdoc_files: []
257
+ files:
258
+ - README.md
259
+ - Rakefile
260
+ - app/models/concerns/ruby_conversations/messageable.rb
261
+ - app/models/concerns/ruby_conversations/versionable.rb
262
+ - app/models/ruby_conversations/ai_conversation.rb
263
+ - app/models/ruby_conversations/ai_message.rb
264
+ - app/models/ruby_conversations/ai_message_input.rb
265
+ - app/models/ruby_conversations/ai_message_prompt.rb
266
+ - app/models/ruby_conversations/message_builder.rb
267
+ - app/models/ruby_conversations/prompt.rb
268
+ - app/models/ruby_conversations/prompt_version.rb
269
+ - lib/generators/ruby_conversations/install/install_generator.rb
270
+ - lib/generators/ruby_conversations/install/templates/README.md
271
+ - lib/generators/ruby_conversations/install/templates/initializer.rb.erb
272
+ - lib/generators/ruby_conversations/install/templates/migrations/create_ai_conversations.rb.erb
273
+ - lib/generators/ruby_conversations/install/templates/migrations/create_ai_message_inputs.rb.erb
274
+ - lib/generators/ruby_conversations/install/templates/migrations/create_ai_message_prompts.rb.erb
275
+ - lib/generators/ruby_conversations/install/templates/migrations/create_ai_messages.rb.erb
276
+ - lib/generators/ruby_conversations/install/templates/migrations/create_ai_tool_calls.rb.erb
277
+ - lib/generators/ruby_conversations/install/templates/migrations/create_prompt_versions.rb.erb
278
+ - lib/generators/ruby_conversations/install/templates/migrations/create_prompts.rb.erb
279
+ - lib/ruby_conversations.rb
280
+ - lib/ruby_conversations/configuration.rb
281
+ - lib/ruby_conversations/engine.rb
282
+ - lib/ruby_conversations/jwt_client.rb
283
+ - lib/ruby_conversations/storage/base.rb
284
+ - lib/ruby_conversations/storage/local.rb
285
+ - lib/ruby_conversations/storage/remote.rb
286
+ - lib/ruby_conversations/version.rb
287
+ homepage: https://github.com/StrongMind/ruby-conversations
288
+ licenses:
289
+ - None
290
+ metadata:
291
+ homepage_uri: https://github.com/StrongMind/ruby-conversations
292
+ source_code_uri: https://github.com/StrongMind/ruby-conversations
293
+ changelog_uri: https://github.com/StrongMind/ruby-conversations/blob/main/CHANGELOG.md
294
+ rubygems_mfa_required: 'true'
295
+ post_install_message:
296
+ rdoc_options: []
297
+ require_paths:
298
+ - lib
299
+ required_ruby_version: !ruby/object:Gem::Requirement
300
+ requirements:
301
+ - - ">="
302
+ - !ruby/object:Gem::Version
303
+ version: 3.1.0
304
+ required_rubygems_version: !ruby/object:Gem::Requirement
305
+ requirements:
306
+ - - ">="
307
+ - !ruby/object:Gem::Version
308
+ version: '0'
309
+ requirements: []
310
+ rubygems_version: 3.4.10
311
+ signing_key:
312
+ specification_version: 4
313
+ summary: Rails engine for managing AI conversations with local or remote storage
314
+ test_files: []