opal-connect 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/opal/connect/plugins/dom.rb +1 -1
- data/lib/opal/connect/plugins/html.rb +6 -0
- data/lib/opal/connect/rake_task.rb +1 -1
- data/lib/opal/connect/version.rb +1 -1
- data/lib/opal/connect.rb +2 -5
- 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: 83e6293b5dbdeba0a0e8e18b2f3ca15f95f1211a
|
|
4
|
+
data.tar.gz: 4c1ee68c4524e0a4ae159554741fc16794ebac14
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9791c43599a091ce63bf40eebbc4e12804d6fdb4a1e13bffeb476af1a07a829ec78c003f9eccae4a0e3c0d1b82cd719787499aca9a6a78c3d0224f524fb763c6
|
|
7
|
+
data.tar.gz: 1fe4fd8d48d19000bc79aa84629228a94f9901ae94105b8273c6ea442a7fe56f18a49d4794ceb366951e1ea9d54cacb7d57f781fdf94f95021114ae2748ebaaf
|
|
@@ -17,7 +17,7 @@ module Opal
|
|
|
17
17
|
|
|
18
18
|
unless File.exist? opal_file_path
|
|
19
19
|
builder = Opal::Builder.new
|
|
20
|
-
build_str = '`require("expose?$!expose?jQuery!jquery")`; require "opal"; require "opal-jquery"; require "opal/connect";
|
|
20
|
+
build_str = '`require("expose?$!expose?jQuery!jquery")`; require "opal"; require "opal-jquery"; require "opal/connect";'
|
|
21
21
|
builder.build_str(build_str, '(inline)', { dynamic_require_severity: :ignore })
|
|
22
22
|
File.write opal_file_path, builder.to_s
|
|
23
23
|
end
|
data/lib/opal/connect/version.rb
CHANGED
data/lib/opal/connect.rb
CHANGED
|
@@ -211,13 +211,10 @@ module Opal
|
|
|
211
211
|
module InstanceMethods
|
|
212
212
|
if RUBY_ENGINE != 'opal'
|
|
213
213
|
def render(method, *options, &block)
|
|
214
|
-
if
|
|
215
|
-
hl = {} unless hl.is_a? Hash
|
|
216
|
-
hl = { host: 'http://localhost', port: 8080 }.merge hl
|
|
217
|
-
|
|
214
|
+
if Connect.options[:hot_reload]
|
|
218
215
|
Connect.write_entry_file(self, method, *options)
|
|
219
216
|
|
|
220
|
-
"#{public_send(method, *options, &block)}
|
|
217
|
+
"#{public_send(method, *options, &block)}"
|
|
221
218
|
else
|
|
222
219
|
js = Connect.build Connect.javascript(self, method, *options)
|
|
223
220
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: opal-connect
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- cj
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-05-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: opal
|