tailog 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tailog/ext/irb.rb +4 -3
- data/lib/tailog/version.rb +1 -1
- 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: 3a8ba16a72fb2a428ba2c0f8c4259020a4af2af5
|
4
|
+
data.tar.gz: c53e4d86d01580261a0b407080547746dfc32133
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e6a1e775b9f4f30ec748a862308a763a4ffdf3208def9d70b49dfabdebad9936727c52c91a758aa68f0f9117f14fb3465f5a395b63b4aa386552f93147c2909
|
7
|
+
data.tar.gz: a6f9ca4cdb4509d87fbd0142702a6b853b60d9ac403ae764ac5c26697b9b8fa2c4e7ca17e85a87edaba8f46687e05990d2cfbc5f9ee2c2854617d373a611ac7e
|
data/lib/tailog/ext/irb.rb
CHANGED
@@ -1,17 +1,18 @@
|
|
1
1
|
require 'irb'
|
2
2
|
|
3
3
|
IRB.setup nil
|
4
|
-
IRB.conf[:PROMPT_MODE] = :DEFAULT
|
5
|
-
IRB.conf[:VERBOSE] = false
|
6
4
|
|
7
5
|
def IRB.Output
|
8
6
|
IRB.conf[:OUTPUT]
|
9
7
|
end
|
10
8
|
|
11
9
|
def IRB.evaluate_string string
|
10
|
+
IRB.conf[:PROMPT_MODE] = :DEFAULT
|
11
|
+
IRB.conf[:VERBOSE] = false
|
12
|
+
IRB.conf[:OUTPUT] = []
|
13
|
+
|
12
14
|
irb = IRB::Irb.new nil, StringInputMethod.new(string + "\n")
|
13
15
|
IRB.conf[:MAIN_CONTEXT] = irb.context
|
14
|
-
IRB.conf[:OUTPUT] = []
|
15
16
|
irb.eval_input
|
16
17
|
end
|
17
18
|
|
data/lib/tailog/version.rb
CHANGED