html2haml 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -4
- data/Changelog.markdown +4 -0
- data/README.md +2 -2
- data/html2haml.gemspec +4 -4
- data/lib/html2haml/exec.rb +2 -2
- data/lib/html2haml/version.rb +1 -1
- data/test/erb_test.rb +1 -1
- metadata +15 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6eafad574519456fe8650f7fbcbf58827cf25b52
|
4
|
+
data.tar.gz: f4fe8909bb86ba40db7b85b7894e04038b04cbb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb573d6a7d7af653a3d90e83b38ed2fbef33777944c66f7fa137190c2fc831dfa7af918de7e63ee641ead20ab7cbe88cbf370d99d9374e5d9f4e4c4b0d70405d
|
7
|
+
data.tar.gz: 6fcedbe8c9c81e9641dbab74464a9a13dc31beffbb153a15018b4e548bc63a79fe6bade20bcd1b00b8c6a753e3c98316c08cbaa2f8558fa3b9f6b65c2587e5cf
|
data/.travis.yml
CHANGED
@@ -4,14 +4,14 @@ sudo: false
|
|
4
4
|
before_install: gem update bundler --no-document
|
5
5
|
|
6
6
|
rvm:
|
7
|
-
- 2.4.
|
8
|
-
- 2.3.
|
9
|
-
- 2.2.
|
7
|
+
- 2.4.1
|
8
|
+
- 2.3.4
|
9
|
+
- 2.2.7
|
10
10
|
- 2.1.10
|
11
11
|
- 2.0.0
|
12
12
|
- 1.9.3
|
13
13
|
- rbx-2
|
14
|
-
- jruby-9.1.
|
14
|
+
- jruby-9.1.8.0
|
15
15
|
|
16
16
|
gemfile:
|
17
17
|
- Gemfile
|
data/Changelog.markdown
CHANGED
data/README.md
CHANGED
@@ -57,8 +57,8 @@ See `html2haml --help`:
|
|
57
57
|
Description: Transforms an HTML file into corresponding Haml code.
|
58
58
|
|
59
59
|
Options:
|
60
|
-
-e, --erb Parse
|
61
|
-
--no-erb Don't parse
|
60
|
+
-e, --erb Parse ERB tags.
|
61
|
+
--no-erb Don't parse ERB tags.
|
62
62
|
--html-attributes Use HTML style attributes instead of Ruby hash style.
|
63
63
|
--ruby19-attributes Use Ruby 1.9-style attributes when possible.
|
64
64
|
-E ex[:in] Specify the default external and internal character encodings.
|
data/html2haml.gemspec
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
require File.expand_path('../lib/html2haml/version', __FILE__)
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
|
-
gem.authors = ["
|
6
|
-
gem.email = ["
|
5
|
+
gem.authors = ["Akira Matsuda", "Stefan Natchev"]
|
6
|
+
gem.email = ["ronnie@dio.jp", "stefan.natchev@gmail.com"]
|
7
7
|
gem.description = %q{Converts HTML into Haml}
|
8
8
|
gem.summary = %q{Converts HTML into Haml}
|
9
9
|
gem.homepage = "http://haml.info"
|
@@ -21,8 +21,8 @@ Gem::Specification.new do |gem|
|
|
21
21
|
gem.add_dependency 'nokogiri', '>= 1.6.0'
|
22
22
|
gem.add_dependency 'erubis', '~> 2.7.0'
|
23
23
|
gem.add_dependency 'ruby_parser', '~> 3.5'
|
24
|
-
gem.add_dependency 'haml', '
|
24
|
+
gem.add_dependency 'haml', ['>= 4.0', '< 6']
|
25
25
|
gem.add_development_dependency 'simplecov', '~> 0.7.1'
|
26
|
-
gem.add_development_dependency 'minitest', '
|
26
|
+
gem.add_development_dependency 'minitest', '>= 4.4.0'
|
27
27
|
gem.add_development_dependency 'rake'
|
28
28
|
end
|
data/lib/html2haml/exec.rb
CHANGED
@@ -203,11 +203,11 @@ Description: Transforms an HTML file into corresponding Haml code.
|
|
203
203
|
Options:
|
204
204
|
END
|
205
205
|
|
206
|
-
opts.on('-e', '--erb', 'Parse
|
206
|
+
opts.on('-e', '--erb', 'Parse ERB tags.') do
|
207
207
|
@module_opts[:erb] = true
|
208
208
|
end
|
209
209
|
|
210
|
-
opts.on('--no-erb', "Don't parse
|
210
|
+
opts.on('--no-erb', "Don't parse ERB tags.") do
|
211
211
|
@options[:no_erb] = true
|
212
212
|
end
|
213
213
|
|
data/lib/html2haml/version.rb
CHANGED
data/test/erb_test.rb
CHANGED
@@ -531,7 +531,7 @@ ERB
|
|
531
531
|
end
|
532
532
|
|
533
533
|
#https://github.com/haml/html2haml/issues/43
|
534
|
-
def
|
534
|
+
def test_escaped_ruby_call_when_preceded_by_text
|
535
535
|
assert_equal(<<HAML.rstrip, render_erb(<<ERB))
|
536
536
|
random text
|
537
537
|
= form_tag(url: sessions_path) do
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html2haml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Akira Matsuda
|
8
8
|
- Stefan Natchev
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-04-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -57,16 +57,22 @@ dependencies:
|
|
57
57
|
name: haml
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- - "
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '4.0'
|
63
|
+
- - "<"
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: '6'
|
63
66
|
type: :runtime
|
64
67
|
prerelease: false
|
65
68
|
version_requirements: !ruby/object:Gem::Requirement
|
66
69
|
requirements:
|
67
|
-
- - "
|
70
|
+
- - ">="
|
68
71
|
- !ruby/object:Gem::Version
|
69
72
|
version: '4.0'
|
73
|
+
- - "<"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '6'
|
70
76
|
- !ruby/object:Gem::Dependency
|
71
77
|
name: simplecov
|
72
78
|
requirement: !ruby/object:Gem::Requirement
|
@@ -85,14 +91,14 @@ dependencies:
|
|
85
91
|
name: minitest
|
86
92
|
requirement: !ruby/object:Gem::Requirement
|
87
93
|
requirements:
|
88
|
-
- - "
|
94
|
+
- - ">="
|
89
95
|
- !ruby/object:Gem::Version
|
90
96
|
version: 4.4.0
|
91
97
|
type: :development
|
92
98
|
prerelease: false
|
93
99
|
version_requirements: !ruby/object:Gem::Requirement
|
94
100
|
requirements:
|
95
|
-
- - "
|
101
|
+
- - ">="
|
96
102
|
- !ruby/object:Gem::Version
|
97
103
|
version: 4.4.0
|
98
104
|
- !ruby/object:Gem::Dependency
|
@@ -111,7 +117,7 @@ dependencies:
|
|
111
117
|
version: '0'
|
112
118
|
description: Converts HTML into Haml
|
113
119
|
email:
|
114
|
-
-
|
120
|
+
- ronnie@dio.jp
|
115
121
|
- stefan.natchev@gmail.com
|
116
122
|
executables:
|
117
123
|
- html2haml
|
@@ -158,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
164
|
version: '0'
|
159
165
|
requirements: []
|
160
166
|
rubyforge_project:
|
161
|
-
rubygems_version: 2.6.
|
167
|
+
rubygems_version: 2.6.11
|
162
168
|
signing_key:
|
163
169
|
specification_version: 4
|
164
170
|
summary: Converts HTML into Haml
|