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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dbe0ce3cbc6cfee5b3f0654a74e6c1b7b88e3095
4
- data.tar.gz: 64b6ce2ddab91b524011d8d9e826ad70df0c5c42
3
+ metadata.gz: f4e02eb1f8f29a44ec3985de4aaea291831bcd84
4
+ data.tar.gz: fc135be930a19ac583821960be03aa4a4a414b68
5
5
  SHA512:
6
- metadata.gz: 4a8eabf2bd84d64aebb6bf3670ff0a6cfb87b8661b1992838f2a58fdb569754cce0f07f842bb3207554b60f376860a6390998e9fe241af73e5d0d48a86d81821
7
- data.tar.gz: 390fb9fbc007d02fd2d6a9acaec2adad9aa4e0e2c011475d8b05a674df2c85081ef852129e7c64e1f0fdb5f84e44ca5920a78bff2275c921fe7c95ce3d569c61
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 %>
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Tailog
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.4"
3
3
  end
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.2
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-21 00:00:00.000000000 Z
11
+ date: 2016-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra