raykit 0.0.515 → 0.0.517
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/raykit/wix.rb +3 -5
- 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: 3ef66adb0adfbce5a6b49b18fffc821da8d013073ce747c0397229e0d93271a4
|
4
|
+
data.tar.gz: 29ee3573cb2d23909dcbe69300d3ed281d936ff08b3ce51a178e16ea4f48884a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ee5b659ba9e35aad066f938bb1278691cad6e72a2fd1287563b46b18962181dc0d73007372db4ba3a46f200c978372ed8dea093a7392ca4a07da77fe5806d0b
|
7
|
+
data.tar.gz: 2e78d53b596bd6ca20f34fa6b6ecfedca462e94e2a499a32724f310979b6d8ebfa092ccfcdd26dad478a8c2f30257b27aa28811af6d3ddaf4d4a8a24198a4a15
|
data/lib/raykit/wix.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
module Raykit
|
4
4
|
class Wix
|
5
|
-
def self.
|
5
|
+
def self.harvest_directory_elements(directory)
|
6
6
|
get_nested_directory_element("", directory)
|
7
7
|
end
|
8
8
|
def self.get_nested_directory_element(id_prefix, directory)
|
@@ -30,15 +30,13 @@ module Raykit
|
|
30
30
|
# <Component Id="IndexHtmlComponent" Directory="WWWDIR" Guid="*">
|
31
31
|
# <File Id="IndexHtmlFile" Source="path\to\index.html" KeyPath="yes"/>
|
32
32
|
# </Component>
|
33
|
-
def self.
|
33
|
+
def self.harvest_file_components(directory)
|
34
34
|
components = Array::new
|
35
35
|
Dir.chdir(directory) do
|
36
36
|
index = 0
|
37
37
|
Dir.glob("**/*").reject { |f| File.directory? f }.each { |f|
|
38
|
-
puts "file: #{f}"
|
39
38
|
index += 1
|
40
|
-
component =
|
41
|
-
puts "component: #{component}"
|
39
|
+
component = get_indexed_file_component(f, index)
|
42
40
|
components.push(component)
|
43
41
|
}
|
44
42
|
components
|