tag_along 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +2 -0
- data/lib/tag_along/version.rb +1 -1
- data/lib/tag_along.rb +6 -0
- data/spec/tag_along_spec.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac25ee81b70b583a4d8abbaceddcb486d842187c
|
4
|
+
data.tar.gz: f9f904f4f64b36993c41d3412e4ede96faa3847c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab9adeb46b91277bd35da4162e8cb10b4c4c89ad7a531e82d5150add3a3625e1661ecfb810d378a3cede77603f86198d329118b7fb40d3e995cc114da3d46f3a
|
7
|
+
data.tar.gz: 9820e99bad307af498964569c821f933359340bc64188f9badc8a8821dba91a3f79abd8ba1f9d11e7dd7b793597a624dc4f0a912c1122228d4048eeced386b71
|
data/CHANGELOG
CHANGED
data/lib/tag_along/version.rb
CHANGED
data/lib/tag_along.rb
CHANGED
data/spec/tag_along_spec.rb
CHANGED
@@ -62,4 +62,12 @@ describe TagAlong do
|
|
62
62
|
%q{There's <em>Sunday</em> and there's <em>Monday</em>}
|
63
63
|
end
|
64
64
|
|
65
|
+
it 'should preserve the end of the text' do
|
66
|
+
text = 'There\'s Sunday and there\'s Monday for sure'
|
67
|
+
offsets = [[27,32], [8,13]]
|
68
|
+
tg = TagAlong.new(text, offsets)
|
69
|
+
tg.tag('<em>', '</em>').should ==
|
70
|
+
%q{There's <em>Sunday</em> and there's <em>Monday</em> for sure}
|
71
|
+
end
|
72
|
+
|
65
73
|
end
|