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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fac565acf190ffd552eb81d2704d2ca612e1eb2a0d152b37b51e1fb9d8032f8e
4
- data.tar.gz: 5383e8ce7b433185de30a74e85f41b7237f44522fc1d9bbc9a05bb22ce401007
3
+ metadata.gz: fb694401c3fdd84230025058d770796fb3741f6f56f2fe1e5e9db5a6ac4f995f
4
+ data.tar.gz: 43e35745575b384489871792ddc8e2db2cbc9b40fc75c7c493afd46d15c91cf7
5
5
  SHA512:
6
- metadata.gz: 25dbdf40f1dde5ff9a0928f00886a77b610fcd989b81c511cdb1d1c6474ae1f6d70feb513daea37cfa4e1ba77bc85833eb28d4a78bbe9657d53f6f99fcd33fa2
7
- data.tar.gz: 20beb385d30ceb73543561f70d3a47e7bdd1d59832a0f7e765138d891da1d1682531048704e7cee08f9b7e9c28a0d88456a38b28ee5ecadf0be98b7949fd3ad1
6
+ metadata.gz: c2d3b68d55e8ecf4f34877e7078ec4c335f4da5f33a7cb435e569a93030332c79a75f8dcecd5613d0a548e195d88a3d2f91da41617f5da6c055dbe87942f462f
7
+ data.tar.gz: 62442194aa057be69fc7fc85c18c6c882f1e526bbff0ce9c22ef27ab459b81edcda868e8090e12d5c737b260812fd52193022bb936cf2ad2e6424e68fdc32480
data/lib/livetext.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  class Livetext
2
- VERSION = "0.8.85"
2
+ VERSION = "0.8.86"
3
3
  Path = File.expand_path(File.join(File.dirname(__FILE__)))
4
4
  end
5
5
 
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
- Dir.chdir("..") { _seek(file) unless Dir.pwd == "/" }
196
+ value = nil
197
+ value = _seek("../#{file}") unless Dir.pwd == "/"
197
198
  end
198
- return nil
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}\n#{meths}\nend"
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.85
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-24 00:00:00.000000000 Z
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