pear-programmer 0.1.5 → 0.1.7
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 +2 -1
- data/lib/cli/configuration.rb +1 -1
- data/lib/cli/version.rb +1 -1
- data/lib/pairprogrammer/command.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: 20a07b0c1512b828a32c2af5550e21687bd20cc28cdd5dc20bff749ca2ee60ee
|
4
|
+
data.tar.gz: '069626c5cb84e5a673c9cc93fce537a145a290aec505d9084bd10af99d30a621'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83f8839eb14285211a4584b3a6dfb651f7cba024116ceb0b79b88d306219092008afee13dcc15998cfaa8adc3fa7e6b51c479ec34af6d11498c3817a3e2e6d0e
|
7
|
+
data.tar.gz: 80191868c3430538bc10086662ba671cbd8a9e1214da2cb3ab7c6720444079c29df46b04828a605509679adb57319300b5c466ffe9f6c9dc38297bf436ab4fd9
|
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
|
|
data/lib/cli/configuration.rb
CHANGED
@@ -35,7 +35,7 @@ module Cli
|
|
35
35
|
def initialize
|
36
36
|
@root = Dir.pwd
|
37
37
|
@configuration_file_path = File.join(@root, FILE_NAME)
|
38
|
-
if !File.
|
38
|
+
if !File.exist?(@configuration_file_path)
|
39
39
|
raise "Pear Programmer configuration file does not exist, please run 'pear-on init' or switch to working directory"
|
40
40
|
end
|
41
41
|
@configuration_file = YAML.load_file(@configuration_file_path)
|
data/lib/cli/version.rb
CHANGED
@@ -118,7 +118,7 @@ module PairProgrammer
|
|
118
118
|
STDIN.gets.chomp
|
119
119
|
when "read_file"
|
120
120
|
file_path = PairProgrammer::Configuration.absolute_path(arguments["file_path"])
|
121
|
-
if File.
|
121
|
+
if File.exist?(file_path)
|
122
122
|
File.read(file_path)
|
123
123
|
else
|
124
124
|
"file does not exist"
|
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.7
|
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-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: open3
|