poke_js 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module PokeJs
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
@@ -31,8 +31,9 @@ module PokeJs
31
31
  end
32
32
  javascript = params.to_json
33
33
  if block_given?
34
- if yield
35
- javascript = "$.extend(#{yield}, #{javascript});"
34
+ generated_params = yield
35
+ if generated_params
36
+ javascript = "$.extend(#{generated_params}, #{javascript});"
36
37
  end
37
38
  end
38
39
  raw javascript
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poke_js
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-19 00:00:00.000000000 Z
12
+ date: 2013-05-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -75,15 +75,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
75
  - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
+ segments:
79
+ - 0
80
+ hash: 4368850175419377970
78
81
  required_rubygems_version: !ruby/object:Gem::Requirement
79
82
  none: false
80
83
  requirements:
81
84
  - - ! '>='
82
85
  - !ruby/object:Gem::Version
83
86
  version: '0'
87
+ segments:
88
+ - 0
89
+ hash: 4368850175419377970
84
90
  requirements: []
85
91
  rubyforge_project:
86
- rubygems_version: 1.8.24
92
+ rubygems_version: 1.8.25
87
93
  signing_key:
88
94
  specification_version: 3
89
95
  summary: Auto-magical scaffolding for the Garber-Irish Implementation way of organizing