middleman 2.0.0.rc91 → 2.0.0.rc92

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,16 +38,28 @@ module Middleman::CoreExtensions::Compass
38
38
  config.fonts_dir = File.join(views_root, app.fonts_dir)
39
39
  config.images_dir = File.join(views_root, app.images_dir)
40
40
 
41
- if app.respond_to? :http_images_path
42
- config.http_images_path = app.http_images_path
41
+ config.http_images_path = if app.respond_to? :http_images_path
42
+ app.http_images_path
43
+ else
44
+ File.join(app.http_prefix || "/", app.images_dir)
43
45
  end
44
46
 
45
- if app.respond_to? :http_css_path
46
- config.http_stylesheets_path = app.http_css_path
47
+ config.http_stylesheets_path = if app.respond_to? :http_css_path
48
+ app.http_css_path
49
+ else
50
+ File.join(app.http_prefix || "/", app.css_dir)
47
51
  end
48
52
 
49
- if app.respond_to? :http_js_path
50
- config.http_javascripts_path = app.http_js_path
53
+ config.http_javascripts_path = if app.respond_to? :http_js_path
54
+ app.http_js_path
55
+ else
56
+ File.join(app.http_prefix || "/", app.js_dir)
57
+ end
58
+
59
+ config.http_javascripts_path = if app.respond_to? :http_fonts_path
60
+ app.http_js_path
61
+ else
62
+ File.join(app.http_prefix || "/", app.fonts_dir)
51
63
  end
52
64
 
53
65
  config.asset_cache_buster :none
@@ -1,7 +1,9 @@
1
1
  module Middleman::Features::RelativeAssets
2
2
  class << self
3
3
  def registered(app)
4
- ::Compass.configuration.relative_assets = true
4
+ app.compass_config do |config|
5
+ config.relative_assets = true
6
+ end
5
7
 
6
8
  app.register_asset_handler :relative_assets do |path, prefix, request|
7
9
  begin
@@ -1,3 +1,3 @@
1
1
  module Middleman
2
- VERSION = "2.0.0.rc91"
2
+ VERSION = "2.0.0.rc92"
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15424227
4
+ hash: 15424237
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
9
  - 0
10
10
  - rc
11
- - 91
12
- version: 2.0.0.rc91
11
+ - 92
12
+ version: 2.0.0.rc92
13
13
  platform: ruby
14
14
  authors:
15
15
  - Thomas Reynolds