ggake 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ggake/haml.rb +8 -1
- data/lib/ggake/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7196f8dcf366c4cda31a660d331403e8fff704a8
|
4
|
+
data.tar.gz: 1732303428a82dd687759350ecb051f4245763f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18e9067e0f822713313885879471eec28c94e6877d299c62d6ec651cd198f09e30eeebb99cf61e7896b5991c3f6696fb49537039567d408baaa51eaf5e4551e7
|
7
|
+
data.tar.gz: ef22ba143c9609ff91da6fb2861a3ea7b4aa1555ad291e2b0849128c1a3203d10a475b30306646c7a918321cb5ccf7b679ecf3ba03ec09c6354678c8cc0dd814
|
data/lib/ggake/haml.rb
CHANGED
@@ -2,10 +2,17 @@ module Rake
|
|
2
2
|
module DSL
|
3
3
|
|
4
4
|
def haml_template(tmpl, options)
|
5
|
+
extras = ''
|
6
|
+
lib_dir = options[:lib]
|
7
|
+
if lib_dir
|
8
|
+
libraries = Dir["#{lib_dir}/*.rb"].collect { |l| File.basename(l, '*.rb') }
|
9
|
+
extras << "-I#{lib_dir} "
|
10
|
+
extras << libraries.collect { |l| "-r#{l}" }.join(' ')
|
11
|
+
end
|
5
12
|
File.join(options[:output], File.basename(tmpl)).ext('html').tap do |html_file|
|
6
13
|
directory options[:output]
|
7
14
|
file html_file => [options[:output], tmpl] do
|
8
|
-
sh "haml #{tmpl} #{html_file}"
|
15
|
+
sh "haml -t ugly #{extras} #{tmpl} #{html_file}"
|
9
16
|
end
|
10
17
|
end
|
11
18
|
end
|
data/lib/ggake/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ggake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Giles Alexander
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|