jelly 0.5.5 → 0.5.7

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
+ :patch: 7
2
3
  :major: 0
3
4
  :minor: 5
4
- :patch: 5
@@ -27,16 +27,7 @@ if(!window.Jelly) Jelly = new Object();
27
27
  };
28
28
 
29
29
  $.ajaxWithJelly.onSuccess = function(json) {
30
- var context = json.on ? eval(json.on) : page;
31
- if(context[json.method]) {
32
- context[json.method].apply(context, json.arguments);
33
- }
34
- $.protify(page.components).each(function(componentAndArgs) {
35
- var component = componentAndArgs[0];
36
- if(component[json.method]) {
37
- component[json.method].apply(component, json.arguments);
38
- }
39
- });
30
+ Jelly.notifyObservers(json);
40
31
  return true;
41
32
  };
42
33
  })(jQuery);
@@ -45,6 +45,19 @@ Jelly.initComponents = function() {
45
45
  });
46
46
  };
47
47
 
48
+ Jelly.notifyObservers = function(params) {
49
+ var context = params.on ? eval(params.on) : page;
50
+ if(context[params.method]) {
51
+ context[params.method].apply(params, params.arguments);
52
+ }
53
+ $.protify(page.components).each(function(componentAndArgs) {
54
+ var component = componentAndArgs[0];
55
+ if(component[params.method]) {
56
+ component[params.method].apply(component, params.arguments);
57
+ }
58
+ });
59
+ };
60
+
48
61
  Jelly.Page = function(name) {
49
62
  this.name = name;
50
63
  this.components = [];
data/jelly.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{jelly}
8
- s.version = "0.5.5"
8
+ s.version = "0.5.7"
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"]
12
- s.date = %q{2009-10-01}
12
+ s.date = %q{2009-10-08}
13
13
  s.description = %q{Jelly provides a set of tools and conventions for creating rich ajax/javascript web applications with jQuery and Ruby on Rails.}
14
14
  s.email = %q{opensource@pivotallabs.com}
15
15
  s.extra_rdoc_files = [
@@ -42,24 +42,24 @@ Gem::Specification.new do |s|
42
42
  s.rubygems_version = %q{1.3.5}
43
43
  s.summary = %q{a sweet unobtrusive javascript framework for jQuery and Rails}
44
44
  s.test_files = [
45
- "spec/helpers/jelly_helper_spec.rb",
46
- "spec/controllers/jelly_controller_spec.rb",
45
+ "spec/controllers/jelly_controller_spec.rb",
47
46
  "spec/spec_helper.rb",
48
- "spec/rails_root/test/performance/browsing_test.rb",
49
- "spec/rails_root/test/test_helper.rb",
50
- "spec/rails_root/app/helpers/application_helper.rb",
51
47
  "spec/rails_root/app/controllers/application_controller.rb",
52
- "spec/rails_root/config/boot.rb",
48
+ "spec/rails_root/app/helpers/application_helper.rb",
53
49
  "spec/rails_root/config/environment.rb",
54
- "spec/rails_root/config/initializers/session_store.rb",
55
- "spec/rails_root/config/initializers/inflections.rb",
56
- "spec/rails_root/config/initializers/backtrace_silencers.rb",
57
50
  "spec/rails_root/config/initializers/new_rails_defaults.rb",
58
51
  "spec/rails_root/config/initializers/mime_types.rb",
59
- "spec/rails_root/config/routes.rb",
52
+ "spec/rails_root/config/initializers/session_store.rb",
53
+ "spec/rails_root/config/initializers/backtrace_silencers.rb",
54
+ "spec/rails_root/config/initializers/inflections.rb",
60
55
  "spec/rails_root/config/environments/production.rb",
61
56
  "spec/rails_root/config/environments/test.rb",
62
- "spec/rails_root/config/environments/development.rb"
57
+ "spec/rails_root/config/environments/development.rb",
58
+ "spec/rails_root/config/routes.rb",
59
+ "spec/rails_root/config/boot.rb",
60
+ "spec/rails_root/test/performance/browsing_test.rb",
61
+ "spec/rails_root/test/test_helper.rb",
62
+ "spec/helpers/jelly_helper_spec.rb"
63
63
  ]
64
64
 
65
65
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jelly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal Labs, Inc
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-01 00:00:00 -07:00
12
+ date: 2009-10-08 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -79,21 +79,21 @@ signing_key:
79
79
  specification_version: 3
80
80
  summary: a sweet unobtrusive javascript framework for jQuery and Rails
81
81
  test_files:
82
- - spec/helpers/jelly_helper_spec.rb
83
82
  - spec/controllers/jelly_controller_spec.rb
84
83
  - spec/spec_helper.rb
85
- - spec/rails_root/test/performance/browsing_test.rb
86
- - spec/rails_root/test/test_helper.rb
87
- - spec/rails_root/app/helpers/application_helper.rb
88
84
  - spec/rails_root/app/controllers/application_controller.rb
89
- - spec/rails_root/config/boot.rb
85
+ - spec/rails_root/app/helpers/application_helper.rb
90
86
  - spec/rails_root/config/environment.rb
91
- - spec/rails_root/config/initializers/session_store.rb
92
- - spec/rails_root/config/initializers/inflections.rb
93
- - spec/rails_root/config/initializers/backtrace_silencers.rb
94
87
  - spec/rails_root/config/initializers/new_rails_defaults.rb
95
88
  - spec/rails_root/config/initializers/mime_types.rb
96
- - spec/rails_root/config/routes.rb
89
+ - spec/rails_root/config/initializers/session_store.rb
90
+ - spec/rails_root/config/initializers/backtrace_silencers.rb
91
+ - spec/rails_root/config/initializers/inflections.rb
97
92
  - spec/rails_root/config/environments/production.rb
98
93
  - spec/rails_root/config/environments/test.rb
99
94
  - spec/rails_root/config/environments/development.rb
95
+ - spec/rails_root/config/routes.rb
96
+ - spec/rails_root/config/boot.rb
97
+ - spec/rails_root/test/performance/browsing_test.rb
98
+ - spec/rails_root/test/test_helper.rb
99
+ - spec/helpers/jelly_helper_spec.rb