atk_toolbox 0.0.66 → 0.0.67

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: 5bd08248aad32431741ee6adc068ca7b3cdb9e8f2ac6fe5752f6f50c1865a392
4
- data.tar.gz: 78bac6071a85630e5205e7efd2ea117f28ce829ecb8a49ebaa44f246d876bbed
3
+ metadata.gz: 678de1f6ab947c3db0fb731c98d25ce7754df489bf5ddcc46e776552d6b7795c
4
+ data.tar.gz: 245f8cbf0681948632cff7257d0413b72be644a09fd5a152b065d73f1dfaa7e6
5
5
  SHA512:
6
- metadata.gz: 923ef501b8a8e9f9a30e2276922409d95416d3db060d4248fd296567f9af2c01eafb91b3772e66e978124dbb35627ce5e2a4dcadcac7525c35af50840d76fa73
7
- data.tar.gz: a256ca01f66a7881f50a0a4425ce587f58bdb669301014c3f6fdeb7b2dd00a62159ec52b8905146cde0ba3b496a434261a41b0698667d898b803d0736ff368d4
6
+ metadata.gz: 2894b1420f53155ab09abcc3e299c48ba0ebb6811fefd919f6d59e63eed8df771d0c91d10a3e6c4f6112376479d1daf6709b783ed0a817db32e4ac8803bcea5a
7
+ data.tar.gz: 2ded4148d9363f9e4ea8fd4b10c52aaff51548ec70aa037d29e1af683deb939421c66c54b1013e6959b8447af5a0d2c8bdcbdb4a3a3e3f9c0ac3069ae37a9719
@@ -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(@@project, @@settings)
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
- # convert the path into an absolute path
250
- @@paths[each_key] = Info.source_path / each_value
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
@@ -1,3 +1,3 @@
1
1
  module AtkToolbox
2
- VERSION = '0.0.66'
2
+ VERSION = '0.0.67'
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.66
4
+ version: 0.0.67
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Hykin