hydeweb 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
data/HISTORY.md CHANGED
@@ -1,3 +1,8 @@
1
+ v0.1.9
2
+ ------
3
+
4
+ - Hotfix: tilt_build_options should work even if there was no tilt_options specified.
5
+
1
6
  v0.1.8
2
7
  ------
3
8
 
data/lib/hyde/config.rb CHANGED
@@ -22,8 +22,8 @@ class Config < OpenStruct
22
22
  # @example tilt_options('index.haml') # { :escape_html => ... }
23
23
  def tilt_options_for(file, options)
24
24
  ext = file.split('.').last.downcase
25
- opts = tilt_options(ext)
26
- opts = opts.merge(tilt_options(ext, :tilt_build_options)) if options[:build]
25
+ opts = tilt_options(ext) || Hash.new
26
+ opts = opts.merge(tilt_options(ext, :tilt_build_options) || Hash.new) if options[:build]
27
27
  opts
28
28
  end
29
29
 
data/lib/hyde.rb CHANGED
@@ -15,7 +15,7 @@ require 'shake'
15
15
  Tilt.mappings['html'] = Tilt.mappings['erb']
16
16
 
17
17
  class Hyde
18
- VERSION = "0.1.8"
18
+ VERSION = "0.1.9"
19
19
  PREFIX = File.expand_path('../', __FILE__)
20
20
 
21
21
  Error = Class.new(StandardError)
File without changes
@@ -0,0 +1,2 @@
1
+ div a {
2
+ color: red; }
@@ -8,6 +8,8 @@ ignore:
8
8
  - **/_*.scss
9
9
 
10
10
  tilt_options:
11
+ haml:
12
+ x: 2
11
13
  scss:
12
14
  :line_numbers: true
13
15
 
File without changes
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: hydeweb
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.8
5
+ version: 0.1.9
6
6
  platform: ruby
7
7
  authors:
8
8
  - Rico Sta. Cruz
@@ -93,7 +93,10 @@ files:
93
93
  - lib/hyde/server.rb
94
94
  - lib/hyde/set.rb
95
95
  - lib/hyde.rb
96
+ - test/fixture/build_options/control/page.html
97
+ - test/fixture/build_options/control/style.css
96
98
  - test/fixture/build_options/hyde.conf
99
+ - test/fixture/build_options/site/page.haml
97
100
  - test/fixture/build_options/site/style.scss
98
101
  - test/fixture/extensions/control/index.html
99
102
  - test/fixture/extensions/extensions/a/a.rb