browserio 0.0.2 → 0.0.3
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/browserio/component.rb +2 -2
- data/lib/browserio/version.rb +1 -1
- data/lib/roda/plugins/browserio.rb +1 -3
- 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: 65263f95668ebcadb417c1a5ed22eca4cb8e0abc
|
|
4
|
+
data.tar.gz: 1ed66b53e9bf24c26e5bfe60750814cd4825f3a1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1946bc54bc94b2ec67d44b4191d1a48ae9cd145eb0fb18749ac43efb80bb555aa291582661efb7f346647657b07874f4c47af598c380c8f0533f0493c6421af9
|
|
7
|
+
data.tar.gz: 1900e69f3e53d2363c31dd0f94986b56ffb38c1864aa414b5a6d3b5e9cf6e7504466b192fcfb9a97edd5f236c5ee3f17c757f688f59d679059bba79faedb0d09
|
data/lib/browserio/component.rb
CHANGED
|
@@ -15,7 +15,7 @@ module BrowserIO
|
|
|
15
15
|
obj.bio_opts.init = args.delete(:init)
|
|
16
16
|
|
|
17
17
|
# Merge other args into opts
|
|
18
|
-
args.each { |a| a.each {|k, v| obj.bio_opts[k] = v } }
|
|
18
|
+
args.each { |a| a.each {|k, v| obj.bio_opts[k] = v } }
|
|
19
19
|
|
|
20
20
|
# Set all the requires
|
|
21
21
|
unless RUBY_ENGINE == 'opal'
|
|
@@ -41,7 +41,7 @@ module BrowserIO
|
|
|
41
41
|
|
|
42
42
|
public_instance_methods(false).each do |meth|
|
|
43
43
|
alias_method :"bio_original_#{meth}", :"#{meth}"
|
|
44
|
-
define_method "#{meth}" do |*d_args|
|
|
44
|
+
define_method "#{meth}" do |*d_args, &block|
|
|
45
45
|
if bio_opts.js
|
|
46
46
|
bio_opts.method_called = meth
|
|
47
47
|
bio_opts.method_args = *d_args
|
data/lib/browserio/version.rb
CHANGED
|
@@ -15,7 +15,7 @@ class Roda
|
|
|
15
15
|
when 'plugins'
|
|
16
16
|
v.each { |p| ::BrowserIO.config.plugin p }
|
|
17
17
|
when 'scope'
|
|
18
|
-
::BrowserIO.config.scope v.new
|
|
18
|
+
::BrowserIO.config.scope v.new
|
|
19
19
|
else
|
|
20
20
|
::BrowserIO.config.send(k, v)
|
|
21
21
|
end
|
|
@@ -27,8 +27,6 @@ class Roda
|
|
|
27
27
|
args << { scope: self }
|
|
28
28
|
::BrowserIO[*args]
|
|
29
29
|
end
|
|
30
|
-
alias_method :comp, :bio unless defined? comp
|
|
31
|
-
alias_method :component, :bio unless defined? component
|
|
32
30
|
end
|
|
33
31
|
|
|
34
32
|
module RequestClassMethods
|