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.

@@ -1,6 +1,6 @@
1
1
  # Haml Changelog
2
2
 
3
- ## 3.2.0 (Unreleased)
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
@@ -1,3 +1,3 @@
1
1
  module Haml
2
- VERSION = "3.2.0.rc.4"
2
+ VERSION = "4.0.0.rc.1"
3
3
  end
@@ -1,7 +1,4 @@
1
1
  source :rubygems
2
2
 
3
3
  gem 'rails', git: 'git://github.com/rails/rails.git'
4
- gem 'journey', git: 'git://github.com/rails/journey.git'
5
- gem 'activerecord-deprecated_finders', git: 'git://github.com/rails/activerecord-deprecated_finders.git'
6
- gemspec :path => "../.."
7
-
4
+ gemspec :path => '../..'
@@ -132,7 +132,18 @@ HTML
132
132
  HAML
133
133
  end
134
134
 
135
- if (ActionPack::VERSION::MAJOR == 3) && (ActionPack::VERSION::MINOR >= 2) && (ActionPack::VERSION::TINY >= 3)
135
+ if ActionPack::VERSION::MAJOR == 4
136
+ def test_text_area
137
+ assert_equal(%(<textarea id="body" name="body">\nFoo&#x000A;Bar&#x000A; Baz&#x000A; 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&#x000A;baz</textarea>\n),
141
+ render('= text_area :post, :body', :action_view))
142
+
143
+ assert_equal(%(<pre>Foo bar&#x000A; 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&#x000A;Bar&#x000A; Baz&#x000A; 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: 3.2.0.rc.4
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-07 00:00:00.000000000 Z
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 3.2 has many improvements, but also has changes that may break
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: 3493289151037980825
253
+ hash: 547892051030667947
254
254
  version: '0'
255
255
  required_rubygems_version: !ruby/object:Gem::Requirement
256
256
  none: false