honkster-jelly 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 7
3
- :patch: 0
3
+ :patch: 1
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.6.6
5
+ * version 0.7.0
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.6.6"
8
+ s.version = "0.7.1"
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"]
data/lib/jelly/common.rb CHANGED
@@ -3,5 +3,9 @@ module Jelly
3
3
  def jelly_callback_hash(method, *arguments)
4
4
  {"method" => method, "arguments" => arguments}
5
5
  end
6
+
7
+ def jelly_attach_component_definition_hash(component_name, *args)
8
+ {'component' => component_name, 'arguments' => args}
9
+ end
6
10
  end
7
11
  end
@@ -32,14 +32,14 @@ module JellyHelper
32
32
  end
33
33
 
34
34
  def attach_javascript_component(component_name, *args)
35
- key = {'component' => component_name, 'arguments' => args}
35
+ key = jelly_attach_component_definition_hash(component_name, *args)
36
36
  unless jelly_attached_components.include? key
37
37
  jelly_attached_components << key
38
38
  end
39
39
  end
40
40
 
41
41
  def attach_javascript_component_on_ready(component_name, *args)
42
- key = {'component' => component_name, 'arguments' => args}
42
+ key = jelly_attach_component_definition_hash(component_name, *args)
43
43
  unless jelly_attached_components_on_ready.include? key
44
44
  jelly_attached_components_on_ready << key
45
45
  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.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal Labs, Inc