livetext 0.8.21 → 0.8.22
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.
- checksums.yaml +4 -4
- data/lib/functions.rb +5 -0
- data/lib/livetext.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8fb72ecf9695ee6fdd93e03c3c247d0675f6d799
|
|
4
|
+
data.tar.gz: b09c942b56fe5dc2c709a8185e64a0e465be9b43
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 160d76971909a9618d7ccf6aff5d5c15087cd1da4049aebcedbfe89980497290dbae70f9bf57841bfa80fd1c65885c5d79366dc82053e60d6d1ff52ed6185c46
|
|
7
|
+
data.tar.gz: 57621c416bac5970029d71c44a59610ffd4dd78cf025cc572cd0b6262b5587856baabcd06914bd20b9fc584a3d578823decb65ae84a98db350c2402e956792ec
|
data/lib/functions.rb
CHANGED
|
@@ -27,6 +27,11 @@ class Livetext::Functions # Functions will go here... user-def AND pre-def??
|
|
|
27
27
|
"<a href='#{url}'>#{text}</a>"
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
+
def yt
|
|
31
|
+
param = self.class.param
|
|
32
|
+
"https://www.youtube.com/watch?v=#{param}"
|
|
33
|
+
end
|
|
34
|
+
|
|
30
35
|
def simple_format(*args)
|
|
31
36
|
param = self.class.param
|
|
32
37
|
param ||= "NO PARAMETER"
|
data/lib/livetext.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
class Livetext
|
|
2
|
-
VERSION = "0.8.
|
|
2
|
+
VERSION = "0.8.22"
|
|
3
3
|
end
|
|
4
4
|
|
|
5
5
|
require 'fileutils'
|
|
@@ -124,7 +124,9 @@ class Livetext
|
|
|
124
124
|
break if line.nil?
|
|
125
125
|
process_line(line)
|
|
126
126
|
end
|
|
127
|
-
@main.finalize if @main.respond_to? :finalize
|
|
127
|
+
val = @main.finalize if @main.respond_to? :finalize
|
|
128
|
+
p val
|
|
129
|
+
val
|
|
128
130
|
end
|
|
129
131
|
|
|
130
132
|
def process_file!(fname, backtrace=false)
|