diff options
author | Ralph Amissah <ralph.amissah@gmail.com> | 2020-04-14 11:10:59 -0400 |
---|---|---|
committer | Ralph Amissah <ralph.amissah@gmail.com> | 2020-05-09 20:40:02 -0400 |
commit | 88ed8a0c1376fbe6d45059694ce31db597fde3e9 (patch) | |
tree | 4fb95449893c488b2954bf432db4997829f54284 /lib/sisu/db_columns.rb | |
parent | emacs sisu-mode.el, syntax highlighting match https (diff) |
ruby 2.7 fix
Diffstat (limited to 'lib/sisu/db_columns.rb')
-rw-r--r-- | lib/sisu/db_columns.rb | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/lib/sisu/db_columns.rb b/lib/sisu/db_columns.rb index 5ed6e680..608b59a7 100644 --- a/lib/sisu/db_columns.rb +++ b/lib/sisu/db_columns.rb @@ -1886,7 +1886,7 @@ module SiSU_DbColumns end def tuple if defined? @md.wc_words \ - and @md.wc_words=~/\S+/ + and @md.wc_words.to_s=~/\S+/ txt=@md.wc_words txt=special_character_escape(txt) ["#{name}, ","'#{txt}', "] @@ -1957,15 +1957,16 @@ module SiSU_DbColumns %{COMMENT ON COLUMN metadata_and_text.#{name} IS 'metadata document links';} end - def tuple - if defined? @md.links \ - and @md.links=~/\S+/ - txt=@md.links - txt=special_character_escape(txt) - ["#{name}, ","'#{txt}', "] - else ['',''] - end - end + #def tuple + # #BUG HERE - links is an array of paired values :say :url + # if defined? @md.links \ + # and @md.links=~/\S+/ + # txt=@md.links + # txt=special_character_escape(txt) + # ["#{name}, ","'#{txt}', "] + # else ['',''] + # end + #end self end self |