atk_toolbox 0.0.73 → 0.0.74

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: 6bbdfa878da22ecddbecdc8b42aa91de1f1909fcf196fc42a8921f7ba50dbfd8
4
- data.tar.gz: a9d50f7fb7088fc13367d208a8104beaa93fc09148ee28a922b95d2ea4df9d7f
3
+ metadata.gz: 7403dd233701d10fefcee9fa72ae46ec1ead1764e8a814e374ab34f048eba329
4
+ data.tar.gz: 5f7ca2acfe876cc3c429bb4fc84750f38e145fb98e1350741d5933e5f1318ba6
5
5
  SHA512:
6
- metadata.gz: e3fdad11b9fc752247b9e08fe0ee41b835417c0e2c9263319a6e07710029648beaa1e5eb128fe257290529023517f0888f9d07497f56c9e49cf3b1465884e821
7
- data.tar.gz: 5e5ff39ad96783d852af79b776b224d834049ac47d42e4985052a6b629bff94794c9979d8b2b13ee17220a009f16407141d3c498e9d58b81d9517c5bb4733d0d
6
+ metadata.gz: b76f19d5370a792110b770ada87d6bbca04bc74e7977658149810c0e9557a8f65d4f6e05f84fa8b243a7d4e4b9c8ab016c4172da49f19438088c03617a9d3faa
7
+ data.tar.gz: 9a1fe9abd1643634c2d2371b389d49f55c7964310ee37a52724ed1f66d7904d1cc3003a046e2e658832ce3f674a6a29851e3414182e4e57bcbc9828f2172832b
data/lib/atk/file_sys.rb CHANGED
@@ -199,10 +199,10 @@ class FileSys
199
199
  Dir.glob(path, File::FNM_DOTMATCH) - %w[. ..]
200
200
  end
201
201
  def self.list_files(path=".")
202
- Dir.children(path).select {|each| FileSys.file?(each)}
202
+ Dir.children(path).map{|each| FS.dirname(path)/each }.select {|each| FileSys.file?(each)}
203
203
  end
204
204
  def self.list_folders(path=".")
205
- Dir.children(path).select {|each| FileSys.directory?(each)}
205
+ Dir.children(path).map{|each| FS.dirname(path)/each }.select {|each| FileSys.directory?(each)}
206
206
  end
207
207
  def self.ls(path=".")
208
208
  Dir.children(path)
@@ -222,10 +222,14 @@ class Info
222
222
  # @@environment_variables
223
223
 
224
224
  # get the local yaml file
225
- # TODO: have this search the parent dir's to find it
226
- begin
227
- @@data = YAML.load_file(Info.source_path)
228
- rescue => exception
225
+ if FS.file?(Info.source_path)
226
+ begin
227
+ @@data = YAML.load_file(Info.source_path)
228
+ rescue => exception
229
+ puts "\n\nI'm having trouble loading the info.yaml file. Here's the error: #{exception}"
230
+ exit
231
+ end
232
+ else
229
233
  puts "Couldn't find an info.yaml file in #{Dir.pwd}"
230
234
  exit
231
235
  end
@@ -1,3 +1,3 @@
1
1
  module AtkToolbox
2
- VERSION = '0.0.73'
2
+ VERSION = '0.0.74'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atk_toolbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.73
4
+ version: 0.0.74
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Hykin