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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c63c50dfb33d820a5e691a8c4c891a0b08f2d9e2
4
- data.tar.gz: e6e6fc61f78cc63352ecbb34c017694323c6b8c1
3
+ metadata.gz: a6f75a6d7fc3b3c016747c5bfed719bdf08ab2d9
4
+ data.tar.gz: 6e3203dc584f605d97150997d40b66d18820de0e
5
5
  SHA512:
6
- metadata.gz: 93d2b0e234640fc100eaff52bc194ba6f0129a314d90e1744fc1bbbe46db792a91afd57c86430592a670dd1948a7af007d3515daabbd7dcc4df519c7cd0f8dd7
7
- data.tar.gz: de26b7b0f4b764be08bab71fdbb7410e43cd00ec9d1ec6e34eb6f016e8c803a1e8d179535fac24abc1ce16ad678852961c2f42151001df8361d20402856a91c5
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 :to_html
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
- @to_html = s14
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.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-06 00:00:00.000000000 Z
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.6
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
@@ -1 +1,3 @@
1
- j��
1
+ xI���� Y,�8s@(
2
+ o�\*�ޣ{б����辿J����~�ug4�������*Hj����u�n,����e�@Ą�}�N��8ǘ�.Q;_��8��~s6Cm(� �������Bv��y9���3��Ԡ�������q���Tt>�K U!�YE��'�*����k��M ���c�-�| ���@�?��N.�H�
3
+ P$� ��4A��㄂o�kݬß����