plain-rails 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -1
- data/app/assets/builds/plain.css +1 -1
- data/app/assets/stylesheets/plain/application.tailwind.css +4 -0
- data/app/controllers/plain/conversations_controller.rb +5 -7
- data/app/controllers/plain/docs_controller.rb +51 -16
- data/app/controllers/plain/documents_controller.rb +28 -0
- data/app/helpers/plain/documents_helper.rb +4 -0
- data/app/models/plain/document.rb +49 -0
- data/app/services/plain/ai_docs.rb +2 -1
- data/app/services/plain/docs_service.rb +21 -3
- data/app/views/layouts/plain/application.html.erb +126 -105
- data/app/views/plain/conversations/_conversation_item.html.erb +18 -5
- data/app/views/plain/conversations/_conversation_list.html.erb +1 -1
- data/app/views/plain/conversations/destroy.turbo_stream.erb +1 -0
- data/app/views/plain/conversations/index.html.erb +2 -2
- data/app/views/plain/conversations/show.html.erb +2 -0
- data/app/views/plain/docs/_form.html.erb +41 -0
- data/app/views/plain/docs/_menu.erb +1 -4
- data/app/views/plain/docs/edit.html.erb +3 -0
- data/app/views/plain/docs/show.html.erb +19 -5
- data/app/views/plain/docs/update.turbo_stream.erb +3 -0
- data/app/views/plain/documents/_form.erb +47 -0
- data/app/views/plain/documents/create.turbo_stream.erb +15 -0
- data/app/views/plain/documents/new.html.erb +3 -0
- data/app/views/plain/home/index.html.erb +1 -1
- data/app/views/plain/messages/_message_item.html.erb +7 -6
- data/config/routes.rb +6 -1
- data/lib/plain/configuration.rb +2 -1
- data/lib/plain/version.rb +1 -1
- data/lib/tasks/plain_tasks.rake +39 -0
- metadata +14 -4
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plain-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Michelson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.6.
|
33
|
+
version: 0.6.13
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.6.
|
40
|
+
version: 0.6.13
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: ruby-openai
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -110,11 +110,13 @@ files:
|
|
110
110
|
- app/controllers/plain/application_controller.rb
|
111
111
|
- app/controllers/plain/conversations_controller.rb
|
112
112
|
- app/controllers/plain/docs_controller.rb
|
113
|
+
- app/controllers/plain/documents_controller.rb
|
113
114
|
- app/controllers/plain/home_controller.rb
|
114
115
|
- app/controllers/plain/messages_controller.rb
|
115
116
|
- app/helpers/plain/application_helper.rb
|
116
117
|
- app/helpers/plain/conversations_helper.rb
|
117
118
|
- app/helpers/plain/docs_helper.rb
|
119
|
+
- app/helpers/plain/documents_helper.rb
|
118
120
|
- app/helpers/plain/home_helper.rb
|
119
121
|
- app/helpers/plain/messages_helper.rb
|
120
122
|
- app/javascripts/loader_controller.js
|
@@ -125,6 +127,7 @@ files:
|
|
125
127
|
- app/mailers/plain/application_mailer.rb
|
126
128
|
- app/models/plain/application_record.rb
|
127
129
|
- app/models/plain/conversation.rb
|
130
|
+
- app/models/plain/document.rb
|
128
131
|
- app/models/plain/message.rb
|
129
132
|
- app/services/plain/ai_docs.rb
|
130
133
|
- app/services/plain/docs_service.rb
|
@@ -134,13 +137,20 @@ files:
|
|
134
137
|
- app/views/plain/conversations/_conversation_list.html.erb
|
135
138
|
- app/views/plain/conversations/_modal.html.erb
|
136
139
|
- app/views/plain/conversations/_status.erb
|
140
|
+
- app/views/plain/conversations/destroy.turbo_stream.erb
|
137
141
|
- app/views/plain/conversations/index.html.erb
|
138
142
|
- app/views/plain/conversations/pin.turbo_stream.erb
|
139
143
|
- app/views/plain/conversations/show.html.erb
|
140
144
|
- app/views/plain/docs/_footer.erb
|
145
|
+
- app/views/plain/docs/_form.html.erb
|
141
146
|
- app/views/plain/docs/_menu.erb
|
142
147
|
- app/views/plain/docs/_sections.erb
|
148
|
+
- app/views/plain/docs/edit.html.erb
|
143
149
|
- app/views/plain/docs/show.html.erb
|
150
|
+
- app/views/plain/docs/update.turbo_stream.erb
|
151
|
+
- app/views/plain/documents/_form.erb
|
152
|
+
- app/views/plain/documents/create.turbo_stream.erb
|
153
|
+
- app/views/plain/documents/new.html.erb
|
144
154
|
- app/views/plain/home/index.html.erb
|
145
155
|
- app/views/plain/messages/_form.html.erb
|
146
156
|
- app/views/plain/messages/_message_item.html.erb
|