boxcars 0.4.7 → 0.4.8

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: c32c2498f8acb1de9b1439cb5a1a745837a4e9c592cffe15ac370d0662542323
4
- data.tar.gz: dbf4d129f36be7a0540cb4fe7ce11215e8bc25e38cdfde76680823be628abdb0
3
+ metadata.gz: 22cf4767b062cb4e284138564377aa3c69037f5c71d7ae44c8d0469532bbd47e
4
+ data.tar.gz: 3a5954e74b761e83e086b94e174a59b6399644014a5d311ba883e8db9918abc1
5
5
  SHA512:
6
- metadata.gz: fd0b6321fe704c1ef6eff7095e53e87e800baa615956e8bf7c76f343738c147455a655b52cb1e1dcba22d8a724cd3a6479fdd8c8c60b31e4c590e1b86783589c
7
- data.tar.gz: dc9c2c153b3328853b6e788cc2fb26e99b5724aacf8382c936250925948c254868d3268a91a7011290f07fbe0ed7e0af824b372af909b84ffa431d12229fbc90
6
+ metadata.gz: b1a351eb86e272cf115c9b79206c27eed06d14beb82bb947c44d3e63b25c109afa25a8f0c69503c20f41f2b8d359150ab33c2a73d935367b80fbaff0f54f8b38
7
+ data.tar.gz: edb5b24d36f336ac40d0137e1a8dc77c7a0c02f578f7e544fd69045adea132ba42d1ece5003ec8d752b31f94bd30b9cc97ae918f620f393e8d29689f5267edc6
data/Gemfile CHANGED
@@ -5,11 +5,11 @@ source "https://rubygems.org"
5
5
  # Specify your gem's dependencies in boxcars.gemspec
6
6
  gemspec
7
7
 
8
- gem "debug", "~> 1.1"
8
+ gem "debug", "~> 1.9"
9
9
 
10
10
  gem "dotenv", "~> 2.8"
11
11
 
12
- gem "rake", "~> 13.0"
12
+ gem "rake", "~> 13.1"
13
13
 
14
14
  gem "sqlite3", "~> 1.6"
15
15
 
@@ -25,16 +25,16 @@ gem "activesupport", "~> 7.0"
25
25
 
26
26
  gem "rest-client", "~> 2.1"
27
27
 
28
- gem "hnswlib", "~> 0.8.1"
28
+ gem "hnswlib", "~> 0.9.0"
29
29
 
30
- gem "pg", "~> 1.5", ">= 1.5.3"
31
- gem "pgvector", "~> 0.2.0"
30
+ gem "pg", "~> 1.5"
31
+ gem "pgvector", "~> 0.2.2"
32
32
 
33
33
  group :development, :test do
34
34
  gem "rspec", "~> 3.2"
35
- gem "rubocop", "~> 1.21"
36
- gem "vcr", "~> 6.1.0"
37
- gem "webmock", "~> 3.18.1"
35
+ gem "rubocop", "~> 1.59"
36
+ gem "vcr", "~> 6.2.0"
37
+ gem "webmock", "~> 3.19.1"
38
38
  gem "rubocop-rake", "~> 0.6.0"
39
- gem "rubocop-rspec", "~> 2.17"
39
+ gem "rubocop-rspec", "~> 2.26"
40
40
  end
data/Gemfile.lock CHANGED
@@ -1,29 +1,29 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- boxcars (0.4.5)
4
+ boxcars (0.4.8)
5
5
  anthropic (~> 0.1)
6
6
  google_search_results (~> 2.2)
7
7
  gpt4all (~> 0.0.4)
8
8
  hnswlib (~> 0.8)
9
- nokogiri (~> 1.15)
9
+ nokogiri (~> 1.16)
10
10
  pgvector (~> 0.2)
11
- ruby-openai (~> 4.2)
11
+ ruby-openai (>= 4.2, < 7.0)
12
12
 
13
13
  GEM
14
14
  remote: https://rubygems.org/
15
15
  specs:
16
- activemodel (7.0.6)
17
- activesupport (= 7.0.6)
18
- activerecord (7.0.6)
19
- activemodel (= 7.0.6)
20
- activesupport (= 7.0.6)
21
- activesupport (7.0.6)
16
+ activemodel (7.0.7.1)
17
+ activesupport (= 7.0.7.1)
18
+ activerecord (7.0.7.1)
19
+ activemodel (= 7.0.7.1)
20
+ activesupport (= 7.0.7.1)
21
+ activesupport (7.0.7.1)
22
22
  concurrent-ruby (~> 1.0, >= 1.0.2)
23
23
  i18n (>= 1.6, < 2)
24
24
  minitest (>= 5.1)
25
25
  tzinfo (~> 2.0)
26
- addressable (2.8.4)
26
+ addressable (2.8.6)
27
27
  public_suffix (>= 2.0.2, < 6.0)
28
28
  anthropic (0.1.0)
29
29
  faraday (>= 1)
@@ -33,12 +33,12 @@ GEM
33
33
  console (~> 1.10)
34
34
  nio4r (~> 2.3)
35
35
  timers (~> 4.1)
36
- async-http (0.60.2)
36
+ async-http (0.61.0)
37
37
  async (>= 1.25)
38
38
  async-io (>= 1.28)
39
39
  async-pool (>= 0.2)
40
- protocol-http (~> 0.24.0)
41
- protocol-http1 (~> 0.15.0)
40
+ protocol-http (~> 0.25.0)
41
+ protocol-http1 (~> 0.16.0)
42
42
  protocol-http2 (~> 0.15.0)
43
43
  traces (>= 0.10.0)
44
44
  async-http-faraday (0.12.0)
@@ -48,21 +48,22 @@ GEM
48
48
  async
49
49
  async-pool (0.4.0)
50
50
  async (>= 1.25)
51
- base64 (0.1.1)
51
+ base64 (0.2.0)
52
52
  concurrent-ruby (1.2.2)
53
53
  console (1.17.4)
54
54
  fiber-annotation
55
55
  fiber-local
56
56
  crack (0.4.5)
57
57
  rexml
58
- debug (1.8.0)
59
- irb (>= 1.5.0)
60
- reline (>= 0.3.1)
58
+ debug (1.9.1)
59
+ irb (~> 1.10)
60
+ reline (>= 0.3.8)
61
61
  diff-lcs (1.5.0)
62
62
  domain_name (0.5.20190701)
63
63
  unf (>= 0.0.5, < 1.0.0)
64
64
  dotenv (2.8.1)
65
- faraday (2.7.11)
65
+ event_stream_parser (1.0.0)
66
+ faraday (2.7.12)
66
67
  base64
67
68
  faraday-net_http (>= 2.0, < 3.1)
68
69
  ruby2_keywords (>= 0.0.4)
@@ -89,60 +90,65 @@ GEM
89
90
  faraday (~> 2.7)
90
91
  os (~> 1.1)
91
92
  tty-progressbar (~> 0.18.2)
92
- hashdiff (1.0.1)
93
- hnswlib (0.8.1)
93
+ hashdiff (1.1.0)
94
+ hnswlib (0.9.0)
94
95
  http-accept (1.7.0)
95
96
  http-cookie (1.0.5)
96
97
  domain_name (~> 0.5)
97
98
  i18n (1.14.1)
98
99
  concurrent-ruby (~> 1.0)
99
- io-console (0.6.0)
100
- irb (1.7.4)
101
- reline (>= 0.3.6)
102
- json (2.6.3)
100
+ io-console (0.7.1)
101
+ irb (1.11.0)
102
+ rdoc
103
+ reline (>= 0.3.8)
104
+ json (2.7.1)
103
105
  language_server-protocol (3.17.0.3)
104
106
  mime-types (3.4.1)
105
107
  mime-types-data (~> 3.2015)
106
108
  mime-types-data (3.2023.0218.1)
107
- minitest (5.18.1)
109
+ minitest (5.20.0)
108
110
  multi_json (1.15.0)
109
111
  multipart-post (2.3.0)
110
112
  netrc (0.11.0)
111
113
  nio4r (2.5.9)
112
- nokogiri (1.15.4-arm64-darwin)
114
+ nokogiri (1.16.0-arm64-darwin)
113
115
  racc (~> 1.4)
114
- nokogiri (1.15.4-x86_64-linux)
116
+ nokogiri (1.16.0-x86_64-linux)
115
117
  racc (~> 1.4)
116
118
  octokit (4.25.1)
117
119
  faraday (>= 1, < 3)
118
120
  sawyer (~> 0.9)
119
121
  os (1.1.4)
120
- parallel (1.23.0)
121
- parser (3.2.2.3)
122
+ parallel (1.24.0)
123
+ parser (3.3.0.2)
122
124
  ast (~> 2.4.1)
123
125
  racc
124
- pg (1.5.3)
125
- pgvector (0.2.1)
126
+ pg (1.5.4)
127
+ pgvector (0.2.2)
126
128
  protocol-hpack (1.4.2)
127
- protocol-http (0.24.4)
128
- protocol-http1 (0.15.0)
129
+ protocol-http (0.25.0)
130
+ protocol-http1 (0.16.0)
129
131
  protocol-http (~> 0.22)
130
132
  protocol-http2 (0.15.1)
131
133
  protocol-hpack (~> 1.4)
132
134
  protocol-http (~> 0.18)
133
- public_suffix (5.0.3)
134
- racc (1.7.1)
135
+ psych (5.1.2)
136
+ stringio
137
+ public_suffix (5.0.4)
138
+ racc (1.7.3)
135
139
  rainbow (3.1.1)
136
- rake (13.0.6)
137
- regexp_parser (2.8.1)
138
- reline (0.3.6)
140
+ rake (13.1.0)
141
+ rdoc (6.6.2)
142
+ psych (>= 4.0.0)
143
+ regexp_parser (2.9.0)
144
+ reline (0.4.1)
139
145
  io-console (~> 0.5)
140
146
  rest-client (2.1.0)
141
147
  http-accept (>= 1.7.0, < 2.0)
142
148
  http-cookie (>= 1.0.2, < 2.0)
143
149
  mime-types (>= 1.16, < 4.0)
144
150
  netrc (~> 0.8)
145
- rexml (3.2.5)
151
+ rexml (3.2.6)
146
152
  rspec (3.12.0)
147
153
  rspec-core (~> 3.12.0)
148
154
  rspec-expectations (~> 3.12.0)
@@ -156,30 +162,31 @@ GEM
156
162
  diff-lcs (>= 1.2.0, < 2.0)
157
163
  rspec-support (~> 3.12.0)
158
164
  rspec-support (3.12.1)
159
- rubocop (1.54.2)
165
+ rubocop (1.59.0)
160
166
  json (~> 2.3)
161
167
  language_server-protocol (>= 3.17.0)
162
168
  parallel (~> 1.10)
163
- parser (>= 3.2.2.3)
169
+ parser (>= 3.2.2.4)
164
170
  rainbow (>= 2.2.2, < 4.0)
165
171
  regexp_parser (>= 1.8, < 3.0)
166
172
  rexml (>= 3.2.5, < 4.0)
167
- rubocop-ast (>= 1.28.0, < 2.0)
173
+ rubocop-ast (>= 1.30.0, < 2.0)
168
174
  ruby-progressbar (~> 1.7)
169
175
  unicode-display_width (>= 2.4.0, < 3.0)
170
- rubocop-ast (1.29.0)
176
+ rubocop-ast (1.30.0)
171
177
  parser (>= 3.2.1.0)
172
- rubocop-capybara (2.18.0)
178
+ rubocop-capybara (2.20.0)
179
+ rubocop (~> 1.41)
180
+ rubocop-factory_bot (2.25.1)
173
181
  rubocop (~> 1.41)
174
- rubocop-factory_bot (2.23.1)
175
- rubocop (~> 1.33)
176
182
  rubocop-rake (0.6.0)
177
183
  rubocop (~> 1.0)
178
- rubocop-rspec (2.22.0)
179
- rubocop (~> 1.33)
184
+ rubocop-rspec (2.26.1)
185
+ rubocop (~> 1.40)
180
186
  rubocop-capybara (~> 2.17)
181
187
  rubocop-factory_bot (~> 2.22)
182
- ruby-openai (4.3.2)
188
+ ruby-openai (6.3.1)
189
+ event_stream_parser (>= 0.3.0, < 2.0.0)
183
190
  faraday (>= 1)
184
191
  faraday-multipart (>= 1)
185
192
  ruby-progressbar (1.13.0)
@@ -187,8 +194,9 @@ GEM
187
194
  sawyer (0.9.2)
188
195
  addressable (>= 2.3.5)
189
196
  faraday (>= 0.17.3, < 3)
190
- sqlite3 (1.6.3-arm64-darwin)
191
- sqlite3 (1.6.3-x86_64-linux)
197
+ sqlite3 (1.7.0-arm64-darwin)
198
+ sqlite3 (1.7.0-x86_64-linux)
199
+ stringio (3.1.0)
192
200
  strings-ansi (0.2.0)
193
201
  timers (4.3.5)
194
202
  traces (0.11.1)
@@ -204,15 +212,16 @@ GEM
204
212
  unf (0.1.4)
205
213
  unf_ext
206
214
  unf_ext (0.0.8.2)
207
- unicode-display_width (2.4.2)
208
- vcr (6.1.0)
209
- webmock (3.18.1)
215
+ unicode-display_width (2.5.0)
216
+ vcr (6.2.0)
217
+ webmock (3.19.1)
210
218
  addressable (>= 2.8.0)
211
219
  crack (>= 0.3.2)
212
220
  hashdiff (>= 0.4.0, < 2.0.0)
213
221
 
214
222
  PLATFORMS
215
223
  arm64-darwin-22
224
+ arm64-darwin-23
216
225
  x86_64-linux
217
226
 
218
227
  DEPENDENCIES
@@ -220,22 +229,22 @@ DEPENDENCIES
220
229
  activesupport (~> 7.0)
221
230
  async (~> 1.31.0)
222
231
  boxcars!
223
- debug (~> 1.1)
232
+ debug (~> 1.9)
224
233
  dotenv (~> 2.8)
225
234
  faraday-retry (~> 2.0)
226
235
  github_changelog_generator (~> 1.16)
227
- hnswlib (~> 0.8.1)
228
- pg (~> 1.5, >= 1.5.3)
229
- pgvector (~> 0.2.0)
230
- rake (~> 13.0)
236
+ hnswlib (~> 0.9.0)
237
+ pg (~> 1.5)
238
+ pgvector (~> 0.2.2)
239
+ rake (~> 13.1)
231
240
  rest-client (~> 2.1)
232
241
  rspec (~> 3.2)
233
- rubocop (~> 1.21)
242
+ rubocop (~> 1.59)
234
243
  rubocop-rake (~> 0.6.0)
235
- rubocop-rspec (~> 2.17)
244
+ rubocop-rspec (~> 2.26)
236
245
  sqlite3 (~> 1.6)
237
- vcr (~> 6.1.0)
238
- webmock (~> 3.18.1)
246
+ vcr (~> 6.2.0)
247
+ webmock (~> 3.19.1)
239
248
 
240
249
  BUNDLED WITH
241
250
  2.4.16
data/boxcars.gemspec CHANGED
@@ -35,9 +35,9 @@ Gem::Specification.new do |spec|
35
35
  spec.add_dependency "google_search_results", "~> 2.2"
36
36
  spec.add_dependency "gpt4all", "~> 0.0.4"
37
37
  spec.add_dependency "hnswlib", "~> 0.8"
38
- spec.add_dependency "nokogiri", "~> 1.15"
38
+ spec.add_dependency "nokogiri", "~> 1.16"
39
39
  spec.add_dependency "pgvector", "~> 0.2"
40
- spec.add_dependency "ruby-openai", "~> 4.2"
40
+ spec.add_dependency "ruby-openai", ">= 4.2", "< 7.0"
41
41
 
42
42
  # For more information and examples about making a new gem, checkout our
43
43
  # guide at: https://bundler.io/guides/creating_gem.html
@@ -36,7 +36,7 @@ module Boxcars
36
36
  private
37
37
 
38
38
  def get_name
39
- return Rails.application.class.module_parent.name if defined?(Rails)
39
+ Rails.application.class.module_parent.name if defined?(Rails)
40
40
  rescue StandardError => e
41
41
  boxcars.error "Error getting rails name application name: #{e.message}"
42
42
  nil
@@ -47,7 +47,7 @@ module Boxcars
47
47
  request["authorization"] = "Bearer #{ENV.fetch('PERPLEXITY_API_KEY')}"
48
48
  request["content-type"] = 'application/json'
49
49
  the_body = {
50
- model: (parameters[:model] || "mistral-7b-instruct"),
50
+ model: parameters[:model] || "mistral-7b-instruct",
51
51
  messages: parameters[:messages]
52
52
  }
53
53
  request.body = the_body.to_json
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Boxcars
4
4
  # The current version of the gem.
5
- VERSION = "0.4.7"
5
+ VERSION = "0.4.8"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boxcars
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francis Sullivan
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-11-07 00:00:00.000000000 Z
12
+ date: 2024-01-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: anthropic
@@ -73,14 +73,14 @@ dependencies:
73
73
  requirements:
74
74
  - - "~>"
75
75
  - !ruby/object:Gem::Version
76
- version: '1.15'
76
+ version: '1.16'
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - "~>"
82
82
  - !ruby/object:Gem::Version
83
- version: '1.15'
83
+ version: '1.16'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: pgvector
86
86
  requirement: !ruby/object:Gem::Requirement
@@ -99,16 +99,22 @@ dependencies:
99
99
  name: ruby-openai
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - "~>"
102
+ - - ">="
103
103
  - !ruby/object:Gem::Version
104
104
  version: '4.2'
105
+ - - "<"
106
+ - !ruby/object:Gem::Version
107
+ version: '7.0'
105
108
  type: :runtime
106
109
  prerelease: false
107
110
  version_requirements: !ruby/object:Gem::Requirement
108
111
  requirements:
109
- - - "~>"
112
+ - - ">="
110
113
  - !ruby/object:Gem::Version
111
114
  version: '4.2'
115
+ - - "<"
116
+ - !ruby/object:Gem::Version
117
+ version: '7.0'
112
118
  description: You simply set an OpenAI key, give a number of Boxcars to a Train, and
113
119
  magic ensues when you run it.
114
120
  email: