livetext 0.8.67 → 0.8.68
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/livetext.rb +4 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 83136304b53cb3600221cb554f38b40937176e2d9299c066fe67982dddece8d6
|
4
|
+
data.tar.gz: fb45dd27a9ca99f51677211f5c8b63f0452a70ce2e5a7ab558c08e0c3422f6f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9cd30f68b0a08dd0652ac22c35557bb22d38e7f7a556bdbcb0e66c5110c59f4c6c413fe97f6c1fc044cb7488c972049cfcf7b936b78ce9e1e3cbcde57d87bd2c
|
7
|
+
data.tar.gz: 7f7e4170486fe02c0235e986643d2a99a77c2292005848d821550268b690e7d03113a1d81660b51acdc4f41d735fd82d09385cc137cb3cf8fba2e292a19c5653
|
data/lib/livetext.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
class Livetext
|
2
|
-
VERSION = "0.8.
|
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
|
-
|
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.
|
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-
|
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.
|
151
|
+
rubygems_version: 2.7.7
|
152
152
|
signing_key:
|
153
153
|
specification_version: 4
|
154
154
|
summary: A smart processor for text
|