livetext 0.8.85 → 0.8.86
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/livetext.rb +1 -1
- data/lib/processor.rb +1 -0
- data/lib/standard.rb +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb694401c3fdd84230025058d770796fb3741f6f56f2fe1e5e9db5a6ac4f995f
|
4
|
+
data.tar.gz: 43e35745575b384489871792ddc8e2db2cbc9b40fc75c7c493afd46d15c91cf7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2d3b68d55e8ecf4f34877e7078ec4c335f4da5f33a7cb435e569a93030332c79a75f8dcecd5613d0a548e195d88a3d2f91da41617f5da6c055dbe87942f462f
|
7
|
+
data.tar.gz: 62442194aa057be69fc7fc85c18c6c882f1e526bbff0ce9c22ef27ab459b81edcda868e8090e12d5c737b260812fd52193022bb936cf2ad2e6424e68fdc32480
|
data/lib/livetext.rb
CHANGED
data/lib/processor.rb
CHANGED
@@ -33,6 +33,7 @@ class Livetext
|
|
33
33
|
|
34
34
|
def _error!(err, abort=true, trace=false)
|
35
35
|
where = @sources.last || @save_location
|
36
|
+
puts "-- body = "
|
36
37
|
puts @parent.body
|
37
38
|
STDERR.puts "Error: #{err} (at #{where[1]} line #{where[2]})"
|
38
39
|
STDERR.puts err.backtrace if err.respond_to?(:backtrace) # && trace
|
data/lib/standard.rb
CHANGED
@@ -193,9 +193,10 @@ EOS
|
|
193
193
|
if File.exist?(file)
|
194
194
|
return file
|
195
195
|
else
|
196
|
-
|
196
|
+
value = nil
|
197
|
+
value = _seek("../#{file}") unless Dir.pwd == "/"
|
197
198
|
end
|
198
|
-
return
|
199
|
+
return value
|
199
200
|
rescue
|
200
201
|
return nil
|
201
202
|
end
|
@@ -254,7 +255,7 @@ EOS
|
|
254
255
|
@_mixins << name
|
255
256
|
meths = grab_file(file)
|
256
257
|
modname = name.gsub("/","_").capitalize
|
257
|
-
string = "module ::#{modname}
|
258
|
+
string = "module ::#{modname}; #{meths}\nend"
|
258
259
|
# puts "==========="
|
259
260
|
# string.each_line.with_index {|line, i| puts "#{'%3d' % (i+1)} : #{line}" }
|
260
261
|
# puts "==========="
|
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.86
|
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-05-
|
11
|
+
date: 2019-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A smart text processor extensible in Ruby
|
14
14
|
email: rubyhacker@gmail.com
|