ymdp 0.7.0 → 0.7.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/VERSION +1 -1
- data/lib/ymdp/view/application_view.rb +5 -4
- data/ymdp.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.1
|
@@ -257,11 +257,12 @@ module YMDP
|
|
257
257
|
#
|
258
258
|
default_javascripts = ['application', 'params', 'browser', 'data', 'ajax', 'user', 'init', 'reporter', 'debug', 'tag_helper', 'launcher', 'logger', 'i18n', 'flash', 'ab_testing', 'education', 'authorization']
|
259
259
|
|
260
|
-
filenames = default_javascripts
|
260
|
+
filenames = filter_filenames(default_javascripts, options)
|
261
|
+
|
262
|
+
filenames = filenames.map do |filename|
|
261
263
|
File.join(File.dirname(__FILE__), "..", "javascripts", library_path, "#{filename}.js")
|
262
264
|
end
|
263
265
|
|
264
|
-
filenames = filter_filenames(filenames, options)
|
265
266
|
output = combine_files(filenames)
|
266
267
|
write_javascript_asset(output, "defaults")
|
267
268
|
end
|
@@ -269,12 +270,12 @@ module YMDP
|
|
269
270
|
def filter_filenames(filenames, options={})
|
270
271
|
if options[:only]
|
271
272
|
filenames = filenames.select do |filename|
|
272
|
-
filename
|
273
|
+
options[:only].include?(filename)
|
273
274
|
end
|
274
275
|
end
|
275
276
|
if options[:except]
|
276
277
|
filenames = filenames.reject do |filename|
|
277
|
-
filename
|
278
|
+
options[:except].include?(filename)
|
278
279
|
end
|
279
280
|
end
|
280
281
|
filenames
|
data/ymdp.gemspec
CHANGED
metadata
CHANGED