honkster-jelly 0.8.2 → 0.8.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.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 8
3
- :patch: 2
3
+ :patch: 3
4
4
  :major: 0
@@ -2,7 +2,7 @@
2
2
  * Jelly. a sweet unobtrusive javascript framework
3
3
  * for jQuery and Rails
4
4
  *
5
- * version 0.8.2
5
+ * version 0.8.3
6
6
  *
7
7
  * Copyright (c) 2009 Pivotal Labs
8
8
  * Licensed under the MIT license.
data/jelly.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jelly}
8
- s.version = "0.8.2"
8
+ s.version = "0.8.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Pivotal Labs, Inc"]
@@ -29,19 +29,13 @@ module JellyController
29
29
  when :iframe
30
30
  "<textarea>#{jelly_callback_erb_template}</textarea>"
31
31
  when :jsonp
32
- @jsonp_callback = params[:callback]
33
- jelly_callback_erb_template
32
+ "#{params[:callback]}(#{jelly_callback_erb_template});"
34
33
  else
35
34
  jelly_callback_erb_template
36
35
  end
37
36
  end
38
37
 
39
38
  def jelly_callback_erb_template
40
- <<-ERB
41
- <%= begin
42
- json = instance_eval(&@jelly_block).to_json
43
- @jsonp_callback ? "\#{@jsonp_callback}(\#{json});" : json
44
- end %>
45
- ERB
39
+ "<%= instance_eval(&@jelly_block).to_json %>"
46
40
  end
47
41
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: honkster-jelly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal Labs, Inc