opal-connect 0.0.13 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opal/connect.rb +5 -3
- data/lib/opal/connect/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95fb28324af881c61bc29987d3d1fe527e8bb719
|
4
|
+
data.tar.gz: d6c5afedeb80966c6863c8900dc37e5ed6b37914
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9452f6abcc753dddfc85ad4b786f444ab175f038075646ae0cc387026ac49e05198e86a5b01987417332a661c7353825a1a445e8a3bfad3c43deb8f394e63f03
|
7
|
+
data.tar.gz: aa24cf63d004be9ae549dfcc6cd85ab7137688216f041ba36a0cef380041f6a031f2a5015ec6f57a1e95d8a367eea679b3e02ec16e83eee889f51eaf8eb91dbe
|
data/lib/opal/connect.rb
CHANGED
@@ -31,10 +31,12 @@ module Opal
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def setup(&block)
|
34
|
-
|
34
|
+
if block_given?
|
35
|
+
instance_exec(&block)
|
35
36
|
|
36
|
-
|
37
|
-
|
37
|
+
# make sure we include the default plugins with connect
|
38
|
+
options[:plugins].each { |plug| Connect.plugin plug }
|
39
|
+
end
|
38
40
|
|
39
41
|
unless block_given?
|
40
42
|
options[:setup_blocks].each { |b| Class.new { include Opal::Connect }.instance_exec(&b) }
|
data/lib/opal/connect/version.rb
CHANGED