dorian 2.2.0 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/lib/dorian/bin.rb +3 -5
  4. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd057371121d824ad1a6172b189916820b5e5544f9cabd95db4fd7f51a2bd5fa
4
- data.tar.gz: 244af12257d30dc4c617b8443a4a02d2c8ecc0fb7209f7b27dee7525ee43b35f
3
+ metadata.gz: 3c57cc82bf70d1fbbc5d118453d9e80083394de05bdde5932eea98b361816cd8
4
+ data.tar.gz: 929ad4aa06e09b40955d706027897cf56245d9a1d874e0c2e8c785bcfe7aa357
5
5
  SHA512:
6
- metadata.gz: a6e82fef1ff6f595dfecba39e6f14ad19bf502f38b8c4af6d5e261eb69cbd3461119fbbb526089cddea881a00cb26f3b11706b34969485d2e2ad61bce6829c27
7
- data.tar.gz: a3f12ae1d9d88cb6f28b975f5b59ca11ed37baa612c3e8b6c58009bc639f59084ed1af3cb2f400ed94bfc38ed8a51b7ef0c6b93aa7a1ad8118a52c8e7b7cec41
6
+ metadata.gz: 043d2e531dc632ff68908007010635ee5936a79fb8582c2c461a82121da7179088906ba37e6772393cc25d30f43f8f36460dc805d09c9f2a0db8719af82a7354
7
+ data.tar.gz: 97eafc3b7a1e0081285a068249c8f298fb2c259cf7dcef6d822d9125092c39681573b5f050fc757fd9fe57f815cb157b8324c84730d1bc89de979d93f74c614e
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.2.0
1
+ 2.2.2
data/lib/dorian/bin.rb CHANGED
@@ -218,7 +218,7 @@ class Dorian
218
218
  { role: :user, content: content_3 }
219
219
  ]
220
220
 
221
- message = completion(token: token(".commit"), model: "gpt-4o", messages: messages)
221
+ message = completion(token: token(".commit"), model: "gpt-4o", messages:)
222
222
 
223
223
  Git.open(".").commit(message)
224
224
 
@@ -264,13 +264,11 @@ class Dorian
264
264
  end
265
265
 
266
266
  def command_append
267
- outputs(everything.map { |input| lines(reads(input)) }.inject(&:+))
267
+ outputs(everything.sum { |input| lines(reads(input)) })
268
268
  end
269
269
 
270
270
  def command_prepend
271
- outputs(
272
- everything.reverse.map { |input| lines(reads(input)) }.inject(&:+)
273
- )
271
+ outputs(everything.reverse.sum { |input| lines(reads(input)) })
274
272
  end
275
273
 
276
274
  def command_select
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dorian
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Marié
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-04 00:00:00.000000000 Z
11
+ date: 2024-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: csv
@@ -157,16 +157,16 @@ require_paths:
157
157
  - lib
158
158
  required_ruby_version: !ruby/object:Gem::Requirement
159
159
  requirements:
160
- - - '='
160
+ - - ">="
161
161
  - !ruby/object:Gem::Version
162
- version: 3.3.4
162
+ version: '3.3'
163
163
  required_rubygems_version: !ruby/object:Gem::Requirement
164
164
  requirements:
165
165
  - - ">="
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  requirements: []
169
- rubygems_version: 3.5.11
169
+ rubygems_version: 3.5.16
170
170
  signing_key:
171
171
  specification_version: 4
172
172
  summary: a collection of gems