nyx 1.3.0 → 1.3.1
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.
- data/lib/nyx.rb +21 -5
- metadata +1 -1
data/lib/nyx.rb
CHANGED
@@ -12,7 +12,7 @@ require 'fssm'
|
|
12
12
|
|
13
13
|
class Nyx
|
14
14
|
|
15
|
-
VERSION = '1.3.
|
15
|
+
VERSION = '1.3.1'
|
16
16
|
|
17
17
|
def compile_scripts(args = nil)
|
18
18
|
|
@@ -89,10 +89,18 @@ class Nyx
|
|
89
89
|
files = files.find_all do |item|
|
90
90
|
item !~ /(^[a-z]+:\/\/|^\/\/).*$/
|
91
91
|
end#find_all
|
92
|
-
|
92
|
+
cleaned_files = []
|
93
|
+
files.each do |key, value|
|
94
|
+
if value.kind_of? Array
|
95
|
+
cleaned_files.push value[1]
|
96
|
+
else # not array
|
97
|
+
cleaned_files.push value
|
98
|
+
end#if
|
99
|
+
end#each
|
100
|
+
cleaned_files.collect! do |file|
|
93
101
|
'src/'+file+'.js';
|
94
102
|
end#collect
|
95
|
-
conf['targeted-mapping'][key] =
|
103
|
+
conf['targeted-mapping'][key] = cleaned_files
|
96
104
|
end#each
|
97
105
|
|
98
106
|
# convert to paths
|
@@ -100,10 +108,18 @@ class Nyx
|
|
100
108
|
files = files.find_all do |item|
|
101
109
|
item !~ /(^[a-z]+:\/\/|^\/\/).*$/
|
102
110
|
end#find_all
|
103
|
-
|
111
|
+
cleaned_files = []
|
112
|
+
files.each do |key, value|
|
113
|
+
if value.kind_of? Array
|
114
|
+
cleaned_files.push value[1]
|
115
|
+
else # not array
|
116
|
+
cleaned_files.push value
|
117
|
+
end#if
|
118
|
+
end#each
|
119
|
+
cleaned_files.collect! do |file|
|
104
120
|
'src/'+file+'.js';
|
105
121
|
end#collect
|
106
|
-
conf['complete-mapping'] =
|
122
|
+
conf['complete-mapping'] = cleaned_files
|
107
123
|
|
108
124
|
return conf
|
109
125
|
end#def
|