haml-edge 2.1.30 → 2.1.32

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.1.30
1
+ 2.1.32
data/Rakefile CHANGED
@@ -136,18 +136,16 @@ begin
136
136
  list.exclude('lib/haml/template/*.rb')
137
137
  list.exclude('lib/haml/helpers/action_view_mods.rb')
138
138
  end.to_a
139
+ t.options << '--use-cache' if Rake.application.top_level_tasks.include?('redoc')
139
140
  t.options += FileList.new('yard/*.rb').to_a.map {|f| ['-e', f]}.flatten
140
- t.options << '--files' << FileList.new('*') do |list|
141
- list.exclude(/(^|[^.a-z])[a-z]+/)
142
- list.exclude('README.md')
143
- list.exclude('REVISION')
144
- list.exclude('TODO')
145
- end.to_a.join(',')
141
+ files = FileList.new('doc-src/*').to_a.sort_by {|s| s.size} + %w[MIT-LICENSE VERSION]
142
+ t.options << '--files' << files.join(',')
146
143
  end
147
144
  Rake::Task['yardoc'].instance_variable_set('@comment', nil)
148
145
 
149
146
  desc "Generate Documentation"
150
147
  task :doc => :yardoc
148
+ task :redoc => :yardoc
151
149
  rescue LoadError
152
150
  desc "Generate Documentation"
153
151
  task :doc => :rdoc
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.30
1
+ 2.1.32
data/lib/haml/engine.rb CHANGED
@@ -18,7 +18,7 @@ module Haml
18
18
  include Precompiler
19
19
 
20
20
  # The options hash.
21
- # See [the Haml options documentation](../Haml.html#haml_options).
21
+ # See {file:HAML_REFERENCE.md#haml_options the Haml options documentation}.
22
22
  #
23
23
  # @return [Hash<Symbol, Object>]
24
24
  attr_accessor :options
@@ -59,7 +59,7 @@ module Haml
59
59
  #
60
60
  # @param template [String] The Haml template
61
61
  # @param options [Hash<Symbol, Object>] An options hash;
62
- # see [the Haml options documentation](../Haml.html#haml_options)
62
+ # see {file:HAML_REFERENCE.md#haml_options the Haml options documentation}
63
63
  # @raise [Haml::Error] if there's a Haml syntax error in the template
64
64
  def initialize(template, options = {})
65
65
  @options = {
@@ -267,7 +267,7 @@ END
267
267
  # All of the values here are such that when `#inspect` is called on the hash,
268
268
  # it can be `Kernel#eval`ed to get the same result back.
269
269
  #
270
- # See [the Haml options documentation](../Haml.html#haml_options).
270
+ # See {file:HAML_REFERENCE.md#haml_options the Haml options documentation}.
271
271
  #
272
272
  # @return [Hash<Symbol, Object>] The options hash
273
273
  def options_for_buffer
data/lib/haml/filters.rb CHANGED
@@ -224,7 +224,7 @@ END
224
224
  # Parses the filtered text with the normal Ruby interpreter.
225
225
  # All output sent to `$stdout`, such as with `puts`,
226
226
  # is output into the Haml document.
227
- # Not available if the [`:suppress_eval`](../Haml.html#suppress-eval-option) option is set to true.
227
+ # Not available if the {file:HAML_REFERENCE.md#suppress_eval-option `:suppress_eval`} option is set to true.
228
228
  # The Ruby code is evaluated in the same context as the Haml template.
229
229
  module Ruby
230
230
  include Base
@@ -272,7 +272,7 @@ END
272
272
  end
273
273
 
274
274
  # Parses the filtered text with ERB, like an RHTML template.
275
- # Not available if the [`:suppress_eval`](../Haml.html#suppress-eval-option) option is set to true.
275
+ # Not available if the {file:HAML_REFERENCE.md#suppress_eval-option `:suppress_eval`} option is set to true.
276
276
  # Embedded Ruby code is evaluated in the same context as the Haml template.
277
277
  module ERB
278
278
  include Base
data/lib/haml/template.rb CHANGED
@@ -7,7 +7,7 @@ module Haml
7
7
 
8
8
  @options = {}
9
9
  # The options hash for Haml when used within Rails.
10
- # See [the Haml options documentation](../Haml.html#haml_options).
10
+ # See {file:HAML_REFERENCE.md#haml_options the Haml options documentation}.
11
11
  #
12
12
  # @return [Hash<Symbol, Object>]
13
13
  attr_accessor :options