textile_extension_pack 0.0.1 → 0.0.2
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.
@@ -0,0 +1,13 @@
|
|
1
|
+
module TextileExtensionPack
|
2
|
+
|
3
|
+
module RegularExpressions
|
4
|
+
def tags(text)
|
5
|
+
text.gsub!(/cleaner./, '<hr class="cleaner" />')
|
6
|
+
text.gsub!(/columnstart./, '<div class="column">')
|
7
|
+
text.gsub!(/columnend./, '</div>')
|
8
|
+
text.gsub!(/decolumnize./, '</div>')
|
9
|
+
text.gsub!(/columnize./, '<div class="columnized">')
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
@@ -18,13 +18,4 @@ module TextileExtensionPack
|
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
|
-
|
22
|
-
def tags(text)
|
23
|
-
text.gsub!(/cleaner./, '<hr class="cleaner" />')
|
24
|
-
text.gsub!(/columnstart./, '<div class="column">')
|
25
|
-
text.gsub!(/columnend./, '</div>')
|
26
|
-
text.gsub!(/decolumnize./, '</div>')
|
27
|
-
text.gsub!(/columnize./, '<div class="columnized">')
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
21
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: textile_extension_pack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-03-11 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: RedCloth
|
16
|
-
requirement: &
|
16
|
+
requirement: &10880780 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,14 +21,14 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
25
|
-
description: Extends textile with some custom tags
|
26
|
-
or google maps.
|
24
|
+
version_requirements: *10880780
|
25
|
+
description: Extends textile with some custom tags.
|
27
26
|
email: patrikjira@gmail.com
|
28
27
|
executables: []
|
29
28
|
extensions: []
|
30
29
|
extra_rdoc_files: []
|
31
30
|
files:
|
31
|
+
- lib/textile_extension_pack/regular_expressions.rb
|
32
32
|
- lib/textile_extension_pack/tags.rb
|
33
33
|
- lib/textile_extension_pack.rb
|
34
34
|
- MIT-LICENSE
|