spacify 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.0.1
@@ -4,7 +4,7 @@ grammar HTMLAttribute
4
4
  include HTML
5
5
 
6
6
  rule attributes
7
- attribute space_n_attributes:( space attribute )* {
7
+ attribute space_n_attributes:( space+ attribute )* {
8
8
  def to_a
9
9
  @attirbute_array ||= [attribute] + space_n_attributes.elements.collect{|space_n_attribute| space_n_attribute.attribute }
10
10
  end
@@ -10,7 +10,7 @@ grammar HTMLNodeElement
10
10
  # It'd be something like this if I were creating an HTML parser.
11
11
  # But I'm not. (Notice the disconnect in open/close node detection)
12
12
 
13
- gt name:( !space any )+ ( space attributes )* space? '/'? lt {
13
+ gt name:( !space any )+ ( space attributes )* space* '/'? lt {
14
14
  def node_name
15
15
  elements[1].text_value
16
16
  end
@@ -6,6 +6,11 @@ class SpacifyTest < Test::Unit::TestCase
6
6
  assert_equal_with_lcs expected, spacer.to_s
7
7
  end
8
8
 
9
+ def test_output_with_spaced_input
10
+ spacer = Spacer.new expected, :html => '<cfinput[^>]+>'
11
+ assert_equal_with_lcs expected, spacer.to_s
12
+ end
13
+
9
14
  def expected
10
15
  %q|
11
16
  <div id="signin_login_content" class="signin_show">
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 0
9
- version: 0.0.0
8
+ - 1
9
+ version: 0.0.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Scott Noel-Hemming