pear-programmer 0.1.6 → 0.1.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: fc7141d49409a0e028b2f334057b5c2233d4a05f0042ece5f1498c738dce159c
4
- data.tar.gz: 65984bb36872c43c1061a41f31a232f4e6fa70d25c43ebb449c3be8510a45bda
3
+ metadata.gz: 0e89ef92554568da8cee9fd9937b37e762e739ca74f1fb193fe9d78da27bb9c3
4
+ data.tar.gz: 237a2335e54942a3b0d2ed8fe3951a433da6f282eaf20e661ec00e8b13e27590
5
5
  SHA512:
6
- metadata.gz: 9dc313adecc3e4935b3204314e1c50f0cebd60a7a604d293391cf8c851a9d149a716ef6cc7df8931d4a4845f5262befd02f4b4184f2ca5e843e5c7a48d8f4ffb
7
- data.tar.gz: 9576d038539492ad91e67da10aaa3d05149904a23a7fd4394258176470ab62e5b8b93445f991c3e17875091b7ec99cf21bf0bce12d1ef7060cdb8128f362f2c0
6
+ metadata.gz: 1d30fc2ee809af15b640b1769ec7d0c20b80cc35e1bfa85c514b0552c0bd474da7fad86c0a5e87ddcdc9fc00adb7f955325d2951bb7c2e1a855c9454ad913673
7
+ data.tar.gz: 2a88cba029765641c7b8e7e170ac308e42eaa7586b8e447a9cc8222c91e228b9ed4779fd8b67e04b33f3cf93e0066df2c8d7f8fa00964cdf515460e71454d639
@@ -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.exists?(@configuration_file_path)
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/display.rb CHANGED
@@ -49,7 +49,7 @@ module Cli
49
49
 
50
50
  def self.get_input(input)
51
51
  print(input.colorize(mode: :bold))
52
- STDIN.gets.chomp
52
+ STDIN.gets&.chomp || ''
53
53
  end
54
54
 
55
55
  def self.success_message(message)
data/lib/cli/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Cli
2
2
  module Version
3
- VERSION = "0.1.6"
3
+ VERSION = "0.1.8"
4
4
  end
5
5
  end
data/lib/cli.rb CHANGED
@@ -54,6 +54,7 @@ begin
54
54
  Cli::Actions.help
55
55
  end
56
56
  rescue => e
57
+ # TODO: log ruby version too
57
58
  Cli::Actions.report_exception(ARGV.join(" "), e)
58
59
  end
59
60
 
@@ -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.exists?(file_path)
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.6
4
+ version: 0.1.8
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-12 00:00:00.000000000 Z
11
+ date: 2023-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: open3