livetext 0.9.63 → 0.9.65

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb39ca81affae7c276e894251b5d69c330a17245c2f364c1fa0841d24e5debba
4
- data.tar.gz: fbbf80f992676e11185b7c498161763e38caf77dee3bddac4de256d729455334
3
+ metadata.gz: 9e51a20f4e5467c3dc5df59d67d79dc97b71bb2631b562503eadca686244422e
4
+ data.tar.gz: 000a8c61029801071988522e4499d3add1cee6ea008f2547e6bd5c81058c3ced
5
5
  SHA512:
6
- metadata.gz: 72b78214a3b7b0e9f3653382500374af525c2b5bc0ce606c0cf11fb935b9eb8b4252d485796359e27d65dd1f1d1d1017ee43e71681c0b56d94db686c7953a547
7
- data.tar.gz: 4ca59582edf8676cb9265f82ddaec1cd921ee572016e28a4c11b2db522c977a85ae06c233f065c11c5287a126e6a8c29a5b1699450bd808505a87efc62be1018
6
+ metadata.gz: 45ecb70199426cb893a89ff15e9ced321dd393243cb7e1164492e3141a2ea85a545ff0cbd246f0ca821315b2dc5e1650219fce5d6c2185cd65bba6606ee5c3f6
7
+ data.tar.gz: 672e6c3fc6621e0bc03157da8de6c5064312056a7c9814b184a14766e77309059f0ff8eff87db14049463cf0d57436f3da8440667a8f065ed8bf8139a7528220
data/lib/livetext/core.rb CHANGED
@@ -162,6 +162,9 @@ class Livetext
162
162
  # Set variables first
163
163
  @variables.set_multiple(vars) unless vars.empty?
164
164
 
165
+ # Set api on Livetext::Functions so all functions can access it
166
+ Livetext::Functions.api = @api
167
+
165
168
  # Process based on input type
166
169
  case
167
170
  when file && text.nil?
@@ -59,6 +59,8 @@ class Livetext::Expansion
59
59
  if result.start_with?("[Error evaluating $$#{name}(")
60
60
  # Try old Livetext::Functions system
61
61
  fobj = ::Livetext::Functions.new
62
+ # Set api on Livetext::Functions so functions can access it
63
+ Livetext::Functions.api = @live.api
62
64
  old_result = fobj.send(name, param) rescue nil
63
65
  return old_result.to_s if old_result
64
66
 
@@ -2,5 +2,5 @@
2
2
  # Defining VERSION
3
3
 
4
4
  class Livetext
5
- VERSION = "0.9.63"
5
+ VERSION = "0.9.65"
6
6
  end
@@ -4,7 +4,7 @@
4
4
  4 /<p>Directory: .*livetext.*</p>/
5
5
  5 <p>Platform: universal.x86_64-darwin22</p>
6
6
  6 <p>Ruby version: 2.6.10</p>
7
- 7 <p>Livetext version: 0.9.61</p>
7
+ 7 /<p>Livetext version: \d+\.\d+\.\d+<\/p>/
8
8
  8 <p>Reverse of 'hello': olleh</p>
9
9
  9 <p>Square root of 16: 4</p>
10
10
  10 /<p>Random \(1-10\): \d+</p>/
@@ -3,7 +3,7 @@
3
3
  3 Hostname: HAL9000
4
4
  4 /Platform: .*x86_64-darwin\d+/
5
5
  5 /Ruby Version: \d+\.\d+\.\d+/
6
- 6 Livetext Version: 0.9.61
6
+ 6 /Livetext Version: \d+\.\d+\.\d+/
7
7
  7 </p>
8
8
  8
9
9
  9 <p>
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.9.63
4
+ version: 0.9.65
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton