console_buddy 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e04be1adeb863f4260dab25a81cce777e2a4e433904998f69482b0f1dfb22399
4
- data.tar.gz: 0625fe84308248a4cce330dda74f9aae56904ef9be087e55bed9c29ab1907332
3
+ metadata.gz: f1e406a859233d5cdbad0f209d2920194f845210b8362eb34a1e9e80506847e0
4
+ data.tar.gz: 8c412f227c4b96c87e1f2b7ff3d5dc27ba6a308bc89f2e886925b04185add0c7
5
5
  SHA512:
6
- metadata.gz: 3bf5f09899139d81888c8bb30e987b96b924496bde533f4a563fe114da2f0f8d5368dd0751a5618a2ea2736675c99e780ee307da6f77f67d4d78ec6436af720e
7
- data.tar.gz: d92805d82a145126a57ec78c04044ec084c950957bcfcf2d4527063b80d7762b61d0a7d070a72912b689ff46de073755ebf75db0b063e1d2895472a2f2bb7417
6
+ metadata.gz: 795674e62d2ba1252846e07c52523e57c5497a0ec2768a14b9cefd9ece962c5bac95c63d2ca12b6cb85234c6f94033578f355740d56492b9b6be326e001e3b5f
7
+ data.tar.gz: 5fdee70a3ba51e3d5267f434ec72dd669fd5a0c6d0c03a207b983e0f4f95836265349a27ecdbf2f6eb729083fa7af4ed13fe5b306a0f4cc146b9c95e493fdc48
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ConsoleBuddy
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.7"
5
5
  end
data/lib/console_buddy.rb CHANGED
@@ -1,6 +1,17 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'pathname'
4
+
5
+ # Check if .console_buddy directory exists
6
+ def console_buddy_directory_exists?
7
+ console_buddy_path = Pathname.new(File.join(Dir.pwd, '.console_buddy'))
8
+ console_buddy_path.exist? && console_buddy_path.directory?
9
+ end
10
+
11
+ if !console_buddy_directory_exists?
12
+ return
13
+ end
14
+
4
15
  require 'active_support'
5
16
  require 'active_support/all'
6
17
 
@@ -130,9 +141,10 @@ module ConsoleBuddy
130
141
  def load_console_buddy_files
131
142
  console_buddy_path = Pathname.new(File.join(Dir.pwd, '.console_buddy'))
132
143
  if console_buddy_path.exist? && console_buddy_path.directory?
133
- console_buddy_path.each_child do |file|
134
- next unless file.file?
135
- require file.to_s
144
+ console_buddy_path.find do |path|
145
+ next unless path.file?
146
+ next if path.basename.to_s == 'config.rb' # Skip config.rb as it's loaded separately
147
+ require path.to_s
136
148
  end
137
149
  else
138
150
  puts ".console_buddy folder not found in the root of the project."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: console_buddy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Bowie