raykit 0.0.515 → 0.0.516
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/raykit/wix.rb +3 -3
- 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: 76635355baf466b8550d3d45d0d5ba97c69e16e4f3a0843977a68fd41c4231d7
|
4
|
+
data.tar.gz: b8c857270cd378060206185dfd02a4eb0a8acff6a8f36dca9bda24f27a4fe052
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17603d74c8594cd16957e1c0b120d11f2d77cdcc5340c8e999f831a781503bf95b0e6dc8808cc43a5cbf8c529146d22a66ee0b55139369fd5a43cd2c28e766c3
|
7
|
+
data.tar.gz: cc5b7a80bf83c8494e63e0d4bf6dccd17ed62afc2a1d18c4f242d12107d41afa727dae9f855267263817a91ad9882bcd6cd81376690b66fc49c7372d0e0dc281
|
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,14 +30,14 @@ 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
38
|
puts "file: #{f}"
|
39
39
|
index += 1
|
40
|
-
component =
|
40
|
+
component = get_indexed_file_component(f, index)
|
41
41
|
puts "component: #{component}"
|
42
42
|
components.push(component)
|
43
43
|
}
|