pear-programmer 0.1.4 → 0.1.6
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 +4 -4
- data/lib/cli/actions.rb +3 -2
- data/lib/cli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc7141d49409a0e028b2f334057b5c2233d4a05f0042ece5f1498c738dce159c
|
4
|
+
data.tar.gz: 65984bb36872c43c1061a41f31a232f4e6fa70d25c43ebb449c3be8510a45bda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dc313adecc3e4935b3204314e1c50f0cebd60a7a604d293391cf8c851a9d149a716ef6cc7df8931d4a4845f5262befd02f4b4184f2ca5e843e5c7a48d8f4ffb
|
7
|
+
data.tar.gz: 9576d038539492ad91e67da10aaa3d05149904a23a7fd4394258176470ab62e5b8b93445f991c3e17875091b7ec99cf21bf0bce12d1ef7060cdb8128f362f2c0
|
data/lib/cli/actions.rb
CHANGED
@@ -124,7 +124,8 @@ module Cli
|
|
124
124
|
return
|
125
125
|
elsif response["error"]
|
126
126
|
Cli::Display.error_message("there was an error processing the assistant's response")
|
127
|
-
Cli::Display.info_message("retrying
|
127
|
+
Cli::Display.info_message("retrying in 5 seconds")
|
128
|
+
sleep(5)
|
128
129
|
next
|
129
130
|
end
|
130
131
|
|
@@ -159,7 +160,7 @@ module Cli
|
|
159
160
|
file_path = PairProgrammer::Configuration.absolute_path(system_message["arguments"]["file_path"])
|
160
161
|
begin
|
161
162
|
original_content = File.read(file_path)
|
162
|
-
rescue Errno::ENOENT
|
163
|
+
rescue Errno::ENOENT => e
|
163
164
|
Cli::Display.error_message("there was an error running the command, notifying assistant of error.")
|
164
165
|
PairProgrammer::Api::Coder.append_exception(id, e)
|
165
166
|
Cli::Display.info_message("retrying...")
|
data/lib/cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pear-programmer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Edelstein
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: open3
|