rbjs 0.9.13 → 0.9.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/lib/rbjs.rb +1 -0
  2. data/lib/rbjs/version.rb +1 -1
  3. data/readme.md +12 -0
  4. metadata +2 -2
@@ -43,6 +43,7 @@ module Rbjs
43
43
  statement
44
44
  end
45
45
  end
46
+ alias_method :const_missing, :method_missing
46
47
 
47
48
  def << line
48
49
  @_called_statements << Statement.new(line)
@@ -1,3 +1,3 @@
1
1
  module Rbjs
2
- VERSION = "0.9.13"
2
+ VERSION = "0.9.14"
3
3
  end
data/readme.md CHANGED
@@ -98,4 +98,16 @@ and run _bundle install_ to install the gem and it's dependencies.
98
98
  element.html(currentValue+4)
99
99
  })
100
100
 
101
+ ### And even more stuff
102
+
103
+ # Raw Javascript:
104
+ self << 'myFunc($)'
105
+
106
+ # Hashes and Arrays
107
+ foo[3]= {name => @user.name}
108
+
109
+ # lambdas
110
+ func = lambda{ window.alert(@message)}
111
+ setTimeout func, 1000
112
+
101
113
  More to come.
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: rbjs
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.13
5
+ version: 0.9.14
6
6
  platform: ruby
7
7
  authors:
8
8
  - Stefan Buhrmester
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-11-03 00:00:00 Z
13
+ date: 2011-11-04 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json