haml-edge 2.3.74 → 2.3.75

Sign up to get free protection for your applications and to get access to all the features.
data/EDGE_GEM_VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.74
1
+ 2.3.75
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.74
1
+ 2.3.75
@@ -7,22 +7,15 @@ unless defined?(Sass::RAILS_LOADED)
7
7
  :always_check => RAILS_ENV != "production",
8
8
  :full_exception => RAILS_ENV != "production")
9
9
 
10
- check = lambda do
11
- if !Sass::Plugin.checked_for_updates ||
12
- Sass::Plugin.options[:always_update] || Sass::Plugin.options[:always_check]
13
- Sass::Plugin.update_stylesheets
14
- end
15
- end
16
-
17
10
  if defined?(ActionDispatch::Callbacks.to_prepare)
18
11
  # Rails >= 3.0.0
19
- ActionDispatch::Callbacks.to_prepare(&check)
12
+ ActionDispatch::Callbacks.to_prepare {Sass::Plugin.check_for_updates}
20
13
  else
21
14
  module ActionController
22
15
  class Base
23
16
  alias_method :sass_old_process, :process
24
17
  def process(*args)
25
- check.call
18
+ Sass::Plugin.check_for_updates
26
19
  sass_old_process(*args)
27
20
  end
28
21
  end
data/lib/sass/plugin.rb CHANGED
@@ -50,6 +50,17 @@ module Sass
50
50
  opts
51
51
  end
52
52
 
53
+ # Same as \{#update\_stylesheets}, but respects \{#checked\_for\_updates}
54
+ # and the {file:SASS_REFERENCE.md#always_update-option `:always_update`}
55
+ # and {file:SASS_REFERENCE.md#always_check-option `:always_check`} options.
56
+ #
57
+ # @see #update_stylesheets
58
+ def check_for_updates
59
+ return unless !Sass::Plugin.checked_for_updates ||
60
+ Sass::Plugin.options[:always_update] || Sass::Plugin.options[:always_check]
61
+ update_stylesheets
62
+ end
63
+
53
64
  # Updates out-of-date stylesheets.
54
65
  #
55
66
  # Checks each Sass file in {file:SASS_REFERENCE.md#template_location-option `:template_location`}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml-edge
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.74
4
+ version: 2.3.75
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-11-05 00:00:00 -05:00
13
+ date: 2009-11-06 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency