haml 3.2.0.rc.4 → 4.0.0.rc.1
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.
- data/CHANGELOG.md +3 -1
- data/lib/haml/helpers/action_view_mods.rb +2 -2
- data/lib/haml/version.rb +1 -1
- data/test/gemfiles/Gemfile.rails-master +1 -4
- data/test/helper_test.rb +12 -1
- metadata +4 -4
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Haml Changelog
|
2
2
|
|
3
|
-
##
|
3
|
+
## 4.0.0 (Unreleased)
|
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
|
@@ -107,6 +107,8 @@
|
|
107
107
|
* It's now possible to use Rails's asset helpers inside the Sass and SCSS
|
108
108
|
filters.
|
109
109
|
|
110
|
+
* The Haml project now uses [semantic versioning](http://semver.org/).
|
111
|
+
|
110
112
|
## 3.1.6
|
111
113
|
|
112
114
|
* In indented mode, don't reindent buffers that contain preserved tags, and
|
@@ -142,6 +142,6 @@ module ActionView
|
|
142
142
|
end
|
143
143
|
end
|
144
144
|
|
145
|
-
if (ActionPack::VERSION::MAJOR == 3) && (ActionPack::VERSION::MINOR >= 2) && (ActionPack::VERSION::TINY >= 3)
|
145
|
+
if ((ActionPack::VERSION::MAJOR == 3) && (ActionPack::VERSION::MINOR >= 2) && (ActionPack::VERSION::TINY >= 3) || (ActionPack::VERSION::MAJOR == 4))
|
146
146
|
require "haml/helpers/rails_323_textarea_fix"
|
147
|
-
end
|
147
|
+
end
|
data/lib/haml/version.rb
CHANGED
@@ -1,7 +1,4 @@
|
|
1
1
|
source :rubygems
|
2
2
|
|
3
3
|
gem 'rails', git: 'git://github.com/rails/rails.git'
|
4
|
-
|
5
|
-
gem 'activerecord-deprecated_finders', git: 'git://github.com/rails/activerecord-deprecated_finders.git'
|
6
|
-
gemspec :path => "../.."
|
7
|
-
|
4
|
+
gemspec :path => '../..'
|
data/test/helper_test.rb
CHANGED
@@ -132,7 +132,18 @@ HTML
|
|
132
132
|
HAML
|
133
133
|
end
|
134
134
|
|
135
|
-
if
|
135
|
+
if ActionPack::VERSION::MAJOR == 4
|
136
|
+
def test_text_area
|
137
|
+
assert_equal(%(<textarea id="body" name="body">\nFoo
Bar
 Baz
 Boom</textarea>\n),
|
138
|
+
render('= text_area_tag "body", "Foo\nBar\n Baz\n Boom"', :action_view))
|
139
|
+
|
140
|
+
assert_equal(%(<textarea id="post_body" name="post[body]">\nFoo bar
baz</textarea>\n),
|
141
|
+
render('= text_area :post, :body', :action_view))
|
142
|
+
|
143
|
+
assert_equal(%(<pre>Foo bar
 baz</pre>\n),
|
144
|
+
render('= content_tag "pre", "Foo bar\n baz"', :action_view))
|
145
|
+
end
|
146
|
+
elsif (ActionPack::VERSION::MAJOR == 3) && (ActionPack::VERSION::MINOR >= 2) && (ActionPack::VERSION::TINY >= 3)
|
136
147
|
def test_text_area
|
137
148
|
assert_equal(%(<textarea id="body" name="body">\nFoo
Bar
 Baz
 Boom</textarea>\n),
|
138
149
|
render('= text_area_tag "body", "Foo\nBar\n Baz\n Boom"', :action_view))
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: haml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: 6
|
5
|
-
version:
|
5
|
+
version: 4.0.0.rc.1
|
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-
|
14
|
+
date: 2013-02-11 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: tilt
|
@@ -215,7 +215,7 @@ licenses:
|
|
215
215
|
- MIT
|
216
216
|
post_install_message: ! '
|
217
217
|
|
218
|
-
HEADS UP! Haml
|
218
|
+
HEADS UP! Haml 4.0 has many improvements, but also has changes that may break
|
219
219
|
|
220
220
|
your application:
|
221
221
|
|
@@ -250,7 +250,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
250
250
|
- !ruby/object:Gem::Version
|
251
251
|
segments:
|
252
252
|
- 0
|
253
|
-
hash:
|
253
|
+
hash: 547892051030667947
|
254
254
|
version: '0'
|
255
255
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
256
256
|
none: false
|