opal-connect 0.0.17 → 0.0.18

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: ee959320a5cbdf308479131768064ec42ade8068
4
- data.tar.gz: d1896963c743babb0babc30d2d5b50081467d23c
3
+ metadata.gz: f2e57162da7ac4bd3fc41ada4606bd64205fcad1
4
+ data.tar.gz: 0bb2a2454b6940f77fdfb0557a89328cf5063019
5
5
  SHA512:
6
- metadata.gz: 5db98e67c0ddf581009ac6ef0e5fe17793b1b67c6feaad6ce95497df8462671fcfc63e58abf8e4b95f6ff225ce813627cbdd3130bc91a37c982389258f15e0c5
7
- data.tar.gz: 9b1300d652d4bb05eb1d2ef1f4b4f3ca2ced569aef423535a496ad2e9bb7ee544dbefa20ca8c12cc84ad66df5bff60307d36fe7e38b85ba3bc990357f6385309
6
+ metadata.gz: 1ab4f5a1339d0b8a55ec6bae2d91a3eab616e3262ee007b9529f21d42be1239ca134733e3adc0397c52cb067dda7129b85c7622dbb7310ee3b801bd20ee94543
7
+ data.tar.gz: cee41da3f156eb5777a24eeb4ca9721f986b4313032ae62b13ab31318b017aadf0d01cb79ad21f0dfc65bf6521216a021a29b6a94d5b2a0ff47315cec622b6fd
@@ -38,18 +38,7 @@ module Opal
38
38
  end
39
39
 
40
40
  unless block_given?
41
- options[:setup_blocks].each do |b|
42
- klass = Class.new do
43
- include Opal::Connect
44
-
45
- class << self
46
- attr_accessor :class_name
47
- end
48
- end
49
- klass.class_name = b[:klass].name
50
-
51
- klass.instance_exec(&b[:block])
52
- end
41
+ options[:setup_blocks].each { |b| b[:klass].instance_exec(&b[:block]) }
53
42
  end
54
43
  end
55
44
 
@@ -42,7 +42,7 @@ module Opal
42
42
  end
43
43
 
44
44
  def cache
45
- @cache ||= (Connect.templates[self.class_name] ||= {})
45
+ @cache ||= (Connect.templates[self.name] ||= {})
46
46
  end
47
47
 
48
48
  def html(scope = false, &block)
@@ -1,5 +1,5 @@
1
1
  module Opal
2
2
  module Connect
3
- VERSION = "0.0.17"
3
+ VERSION = "0.0.18"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opal-connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.17
4
+ version: 0.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj