tailog 0.5.6 → 0.5.7

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: 3a8ba16a72fb2a428ba2c0f8c4259020a4af2af5
4
- data.tar.gz: c53e4d86d01580261a0b407080547746dfc32133
3
+ metadata.gz: 76033882e8d86c028027768904d1335c64a3dada
4
+ data.tar.gz: 989463205a1c822a3c900899a6a7985408328652
5
5
  SHA512:
6
- metadata.gz: 6e6a1e775b9f4f30ec748a862308a763a4ffdf3208def9d70b49dfabdebad9936727c52c91a758aa68f0f9117f14fb3465f5a395b63b4aa386552f93147c2909
7
- data.tar.gz: a6f9ca4cdb4509d87fbd0142702a6b853b60d9ac403ae764ac5c26697b9b8fa2c4e7ca17e85a87edaba8f46687e05990d2cfbc5f9ee2c2854617d373a611ac7e
6
+ metadata.gz: e1aa0dbbf913c5aeafef44fbe137846687010b7abb5281aea89774954af2249f47c3a7bf83770e6bcffdcff896ace016d284dc932bac39f2dd786efd8c0df569
7
+ data.tar.gz: 0f6ce5b5f1c41c94dd20e742ae4a4250d64279a3cf966ce0b05733ca94c3650ed967e242922c009438b215dd792c5485fd93a6b5f41f46aad09c3992ede87101
@@ -8,6 +8,7 @@
8
8
  <option value="ruby_debug">Ruby (Debug Mode)</option>
9
9
  <option value="bash">Bash</option>
10
10
  </select>
11
+ <button id="broadcast-button" type="submit" class="btn btn-danger">Broadcast</button>
11
12
  <button id="submit-button" type="submit" class="btn btn-primary">Submit</button>
12
13
  </div>
13
14
  <div>
@@ -17,6 +18,24 @@
17
18
 
18
19
  <div id="content"></div>
19
20
 
21
+ <div class="modal fade" tabindex="-1" role="dialog" id="broadcast-modal">
22
+ <div class="modal-dialog" role="document">
23
+ <div class="modal-content">
24
+ <div class="modal-header">
25
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
26
+ <h4 class="modal-title">Modal title</h4>
27
+ </div>
28
+ <div class="modal-body">
29
+ <p>One fine body&hellip;</p>
30
+ </div>
31
+ <div class="modal-footer">
32
+ <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
33
+ <button type="button" class="btn btn-primary">Save changes</button>
34
+ </div>
35
+ </div><!-- /.modal-content -->
36
+ </div><!-- /.modal-dialog -->
37
+ </div><!-- /.modal -->
38
+
20
39
  <script type="text/javascript" src="javascripts/codemirror.js"></script>
21
40
  <script type="text/javascript" src="javascripts/mode/ruby.js"></script>
22
41
  <script type="text/javascript" src="javascripts/mode/shell.js"></script>
@@ -28,7 +47,7 @@
28
47
  editor.replaceSelection(spaces);
29
48
  };
30
49
  CodeMirror.keyMap.default[(mac ? "Cmd" : "Ctrl") + "-Enter"] = function(editor) {
31
- $("#submit-button").trigger('click');
50
+ $("#submit-button").trigger("click");
32
51
  };
33
52
 
34
53
  var editor = CodeMirror.fromTextArea($("#editor")[0], {
@@ -48,27 +67,36 @@
48
67
 
49
68
  var $content = $("#content");
50
69
 
51
- $('#script').ajaxForm({
52
- beforeSend: function() {
53
- $content
54
- .html('<hr/>')
55
- .append('<span class="text-info">Loading...</span>')
56
- },
57
- error: function() {
58
- $content
59
- .html('<hr/>')
60
- .append('<span class="text-danger">Oops! Something went wrong, please try again later!</span>')
61
- },
62
- success: function(json) {
63
- try {
64
- var data = JSON.parse(json);
70
+ $("#broadcast-button").click(function(event) {
71
+ event.preventDefault();
72
+ $("#broadcast-modal").addClass("in");
73
+ });
74
+
75
+ $("#submit-button").click(function(event) {
76
+ event.preventDefault();
77
+ $("#script").ajaxSubmit({
78
+ beforeSend: function() {
65
79
  $content
66
- .html('<hr/>')
67
- .append('<span class="text-info">' + data.server_hostname + '</span>')
68
- .append(ansi_up.ansi_to_html(data.content));
69
- } catch (error) {
70
- console.log(error)
80
+ .html("<hr/>")
81
+ .append('<span class="text-info">Loading...</span>')
82
+ },
83
+ error: function() {
84
+ $content
85
+ .html("<hr/>")
86
+ .append('<span class="text-danger">Oops! Something went wrong, please try again later!</span>')
87
+ },
88
+ success: function(json) {
89
+ try {
90
+ var data = JSON.parse(json);
91
+ $content
92
+ .html("<hr/>")
93
+ .append('<span class="text-info">' + data.server_hostname + "</span>")
94
+ .append(ansi_up.ansi_to_html(data.content));
95
+ } catch (error) {
96
+ console.log(error)
97
+ }
71
98
  }
72
- }
99
+ });
73
100
  });
101
+
74
102
  </script>
@@ -1,6 +1,8 @@
1
1
  require 'irb'
2
2
 
3
- IRB.setup nil
3
+ IRB.init_config nil
4
+ IRB.conf[:PROMPT_MODE] = :DEFAULT
5
+ IRB.conf[:VERBOSE] = false
4
6
 
5
7
  def IRB.Output
6
8
  IRB.conf[:OUTPUT]
@@ -1,3 +1,3 @@
1
1
  module Tailog
2
- VERSION = "0.5.6"
2
+ VERSION = "0.5.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tailog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - bbtfr