xqcoretools 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/xqcoretools +5 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c013c62be4f76b2ec5f0bbab18626acb1cef2ac9
|
4
|
+
data.tar.gz: 1ccc7a33614c241db52dffe61af341670b342a1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72ab98bf2918a1dcdf4c58a024c32bcf4ed80133c460d7654a25c7abe1932f65658e315716d0516b61e31690e861b32a156e60c44be41ba69bfbc33970fa8ddc
|
7
|
+
data.tar.gz: 551ad3489c81ddd44aa658ee8f51978b129e731f9ce0884e4f35b9edca38b8ad3f8ad125fcdf0a14fa6520b21c5e689a879e700bcc776ba70b245ac0cb34325b
|
data/bin/xqcoretools
CHANGED
@@ -157,11 +157,14 @@ class XQCoreTools < Thor
|
|
157
157
|
|
158
158
|
for node in nodes do
|
159
159
|
attribute = nil
|
160
|
+
attributeName = nil
|
160
161
|
|
161
162
|
if node.has_attribute?('src')
|
162
163
|
attribute = node.get_attribute('src')
|
164
|
+
attributeName = 'src'
|
163
165
|
elsif node.has_attribute?('href')
|
164
166
|
attribute = node.get_attribute('href')
|
167
|
+
attributeName = 'href'
|
165
168
|
end
|
166
169
|
|
167
170
|
if attribute != nil
|
@@ -178,14 +181,14 @@ class XQCoreTools < Thor
|
|
178
181
|
runtimePath = "#{path}/#{runtimeFolder}"
|
179
182
|
|
180
183
|
url = "local/#{platform.downcase}/#{scriptVersion}/#{runtimeFile}"
|
181
|
-
|
184
|
+
|
182
185
|
if runtimePath == 'latest'
|
183
186
|
downloadCache.cacheFile(url)
|
184
187
|
end
|
185
188
|
|
186
189
|
downloadCache.saveFile(url, runtimePath)
|
187
190
|
|
188
|
-
node.set_attribute(
|
191
|
+
node.set_attribute(attributeName, runtimeFolder)
|
189
192
|
|
190
193
|
if scriptName == 'xqcore' && scriptExtension == 'js'
|
191
194
|
XQCoreTools::compileTemplates(platform, subPath, document, scriptVersion, downloadCache, node)
|