livetext 0.6.2 → 0.6.3
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 +4 -4
- data/lib/livetext.rb +8 -5
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 291cf72853f4a3c83437254d13d2c0308089ba10
|
|
4
|
+
data.tar.gz: 1c6eb65091b8bcbfab35789771c4de81a5d65c43
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7f4b38ba1a9e2bd5849dd78775791d8d1aceb375a744803b4301f320dd48aefd22da2f6c7cfeec93798a4ccf748ae519f9d5dd676d61416c21eb6d51ba47e814
|
|
7
|
+
data.tar.gz: 43a847cd5c7b89c9959f84ce352666e2b6115262d56010db75c38468ddd69c169d72821830846f85d20dafedcfb6d0133c2ba3b74e3db1c6d4cd99becf74ba10
|
data/lib/livetext.rb
CHANGED
|
@@ -15,7 +15,7 @@ class Enumerator
|
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
class Livetext
|
|
18
|
-
VERSION = "0.6.
|
|
18
|
+
VERSION = "0.6.3"
|
|
19
19
|
|
|
20
20
|
Space = " "
|
|
21
21
|
|
|
@@ -112,7 +112,8 @@ class Livetext
|
|
|
112
112
|
obj.send(name)
|
|
113
113
|
end
|
|
114
114
|
rescue => err
|
|
115
|
-
STDERR.puts "ERROR on #{obj.file} line #{obj.lnum}"
|
|
115
|
+
STDERR.puts "ERROR on #{obj.file} line #{obj.lnum} : #{err}"
|
|
116
|
+
STDERR.puts " self = #{self.inspect} ivars = #{self.class.instance_variables}"
|
|
116
117
|
STDERR.puts err.backtrace
|
|
117
118
|
end
|
|
118
119
|
|
|
@@ -510,8 +511,10 @@ module Livetext::Standard
|
|
|
510
511
|
|
|
511
512
|
@_mixins << file
|
|
512
513
|
_pushfile(file)
|
|
513
|
-
newmod =
|
|
514
|
-
newmod.extend(
|
|
514
|
+
newmod = Livetext.main
|
|
515
|
+
newmod.extend(::Kernel)
|
|
516
|
+
newmod.extend(::Livetext::Standard)
|
|
517
|
+
newmod.extend(::Livetext::Helpers)
|
|
515
518
|
$mods << newmod
|
|
516
519
|
Object.const_set(name.capitalize, newmod)
|
|
517
520
|
newmod.instance_eval(File.read(file))
|
|
@@ -638,7 +641,7 @@ class Livetext::System < BasicObject
|
|
|
638
641
|
return
|
|
639
642
|
end
|
|
640
643
|
end
|
|
641
|
-
TTY.puts "Got here"
|
|
644
|
+
# TTY.puts "Got here"
|
|
642
645
|
_puts " Error: Method '#{name}' is not defined."
|
|
643
646
|
puts caller.map {|x| " " + x }
|
|
644
647
|
exit
|