fira 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/fira/engine.rb +6 -5
  2. data/lib/fira/version.rb +1 -1
  3. metadata +2 -2
@@ -48,12 +48,13 @@ module Fira
48
48
 
49
49
  #remove the space before the first class
50
50
  att = att.sub(/class=' /, "class='")
51
-
52
- #remove the fira class attributes
53
- new_tag = tag.gsub(CLASS_PATTERN, "")
54
51
 
55
- #save the html class attributes back into the tag
56
- new_tag = new_tag.sub(/>/,att + "\\0")
52
+ #remove the fira class attributes
53
+ #first one
54
+ new_tag = tag.sub(CLASS_PATTERN, att)
55
+
56
+ #the rest of the fira class attributes
57
+ new_tag = new_tag.gsub(CLASS_PATTERN, "")
57
58
 
58
59
  #save the whole html tag back into the file
59
60
  result = result.sub(tag, new_tag)
@@ -1,3 +1,3 @@
1
1
  module Fira
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
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.2
4
+ version: 0.3.3
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-02-06 00:00:00.000000000 Z
12
+ date: 2013-02-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport