haml2slim 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,10 +40,8 @@ module Haml2Slim
40
40
  if attrs = tag_line.match(/\{(.+)\}/)
41
41
  tag = tag_line.match(/(.+)\{/)[1]
42
42
  attrs = tag_line.match(/\{(.+)\}/)[1]
43
- .gsub(/:?"?([A-Za-z0-9\-_]+)"? ?=>/, '\1 =>')
44
- .gsub(/ ?=> ?/, "=")
45
- .gsub('",', '"')
46
- .gsub(/=([^"]+)(?: |$)/, '=(\1)')
43
+ .gsub(/,?( ?):?"?([^"'{ ]+)"? ?=> ?/, '\1\2=')
44
+ .gsub(/=([^"']+)(?: |$)/, '=(\1)')
47
45
 
48
46
  "#{tag} #{attrs}"
49
47
  else
@@ -1,3 +1,3 @@
1
1
  module Haml2Slim
2
- VERSION = '0.1.1'
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 1
8
- - 1
9
- version: 0.1.1
7
+ - 2
8
+ - 0
9
+ version: 0.2.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Fred Wu
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-16 00:00:00 +11:00
17
+ date: 2010-12-17 00:00:00 +11:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -58,6 +58,21 @@ dependencies:
58
58
  version: "0"
59
59
  type: :runtime
60
60
  version_requirements: *id003
61
+ - !ruby/object:Gem::Dependency
62
+ name: slim
63
+ prerelease: false
64
+ requirement: &id004 !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ segments:
70
+ - 0
71
+ - 8
72
+ - 1
73
+ version: 0.8.1
74
+ type: :development
75
+ version_requirements: *id004
61
76
  description: Convert Haml templates to Slim templates.
62
77
  email:
63
78
  - ifredwu@gmail.com