haml 4.0.0.rc.1 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of haml might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  # Haml Changelog
2
2
 
3
- ## 4.0.0 (Unreleased)
3
+ ## 4.0.0
4
4
 
5
5
  * The Haml exectutable now accepts an `--autoclose` option. You can now
6
6
  specify a list of tags that should be autoclosed
@@ -64,7 +64,7 @@
64
64
  with a helper method that makes adding support for other Tilt-based template
65
65
  engines trivial.
66
66
 
67
- As of 3.2, Haml will also ship with a "haml-contrib" gem that includes useful
67
+ As of 4.0, Haml will also ship with a "haml-contrib" gem that includes useful
68
68
  but less-frequently used filters and helpers. This includes several additional
69
69
  filters such as Nokogiri, Yajl, Markaby, and others.
70
70
 
@@ -105,10 +105,26 @@
105
105
  * Add command-line option to suppress script evaluation.
106
106
 
107
107
  * It's now possible to use Rails's asset helpers inside the Sass and SCSS
108
- filters.
108
+ filters. Note that to do so, you must make sure sass-rails is loaded in
109
+ production, usually by moving it out of the assets gem group.
109
110
 
110
111
  * The Haml project now uses [semantic versioning](http://semver.org/).
111
112
 
113
+ ## 3.2.0
114
+
115
+ The Haml 3.2 series was released only as far as 3.2.0.rc.4, but then was
116
+ renamed to Haml 4.0 when the project adopted semantic versioning.
117
+
118
+ ## 3.1.8
119
+
120
+ * Fix for line numbers reported from exceptions in nested blocks
121
+ (thanks to Grant Hutchins & Sabrina Staedt).
122
+
123
+ ## 3.1.7
124
+
125
+ * Fix for compatibility with Sass 3.2.x.
126
+ (thanks [Michael Westbom](https://github.com/totallymike)).
127
+
112
128
  ## 3.1.6
113
129
 
114
130
  * In indented mode, don't reindent buffers that contain preserved tags, and
data/README.md CHANGED
@@ -129,20 +129,23 @@ on a specific area:
129
129
  Haml supports Ruby 1.8.7 and higher, so please make sure your changes run on
130
130
  both 1.9 and 1.8.
131
131
 
132
- ## Authors
132
+ ## Team
133
+
134
+ ### Current Maintainers
135
+
136
+ * [Norman Clarke](http://github.com/norman)
137
+ * [Matt Wildig](http://github.com/mattwildig)
138
+ * [Akira Matsuda](https://github.com/amatsuda)
139
+
140
+ ### Alumni
133
141
 
134
142
  Haml was created by [Hampton Catlin](http://hamptoncatlin.com), the author of
135
- the original implementation. However, Hampton doesn't even know his way around
136
- the code anymore and now just occasionally consults on the language issues.
143
+ the original implementation. Hampton is no longer involved in day-to-day coding,
144
+ but still consults on language issues.
137
145
 
138
146
  [Nathan Weizenbaum](http://nex-3.com) was for many years the primary developer
139
- and architect of the "modern" Ruby implementation of Haml. His hard work
140
- endlessly answering forum posts, fixing bugs, refactoring, finding speed
141
- improvements, writing documentation, and implementing new features is what has
142
- kept the project alive.
147
+ and architect of the "modern" Ruby implementation of Haml.
143
148
 
144
- [Norman Clarke](http://github.com/norman), the author of Haml Spec and the Haml
145
- implementation in Lua, took over as maintainer in April 2012.
146
149
 
147
150
  ## License
148
151
 
@@ -150,7 +153,7 @@ Some of Nathan's work on Haml was supported by Unspace Interactive.
150
153
 
151
154
  Beyond that, the implementation is licensed under the MIT License.
152
155
 
153
- Copyright (c) 2006-2009 Hampton Catlin and Nathan Weizenbaum
156
+ Copyright (c) 2006-2013 Hampton Catlin, Nathan Weizenbaum and the Haml team
154
157
 
155
158
  Permission is hereby granted, free of charge, to any person obtaining a copy of
156
159
  this software and associated documentation files (the "Software"), to deal in
@@ -1131,7 +1131,7 @@ implemented using Tilt.
1131
1131
  Parses the filtered text with [Maruku](https://github.com/nex3/maruku), which
1132
1132
  has some non-standard extensions to Markdown.
1133
1133
 
1134
- As of Haml 3.2, this filter is defined in [Haml
1134
+ As of Haml 4.0, this filter is defined in [Haml
1135
1135
  contrib](https://github.com/haml/haml-contrib) but is loaded automatically for
1136
1136
  historical reasons. In future versions of Haml it will likely not be loaded by
1137
1137
  default. This filter is implemented using Tilt.
@@ -1171,7 +1171,7 @@ SCSS syntax to produce CSS output. This filter is implemented using Tilt.
1171
1171
  Parses the filtered text with [Textile](http://www.textism.com/tools/textile).
1172
1172
  Only works if [RedCloth](http://redcloth.org) is installed.
1173
1173
 
1174
- As of Haml 3.2, this filter is defined in [Haml
1174
+ As of Haml 4.0, this filter is defined in [Haml
1175
1175
  contrib](https://github.com/haml/haml-contrib) but is loaded automatically for
1176
1176
  historical reasons. In future versions of Haml it will likely not be loaded by
1177
1177
  default. This filter is implemented using Tilt.
@@ -34,7 +34,7 @@ module Haml
34
34
  # @option options [String] :extend The name of a module to extend when
35
35
  # defining the filter. Defaults to "Plain". This allows filters such as
36
36
  # Coffee to "inherit" from Javascript, wrapping its output in script tags.
37
- # @since 3.2.0
37
+ # @since 4.0
38
38
  def register_tilt_filter(name, options = {})
39
39
  if constants.map(&:to_s).include?(name.to_s)
40
40
  raise "#{name} filter already defined"
@@ -63,7 +63,7 @@ module Haml
63
63
  # to redefine a filter, Haml will raise an error. Use this method first to
64
64
  # explicitly remove the filter before redefining it.
65
65
  # @return Module The filter module that has been removed
66
- # @since 3.2.0
66
+ # @since 4.0
67
67
  def remove_filter(name)
68
68
  defined.delete name.to_s.downcase
69
69
  if constants.map(&:to_s).include?(name.to_s)
@@ -393,7 +393,7 @@ RUBY
393
393
  end
394
394
 
395
395
  # These filters have been demoted to Haml Contrib but are still included by
396
- # default in Haml 3.2. Still, we rescue from load error if for some reason
396
+ # default in Haml 4.0. Still, we rescue from load error if for some reason
397
397
  # haml-contrib is not installed.
398
398
  begin
399
399
  require "haml/filters/maruku"
@@ -1,24 +1,9 @@
1
- # Rails 3.2.3's form helpers add a newline after opening textareas, which can
2
- # cause problems with newlines being considered content rather than markup.
3
- # These changes fix the issue by making the helpers emit "<haml:newline/>"
4
- # rather than the leading newline. The tag is then replaced by a newline after
5
- # rendering.
6
- #
7
- # This should be considered nothing more than an emergency hotfix to ensure
8
- # compatibility with the latest version of Rails, made at a moment when the Haml
9
- # project is transitioning to a new maintainer.
10
-
11
- # module AbstractController
12
- # module Rendering
13
- # def render_to_body_with_haml(options = {})
14
- # if rendered = render_to_body_without_haml(options)
15
- # rendered.gsub('<haml:newline/>', "\n").html_safe
16
- # end
17
- # end
18
- # alias_method_chain :render_to_body, :haml
19
- # end
20
- # end
21
-
1
+ # As of 3.2.3, Rails's form helpers add a newline after opening textareas,
2
+ # which can cause problems with newlines being considered content rather than
3
+ # markup. Here we decode the first newline back into a real newline to make the
4
+ # textarea work as expected. Note that in order for this to work, the compiler
5
+ # code was also change to avoid indenting code with textareas, even when Haml
6
+ # is running in indented mode.
22
7
  module ActionView
23
8
  module Helpers
24
9
 
@@ -36,4 +21,4 @@ module ActionView
36
21
  alias_method_chain :text_area, :haml
37
22
  end
38
23
  end
39
- end
24
+ end
@@ -97,7 +97,7 @@ module Haml
97
97
 
98
98
  # If set to `true`, Haml will convert underscores to hyphens in all
99
99
  # {file:REFERENCE.md#html5_custom_data_attributes Custom Data Attributes} As
100
- # of Haml 3.2, this defaults to `true`.
100
+ # of Haml 4.0, this defaults to `true`.
101
101
  attr_accessor :hyphenate_data_attrs
102
102
 
103
103
  # The line offset of the Haml template being parsed. This is useful for
@@ -1,3 +1,3 @@
1
1
  module Haml
2
- VERSION = "4.0.0.rc.1"
2
+ VERSION = "4.0.0"
3
3
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: 6
5
- version: 4.0.0.rc.1
4
+ prerelease:
5
+ version: 4.0.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nathan Weizenbaum
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-02-11 00:00:00.000000000 Z
14
+ date: 2013-02-13 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: tilt
@@ -250,14 +250,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
250
250
  - !ruby/object:Gem::Version
251
251
  segments:
252
252
  - 0
253
- hash: 547892051030667947
253
+ hash: 3355577792412640496
254
254
  version: '0'
255
255
  required_rubygems_version: !ruby/object:Gem::Requirement
256
256
  none: false
257
257
  requirements:
258
- - - ! '>'
258
+ - - ! '>='
259
259
  - !ruby/object:Gem::Version
260
- version: 1.3.1
260
+ segments:
261
+ - 0
262
+ hash: 3355577792412640496
263
+ version: '0'
261
264
  requirements: []
262
265
  rubyforge_project:
263
266
  rubygems_version: 1.8.24