tailog 0.5.2 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/script/ruby_debug.erb +2 -2
- data/lib/tailog/ext/irb.rb +7 -0
- data/lib/tailog/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4e02eb1f8f29a44ec3985de4aaea291831bcd84
|
4
|
+
data.tar.gz: fc135be930a19ac583821960be03aa4a4a414b68
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9451c0b0514a919914f6d1226befe2a8fdc97009787b0f55c577e3295503249dbe95f1dcae73eedf7a44a4b5dbc180945a2a5d7a6fd9b68b2b2e8cc36b0b582
|
7
|
+
data.tar.gz: c6c4991a1dcdf98b5d440eb4b5f04ed5b853ef3960e451c81c10011eb77a236788f0e49a5f14ee7b2022ac65d348d685e3bc58d7e722c99436f203f2735a8ab3
|
@@ -8,9 +8,9 @@
|
|
8
8
|
<% IRB.Output.each do |key, line| %>
|
9
9
|
<% case key %>
|
10
10
|
<% when :stdin %>
|
11
|
-
<p><%= h line %></p>
|
12
|
-
<% when :stdout %>
|
13
11
|
<p class="text-info"><%= h line %></p>
|
12
|
+
<% when :stdout %>
|
13
|
+
<p><%= h line %></p>
|
14
14
|
<% when :stderr %>
|
15
15
|
<p class="text-danger"><%= h line %></p>
|
16
16
|
<% end %>
|
data/lib/tailog/ext/irb.rb
CHANGED
@@ -6,6 +6,13 @@ def IRB.Output
|
|
6
6
|
IRB.conf[:OUTPUT]
|
7
7
|
end
|
8
8
|
|
9
|
+
def IRB.evaluate_string string
|
10
|
+
irb = IRB::Irb.new nil, StringInputMethod.new(string + "\n")
|
11
|
+
IRB.conf[:MAIN_CONTEXT] = irb.context
|
12
|
+
IRB.conf[:OUTPUT] = []
|
13
|
+
irb.eval_input
|
14
|
+
end
|
15
|
+
|
9
16
|
class IRB::WorkSpace
|
10
17
|
def evaluate(context, statements, file = __FILE__, line = __LINE__)
|
11
18
|
@after_ruby_debug_erb = false
|
data/lib/tailog/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tailog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bbtfr
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|