martile 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/martile.rb +9 -4
- metadata +3 -3
- metadata.gz.sig +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6f75a6d7fc3b3c016747c5bfed719bdf08ab2d9
|
4
|
+
data.tar.gz: 6e3203dc584f605d97150997d40b66d18820de0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47c7143e239abf3bb794480c2833160a5bf0f901b76c1c23eaed1a24780e6d4c36c526e21a5b796d01c435f3a48c6e94182bea057f9d333dd003068056a504c5
|
7
|
+
data.tar.gz: 13b61c680d53ce68967be62d05ea9512077e51b9e1dc6bc4b1ac93d816653689c8147255ffbdaadaa56948d31f954aa3b5855c27ec35ce86697ed58e1f2b2b66
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/martile.rb
CHANGED
@@ -8,6 +8,9 @@ require 'dynarex'
|
|
8
8
|
require 'rdiscount'
|
9
9
|
|
10
10
|
|
11
|
+
# improvement:
|
12
|
+
# 16-Jul-2015 to_s is now equivalent to_html; to_s is
|
13
|
+
# more readable when it's just text which is returned
|
11
14
|
# feature: 06-Jul-2015 dynarex_to_table():
|
12
15
|
# 1. A URL within a col is now hyperlinked
|
13
16
|
# 2. Select fields can now be displayd
|
@@ -86,7 +89,7 @@ require 'rdiscount'
|
|
86
89
|
|
87
90
|
class Martile
|
88
91
|
|
89
|
-
attr_reader :
|
92
|
+
attr_reader :to_s
|
90
93
|
|
91
94
|
def initialize(raw_s, ignore_domainlabel: nil)
|
92
95
|
|
@@ -120,11 +123,13 @@ class Martile
|
|
120
123
|
s13 = apply_filter(s12){|x| videotag x}
|
121
124
|
s14 = apply_filter(s13){|x| iframetag x}
|
122
125
|
|
123
|
-
|
124
|
-
|
125
126
|
#puts 's8 : ' + s8.inspect
|
126
127
|
|
127
|
-
@
|
128
|
+
@to_s = s14
|
129
|
+
end
|
130
|
+
|
131
|
+
def to_html()
|
132
|
+
@to_s
|
128
133
|
end
|
129
134
|
|
130
135
|
private
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: martile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
fnr5l+RI/6f8lfxBNgDrktGB/RwPkOyWtyKk1tu9CWgHmptxL0JglikCXg5MzuZI
|
32
32
|
tZzXOvXUoUf1VQ==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-07-
|
34
|
+
date: 2015-07-16 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rdiscount
|
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
100
|
version: '0'
|
101
101
|
requirements: []
|
102
102
|
rubyforge_project:
|
103
|
-
rubygems_version: 2.4.
|
103
|
+
rubygems_version: 2.4.8
|
104
104
|
signing_key:
|
105
105
|
specification_version: 4
|
106
106
|
summary: A flavour of Markdown which converts a Martile string to html
|
metadata.gz.sig
CHANGED