livetext 0.8.67 → 0.8.68

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 (3) hide show
  1. checksums.yaml +5 -5
  2. data/lib/livetext.rb +4 -3
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 135eb051e6b8769a361496bb658d0abdade8f970
4
- data.tar.gz: f09f36de1855b12e687322231814b45928329f24
2
+ SHA256:
3
+ metadata.gz: 83136304b53cb3600221cb554f38b40937176e2d9299c066fe67982dddece8d6
4
+ data.tar.gz: fb45dd27a9ca99f51677211f5c8b63f0452a70ce2e5a7ab558c08e0c3422f6f8
5
5
  SHA512:
6
- metadata.gz: 33dc37db9194b4c4f92f84fd5301e7c0af2583d190532f8d7bce70b3bffa67f29724468e4426d3276a70cc68399b1383175f58aa27c3157cad9d28f832923975
7
- data.tar.gz: 2c48c2bf74d6af39656c5b6bda6d62ac22e4e2c2ba4ce41a9b9e6563e7d3abcb44cf9d44ba5122ca3366a5fd49a1dafc07fac74d09fdd5260e073559a00e30e6
6
+ metadata.gz: 9cd30f68b0a08dd0652ac22c35557bb22d38e7f7a556bdbcb0e66c5110c59f4c6c413fe97f6c1fc044cb7488c972049cfcf7b936b78ce9e1e3cbcde57d87bd2c
7
+ data.tar.gz: 7f7e4170486fe02c0235e986643d2a99a77c2292005848d821550268b690e7d03113a1d81660b51acdc4f41d735fd82d09385cc137cb3cf8fba2e292a19c5653
@@ -1,5 +1,5 @@
1
1
  class Livetext
2
- VERSION = "0.8.67"
2
+ VERSION = "0.8.68"
3
3
  Path = File.expand_path(File.join(File.dirname(__FILE__)))
4
4
  end
5
5
 
@@ -23,6 +23,7 @@ class Livetext
23
23
  Vars = {}
24
24
 
25
25
  attr_reader :main, :context
26
+ attr_accessor :output
26
27
 
27
28
  class << self
28
29
  attr_accessor :parameters # from outside world (process_text)
@@ -49,7 +50,7 @@ class Livetext
49
50
  @parent = parent
50
51
  @_nopass = false
51
52
  @_nopara = false
52
- @output = output || File.open("/dev/null", "w")
53
+ ::Livetext.output = output || File.open("/dev/null", "w")
53
54
  @sources = []
54
55
  end
55
56
 
@@ -154,7 +155,7 @@ class Livetext
154
155
  end
155
156
 
156
157
  def transform(text)
157
- @output = File.new("/dev/null", "w")
158
+ # @output = File.new("/dev/null", "w")
158
159
  result = ""
159
160
  enum = text.each_line
160
161
  @main.source(enum, "STDIN", 0)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: livetext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.67
4
+ version: 0.8.68
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hal Fulton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-10 00:00:00.000000000 Z
11
+ date: 2019-04-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A smart text processor extensible in Ruby
14
14
  email: rubyhacker@gmail.com
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
148
  version: '0'
149
149
  requirements: []
150
150
  rubyforge_project:
151
- rubygems_version: 2.2.2
151
+ rubygems_version: 2.7.7
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: A smart processor for text