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 +4 -4
- data/lib/atk/file_sys.rb +2 -2
- data/lib/atk/yaml_info_parser.rb +8 -4
- data/lib/atk_toolbox/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7403dd233701d10fefcee9fa72ae46ec1ead1764e8a814e374ab34f048eba329
|
4
|
+
data.tar.gz: 5f7ca2acfe876cc3c429bb4fc84750f38e145fb98e1350741d5933e5f1318ba6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
data/lib/atk/yaml_info_parser.rb
CHANGED
@@ -222,10 +222,14 @@ class Info
|
|
222
222
|
# @@environment_variables
|
223
223
|
|
224
224
|
# get the local yaml file
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
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
|
data/lib/atk_toolbox/version.rb
CHANGED