rugular 0.9.14 → 0.9.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rugular/tasks/build.rb +6 -10
- data/lib/rugular/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd776461bd3a6e2dba08148d046abf1654ebb74f
|
4
|
+
data.tar.gz: 73fb52ba97cac652bf4d125607b0cdceaf88ed3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 048ea9444d47ddb1c4f4ef69c2119951866f0882254ce30e82da1db5b453d854416050ea8c55f1b86f9608b2a788e375492c5403f14d8cc08e2e3443662c994c
|
7
|
+
data.tar.gz: 9da324787f7490f21f5f9d06ae6c595e61a0174ff784bec70e7b93a90bafe4785f110c5ab57e1ee4ffbf276cf88897666919e5aa3f71c909281257602006140b
|
data/lib/rugular/tasks/build.rb
CHANGED
@@ -25,28 +25,24 @@ module Rugular
|
|
25
25
|
|
26
26
|
def compile_bower_javascript
|
27
27
|
File.open('dist/vendor.js', 'w') do |file|
|
28
|
-
file.write(
|
28
|
+
file.write(bower_javascript)
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|
32
32
|
def create_application_js_file
|
33
33
|
File.open('dist/application.js', 'w') do |file|
|
34
34
|
file.write(
|
35
|
-
|
35
|
+
::Rugular::JavascriptFiles.ordered_array.map do |javascript_file|
|
36
|
+
text = File.read(javascript_file).gsub('templateUrl', 'template')
|
36
37
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
CoffeeScript.compile(text)
|
41
|
-
end.join
|
42
|
-
|
43
|
-
)
|
38
|
+
CoffeeScript.compile(text)
|
39
|
+
end.join
|
44
40
|
)
|
45
41
|
end
|
46
42
|
end
|
47
43
|
|
48
44
|
def inline_template_url_files
|
49
|
-
(Dir.glob(
|
45
|
+
(Dir.glob('**/*.haml') - ['src/index.haml']).each do |haml_file|
|
50
46
|
haml_html = ::Haml::Engine.new(File.read(haml_file), {}).render
|
51
47
|
|
52
48
|
html = haml_html.tr("\n", '').gsub("'", "\'").gsub('"', '\"')
|
data/lib/rugular/version.rb
CHANGED