atk_toolbox 0.0.66 → 0.0.67
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/atk/yaml_info_parser.rb +10 -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: 678de1f6ab947c3db0fb731c98d25ce7754df489bf5ddcc46e776552d6b7795c
|
4
|
+
data.tar.gz: 245f8cbf0681948632cff7257d0413b72be644a09fd5a152b065d73f1dfaa7e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2894b1420f53155ab09abcc3e299c48ba0ebb6811fefd919f6d59e63eed8df771d0c91d10a3e6c4f6112376479d1daf6709b783ed0a817db32e4ac8803bcea5a
|
7
|
+
data.tar.gz: 2ded4148d9363f9e4ea8fd4b10c52aaff51548ec70aa037d29e1af683deb939421c66c54b1013e6959b8447af5a0d2c8bdcbdb4a3a3e3f9c0ac3069ae37a9719
|
data/lib/atk/yaml_info_parser.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
#!/usr/bin/ruby
|
2
1
|
require "yaml"
|
3
2
|
require_relative './cmd'
|
4
3
|
require_relative './os'
|
@@ -234,7 +233,7 @@ class Info
|
|
234
233
|
# TODO: maybe change this to be optional in the future and have default settings
|
235
234
|
raise "\n\nThere is no (advanced_setup): key in the (project) of the info.yaml\n(so ATK is unable to parse the project settings)"
|
236
235
|
end
|
237
|
-
Info.parse_advanced_setup(@@
|
236
|
+
Info.parse_advanced_setup(@@settings, @@settings)
|
238
237
|
@@dependencies = @@settings['(dependencies)']
|
239
238
|
@@project_commands = @@settings['(project_commands)']
|
240
239
|
@@structures = @@settings['(structures)']
|
@@ -246,8 +245,15 @@ class Info
|
|
246
245
|
# TODO: make this deeply recursive
|
247
246
|
for each_key, each_value in @@paths
|
248
247
|
if each_value.is_a?(String)
|
249
|
-
#
|
250
|
-
|
248
|
+
# remove the ./ if it exists
|
249
|
+
if each_value =~ /\A\.\//
|
250
|
+
each_value = each_value[2..-1]
|
251
|
+
end
|
252
|
+
# Dont add a source_path if its an absolute path
|
253
|
+
if not each_value.size > 0 && each_value[0] == '/'
|
254
|
+
# convert the path into an absolute path
|
255
|
+
@@paths[each_key] = Info.source_path / each_value
|
256
|
+
end
|
251
257
|
end
|
252
258
|
end
|
253
259
|
end
|
data/lib/atk_toolbox/version.rb
CHANGED