fira 0.3.5 → 0.3.6

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.
Files changed (3) hide show
  1. data/lib/fira/engine.rb +2 -2
  2. data/lib/fira/version.rb +1 -1
  3. 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
@@ -1,3 +1,3 @@
1
1
  module Fira
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
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.5
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-11 00:00:00.000000000 Z
12
+ date: 2013-03-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport