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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: db02d8a4627d420488456494dc5550b8c48b1f16
4
- data.tar.gz: 07c60daea38d74ee92b3f29b5cb6fe7b8cd03100
3
+ metadata.gz: 7196f8dcf366c4cda31a660d331403e8fff704a8
4
+ data.tar.gz: 1732303428a82dd687759350ecb051f4245763f5
5
5
  SHA512:
6
- metadata.gz: cc30b507a84806db1c937a0236646d8d175d9850b55633da1fb933ac24da82e8728e1c7ae0775965d7010c15307ad2b2631f278b768d69d0ec6c41327ca206e0
7
- data.tar.gz: d2bb694eea2737e2e3c0bc3e25c2e9cb2b3f3c1a01fac2a32451d7a2ece232adc01cf6f7b67eeca9a198b3746fc66b025e4aa9d1cdf4fbb8e169a613471d59f4
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
@@ -1,3 +1,3 @@
1
1
  module Ggake
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  end
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.6.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-04 00:00:00.000000000 Z
11
+ date: 2014-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake