xqcoretools 0.2.3 → 0.2.4

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/xqcoretools +5 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 563ac238e963d91ece3579ebe5a82f459bcb3108
4
- data.tar.gz: d90d60ac2feb44b41be6531b956f2948866e919b
3
+ metadata.gz: c013c62be4f76b2ec5f0bbab18626acb1cef2ac9
4
+ data.tar.gz: 1ccc7a33614c241db52dffe61af341670b342a1a
5
5
  SHA512:
6
- metadata.gz: 6df90c48d92eec0a41a5dc984dcc6bda9975ff6f1ffa07e961af7d6f5c74f1b1f35dc5e5345ecb8522e185623eea1edec763910759217cbe3f37d17ce26599d4
7
- data.tar.gz: a5be2c7767038358337727bcb5a3c27c14b4ae934e8df6aaa3b60919207366cacd1cff96ad822bccb2bfddbc172a250934c5549298d81294be4c6db2e17bd5a1
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('src', runtimeFolder)
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xqcoretools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Wong