rbjs 0.10.3 → 0.10.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rbjs.rb +3 -3
- data/lib/rbjs/version.rb +1 -1
- metadata +5 -6
data/lib/rbjs.rb
CHANGED
@@ -43,7 +43,7 @@ module Rbjs
|
|
43
43
|
if @_view_context and @_view_context.respond_to?(name)
|
44
44
|
@_view_context.send name, *args, &block
|
45
45
|
else
|
46
|
-
expression = Expression.new name, @_view_context, *args, &block
|
46
|
+
expression = Expression.new name.to_s.gsub('!', '()'), @_view_context, *args, &block
|
47
47
|
@_called_expressions << expression
|
48
48
|
expression
|
49
49
|
end
|
@@ -62,14 +62,14 @@ module Rbjs
|
|
62
62
|
|
63
63
|
def initialize name, view_context = nil, *args, &block
|
64
64
|
@child_expressions = []
|
65
|
-
@name = name.to_s
|
65
|
+
@name = name.to_s
|
66
66
|
@_view_context = view_context
|
67
67
|
args << block if block_given?
|
68
68
|
@arguments = args.map{|arg| to_argument(arg)}
|
69
69
|
end
|
70
70
|
|
71
71
|
def method_missing name, *args, &block
|
72
|
-
expression = Expression.new name, @_view_context, *args, &block
|
72
|
+
expression = Expression.new name.to_s.gsub('!', '()'), @_view_context, *args, &block
|
73
73
|
expression.parent_expression = self
|
74
74
|
@child_expressions << expression
|
75
75
|
expression
|
data/lib/rbjs/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbjs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-04-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|
16
|
-
requirement: &
|
16
|
+
requirement: &20234640 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *20234640
|
25
25
|
description: Remote Javascript Builder for Ruby on Rails
|
26
26
|
email:
|
27
27
|
- buhrmi@gmail.com
|
@@ -67,5 +67,4 @@ rubygems_version: 1.8.11
|
|
67
67
|
signing_key:
|
68
68
|
specification_version: 3
|
69
69
|
summary: Remote Javascript re-imagined
|
70
|
-
test_files:
|
71
|
-
- spec/rbjs_spec.rb
|
70
|
+
test_files: []
|