atk_toolbox 0.0.100 → 0.0.101
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/atk_info.rb +5 -5
- 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: 4b02d62c70364da06bb8e65de4072be24de339fa24ae50e9c169652256af9b18
|
|
4
|
+
data.tar.gz: 9bbbeba98551e7495e40929fb92c001a1de67d36291ead2d8bffef34042b6809
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fcb674d50171ca795d7d21ed68835982f6171fe9605e7f9ceec6d608be97845a1a2e1ab73e111c23baaf9f78232a5b13ab02382f1e6855d14730d6a48b723cbb
|
|
7
|
+
data.tar.gz: 97002a5a7c6583b8a9561939f2ac2c7894d234509b2acbaa5fd36d1c3b23e81df5f5e2f96498c49796820e5299b156768a94f3f6bb051b543bc13ed8e7e7b332
|
data/lib/atk/atk_info.rb
CHANGED
|
@@ -107,19 +107,19 @@ module ATK
|
|
|
107
107
|
# TODO: turn this into a check for is_core_repo?(package_name)
|
|
108
108
|
# path_to_core_listing = ATK.paths[:core_yaml]
|
|
109
109
|
# core = YAML.load_file(path_to_core_listing)
|
|
110
|
-
# if core[
|
|
110
|
+
# if core[package_name] == nil
|
|
111
111
|
# puts "I don't see that package in the core, let me make sure I have the latest info"
|
|
112
112
|
# download("https://raw.githubusercontent.com/aggie-tool-kit/atk/master/interface/core.yaml", as: path_to_core_listing)
|
|
113
113
|
# core = YAML.load_file(path_to_core_listing)
|
|
114
114
|
# end
|
|
115
|
-
# if core[
|
|
116
|
-
# repo_url = core[
|
|
115
|
+
# if core[package_name] != nil
|
|
116
|
+
# repo_url = core[package_name]["source"]
|
|
117
117
|
# else
|
|
118
118
|
raise "That package doesn't seem to be a core package"
|
|
119
119
|
# end
|
|
120
120
|
# if it does have a slash, and isn't a full url, then assume its a github repo
|
|
121
|
-
elsif not
|
|
122
|
-
repo_url = "https://github.com/"+
|
|
121
|
+
elsif not package_name.start_with?(/https?:\/\//)
|
|
122
|
+
repo_url = "https://github.com/"+package_name
|
|
123
123
|
else
|
|
124
124
|
return repo_url
|
|
125
125
|
end
|
data/lib/atk_toolbox/version.rb
CHANGED