fira 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fira/engine.rb +2 -2
- data/lib/fira/version.rb +1 -1
- metadata +2 -2
data/lib/fira/engine.rb
CHANGED
@@ -2,7 +2,7 @@ module Fira
|
|
2
2
|
|
3
3
|
class Engine
|
4
4
|
|
5
|
-
ID_PATTERN = /(<[^\/]?.*)#([a-z_A-Z\-]+)/
|
5
|
+
ID_PATTERN = /(<[^\/]?.*)#([a-z_A-Z\-]+)(.*>.*<\/.*>)/
|
6
6
|
CLASS_PATTERN = /\.([a-z_A-Z\-]+)/
|
7
7
|
TAG_PATTERN = /<\/?\w+\s+[^>]*>/
|
8
8
|
|
@@ -20,7 +20,7 @@ module Fira
|
|
20
20
|
#scan for ids and replace with html id attributes
|
21
21
|
def parse_ids(contents)
|
22
22
|
|
23
|
-
result = contents.gsub(ID_PATTERN, '\1 id="\2"')
|
23
|
+
result = contents.gsub(ID_PATTERN, '\1 id="\2" \3')
|
24
24
|
end
|
25
25
|
|
26
26
|
#scan for classes and create html class attributes
|
data/lib/fira/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fira
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|