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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/functions.rb +5 -0
  3. data/lib/livetext.rb +4 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b94a9cb09fc3f7a4657a1c6a135873706c90bfa6
4
- data.tar.gz: a2f8d5b355563ba1966d82e4068be5979dc4a707
3
+ metadata.gz: 8fb72ecf9695ee6fdd93e03c3c247d0675f6d799
4
+ data.tar.gz: b09c942b56fe5dc2c709a8185e64a0e465be9b43
5
5
  SHA512:
6
- metadata.gz: aaed795cc076f3d6e692e485bda8759ef3b3d2743dfd8ed7d139c7b1010d1e367be8e44451eb131b4eb7696bf86851c6c73bf567bb6a1ecc53c7497652e0ec10
7
- data.tar.gz: 1f7330495ef44760d5fa6e98fd13924b6c71f621cbefb1f4216f2eba31f2034483261b46880b758beb9cfdf7e26bc3ba014d7e3b2fd596ad21124f5b46ba04a6
6
+ metadata.gz: 160d76971909a9618d7ccf6aff5d5c15087cd1da4049aebcedbfe89980497290dbae70f9bf57841bfa80fd1c65885c5d79366dc82053e60d6d1ff52ed6185c46
7
+ data.tar.gz: 57621c416bac5970029d71c44a59610ffd4dd78cf025cc572cd0b6262b5587856baabcd06914bd20b9fc584a3d578823decb65ae84a98db350c2402e956792ec
@@ -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"
@@ -1,5 +1,5 @@
1
1
  class Livetext
2
- VERSION = "0.8.21"
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: livetext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.21
4
+ version: 0.8.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton