opal-irb 0.7.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog.org +6 -0
- data/Gemfile +8 -4
- data/Gemfile.lock +29 -59
- data/README.md +10 -2
- data/Rakefile +22 -25
- data/Roadmap.org +5 -3
- data/compiled/app-embeddable.js +4044 -1946
- data/compiled/app-jqconsole.js +4044 -1946
- data/compiled/application.js +3490 -1583
- data/css/opal_irb_jqconsole.css +1 -8
- data/index-embeddable.html +10 -0
- data/lib/opal-irb/version.rb +1 -1
- data/opal-irb.gemspec +2 -2
- data/opal/object_extensions.rb +8 -0
- data/opal/opal_irb_jqconsole.rb +3 -12
- data/opal/timeout.rb +9 -0
- metadata +12 -10
data/css/opal_irb_jqconsole.css
CHANGED
@@ -1,10 +1,3 @@
|
|
1
|
-
html, body {
|
2
|
-
background-color: #333;
|
3
|
-
color: white;
|
4
|
-
font-family: monospace;
|
5
|
-
margin: 0;
|
6
|
-
padding: 0;
|
7
|
-
}
|
8
1
|
#opal-irb-console-bottom-panel {
|
9
2
|
width: 100%;
|
10
3
|
position: fixed;
|
@@ -69,7 +62,7 @@ span.boxclose, a.boxclose{
|
|
69
62
|
font-weight: bold;
|
70
63
|
display: inline-block;
|
71
64
|
line-height: 0px;
|
72
|
-
padding: 11px 3px;
|
65
|
+
padding: 11px 3px;
|
73
66
|
}
|
74
67
|
#opal-irb-console-topbar {
|
75
68
|
background-color: #AAA;
|
data/index-embeddable.html
CHANGED
@@ -18,6 +18,16 @@
|
|
18
18
|
<script type="text/javascript" src="http://codemirror.net/keymap/emacs.js"></script>
|
19
19
|
<script src="http://codemirror.net/mode/ruby/ruby.js"></script>
|
20
20
|
<script src="compiled/app-embeddable.js"></script>
|
21
|
+
|
22
|
+
<style>
|
23
|
+
html, body {
|
24
|
+
background-color: #333;
|
25
|
+
color: white;
|
26
|
+
font-family: monospace;
|
27
|
+
margin: 0;
|
28
|
+
padding: 0;
|
29
|
+
}
|
30
|
+
</style>
|
21
31
|
</head>
|
22
32
|
<body>
|
23
33
|
<button id="show-irb">Show Irb</button>
|
data/lib/opal-irb/version.rb
CHANGED
data/opal-irb.gemspec
CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.files = `git ls-files`.split("\n")
|
14
14
|
s.require_paths = ['lib']
|
15
15
|
|
16
|
-
s.add_dependency 'opal', '~> 0.
|
17
|
-
s.add_dependency 'opal-jquery'
|
16
|
+
s.add_dependency 'opal', '~> 0.8.0'
|
17
|
+
s.add_dependency 'opal-jquery', '~> 0.4.0'
|
18
18
|
|
19
19
|
s.add_development_dependency 'rake'
|
20
20
|
end
|
data/opal/object_extensions.rb
CHANGED
data/opal/opal_irb_jqconsole.rb
CHANGED
@@ -5,22 +5,12 @@ require 'opal_irb'
|
|
5
5
|
require 'opal_irb/completion_engine'
|
6
6
|
require 'opal_irb/completion_formatter'
|
7
7
|
require 'jqconsole'
|
8
|
-
|
8
|
+
require 'timeout'
|
9
9
|
# top level methods for irb cmd line
|
10
10
|
def irb_link_for history_num=nil
|
11
11
|
OpalIrbJqconsole.console.irb_link_for history_num
|
12
12
|
end
|
13
13
|
|
14
|
-
class Timeout
|
15
|
-
def initialize(time=0, &block)
|
16
|
-
@timeout = `setTimeout(#{block}, time)`
|
17
|
-
end
|
18
|
-
|
19
|
-
def clear
|
20
|
-
`clearTimeout(#{@timeout})`
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
14
|
# module Kernel
|
25
15
|
# # just like osx's say command, only tested on desktop safari and chrome on osx
|
26
16
|
# def say msg
|
@@ -373,7 +363,8 @@ EDITOR
|
|
373
363
|
var msg = new SpeechSynthesisUtterance(#{msg});
|
374
364
|
window.speechSynthesis.speak(msg);
|
375
365
|
|
|
376
|
-
end'
|
366
|
+
end',
|
367
|
+
'_ = nil'
|
377
368
|
|
378
369
|
]
|
379
370
|
def setup_cmd_line_methods
|
data/opal/timeout.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opal-irb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-09-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: opal
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.8.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,23 +26,23 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.8.0
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: opal-jquery
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
none: false
|
34
34
|
requirements:
|
35
|
-
- -
|
35
|
+
- - ~>
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version:
|
37
|
+
version: 0.4.0
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
41
|
none: false
|
42
42
|
requirements:
|
43
|
-
- -
|
43
|
+
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
45
|
+
version: 0.4.0
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: rake
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -68,6 +68,7 @@ files:
|
|
68
68
|
- .gitignore
|
69
69
|
- .ruby-gemset
|
70
70
|
- .ruby-version
|
71
|
+
- Changelog.org
|
71
72
|
- Gemfile
|
72
73
|
- Gemfile.lock
|
73
74
|
- Guardfile
|
@@ -110,6 +111,7 @@ files:
|
|
110
111
|
- opal/opal_irb_jqconsole_css.rb
|
111
112
|
- opal/opal_irb_log_redirector.rb
|
112
113
|
- opal/opal_phantomjs.rb
|
114
|
+
- opal/timeout.rb
|
113
115
|
- spec/code_link_handler_spec.rb
|
114
116
|
- spec/jquery.js
|
115
117
|
- spec/object_extensions_spec.rb
|
@@ -132,7 +134,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
132
134
|
version: '0'
|
133
135
|
segments:
|
134
136
|
- 0
|
135
|
-
hash:
|
137
|
+
hash: 3661347610369629272
|
136
138
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
139
|
none: false
|
138
140
|
requirements:
|
@@ -141,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
143
|
version: '0'
|
142
144
|
segments:
|
143
145
|
- 0
|
144
|
-
hash:
|
146
|
+
hash: 3661347610369629272
|
145
147
|
requirements: []
|
146
148
|
rubyforge_project:
|
147
149
|
rubygems_version: 1.8.23.2
|