martile 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/martile.rb +5 -3
- metadata +13 -2
data/lib/martile.rb
CHANGED
@@ -4,8 +4,10 @@
|
|
4
4
|
|
5
5
|
require 'rexle-builder'
|
6
6
|
require 'rexle'
|
7
|
+
require 'dynarex'
|
7
8
|
|
8
|
-
|
9
|
+
# bug fix: 02-Nov-2012: within dynarex_to_table URLs containing a
|
10
|
+
# dash now work
|
9
11
|
# bug fix: 20-Sep-2012: in ordered_list_to_html it now cuts off from
|
10
12
|
# parsing headings
|
11
13
|
# bug fix: 04-Aug-2012; replaced \s with a space in regex patterns
|
@@ -56,7 +58,7 @@ class Martile
|
|
56
58
|
|
57
59
|
def dynarex_to_table(s)
|
58
60
|
|
59
|
-
s.gsub(/-\[((https?:\/\/)?[\w
|
61
|
+
s.gsub(/-\[((https?:\/\/)?[\w\/\.\-]+)\]/) do |match|
|
60
62
|
|
61
63
|
dynarex = Dynarex.new($1)
|
62
64
|
dynarex.to_h.map(&:values)
|
@@ -110,4 +112,4 @@ class Martile
|
|
110
112
|
return s
|
111
113
|
end
|
112
114
|
|
113
|
-
end
|
115
|
+
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: martile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.9
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- James Robertson
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-11-02 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rexle-builder
|
@@ -34,6 +34,17 @@ dependencies:
|
|
34
34
|
version: "0"
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id002
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: martile
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: "0"
|
46
|
+
type: :runtime
|
47
|
+
version_requirements: *id003
|
37
48
|
description:
|
38
49
|
email:
|
39
50
|
executables: []
|