rugular 0.9.11 → 0.9.12
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 +3 -26
- 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: c50b180e36f8c0a4782687308844348449b3295e
|
4
|
+
data.tar.gz: f6798da925f31d3f331816275b4cf588ac60b50d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 761a09ea3103c1948f7c76e1b9235eb28c1195ac3616b1cd2ddf78712dab057908745eaf122d6eeb4c33a3edb6f973919847514f1f67f3fb5e1ea94238c7b70f
|
7
|
+
data.tar.gz: b380a6d74dfec31228b8315b8e62e32005d8c97ab8ed68628078a56dc7334026e166791970ac83f9f16ce9e4acbadcd47f74434f3c16c6a00d701bf759a784a9
|
data/lib/rugular/tasks/build.rb
CHANGED
@@ -25,13 +25,7 @@ module Rugular
|
|
25
25
|
|
26
26
|
def compile_bower_javascript
|
27
27
|
File.open('dist/vendor.js', 'w') do |file|
|
28
|
-
file.write(Uglifier.compile(
|
29
|
-
end
|
30
|
-
end
|
31
|
-
|
32
|
-
def compile_bower_stylesheets
|
33
|
-
File.open('dist/vendor.css', 'w') do |file|
|
34
|
-
file.write bower_css
|
28
|
+
file.write(Uglifier.compile(bower_javascript))
|
35
29
|
end
|
36
30
|
end
|
37
31
|
|
@@ -94,31 +88,14 @@ module Rugular
|
|
94
88
|
|
95
89
|
private
|
96
90
|
|
97
|
-
def bower_and_vendor_javascript
|
98
|
-
bower_javascript + vendor_javascript
|
99
|
-
end
|
100
|
-
|
101
91
|
def bower_javascript
|
102
|
-
bower_yaml.fetch('
|
92
|
+
bower_yaml.fetch('js').map do |filename|
|
103
93
|
File.read('bower_components/' + filename)
|
104
94
|
end.join
|
105
95
|
end
|
106
96
|
|
107
|
-
def vendor_javascript
|
108
|
-
bower_yaml.fetch('vendor').fetch('coffee').map do |filename|
|
109
|
-
CoffeeScript.compile(File.read('vendor/' + filename))
|
110
|
-
end.join
|
111
|
-
end
|
112
|
-
|
113
|
-
def bower_css
|
114
|
-
bower_yaml.fetch('bower_components').fetch('css').map do |filename|
|
115
|
-
File.read('bower_components/' + filename)
|
116
|
-
end.join
|
117
|
-
end
|
118
|
-
|
119
|
-
|
120
97
|
def bower_yaml
|
121
|
-
YAML.load(File.read('
|
98
|
+
YAML.load(File.read('bower_components.yaml'))
|
122
99
|
end
|
123
100
|
|
124
101
|
def lib_directory
|
data/lib/rugular/version.rb
CHANGED