honkster-jelly 0.8.12 → 0.8.13

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -322,7 +322,7 @@ in the javascript, pages/stories.js:
322
322
 
323
323
  By default, ajax callbacks functions are scoped to the current Jelly page. But if you want, you can also direct ajax
324
324
  callbacks to functions on Jelly components or other Javascript objects in your application. To
325
- do this, send an `:on` paremeter to `jelly_callback`, for example.
325
+ do this, send an `:on` parameter to `jelly_callback`, for example.
326
326
 
327
327
  in the controller:
328
328
 
@@ -336,6 +336,12 @@ in the controller:
336
336
 
337
337
  This will call `CommonHandler.on_successful_create()` with the response.
338
338
 
339
+ ### Testing with Selenium
340
+
341
+ Rather than adding some delay after page/AJAX load to ensure Jelly's notification callbacks have completed, Jelly
342
+ now exposes the `Jelly.Observers.notifying` property. While Jelly is notifying observers, this property will be true.
343
+ Test scripts can wait for `Jelly.Observers.notifying == false` to ensure Jelly callbacks are complete.
344
+
339
345
  Jelly Development
340
346
  -----------------
341
347
 
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 8
3
- :patch: 12
3
+ :patch: 13
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.12
5
+ * version 0.8.13
6
6
  *
7
7
  * Copyright (c) 2009 Pivotal Labs
8
8
  * Licensed under the MIT license.
@@ -66,6 +66,8 @@ $.extend(Jelly, {
66
66
  if (this == Jelly) {
67
67
  return Jelly.Observers.notify.apply(this.observers, arguments);
68
68
  }
69
+ var previousNotifying = Jelly.Observers.notifying;
70
+ Jelly.Observers.notifying = true;
69
71
  if (!$.isArray(instructions)) {
70
72
  instructions = [instructions];
71
73
  }
@@ -94,6 +96,8 @@ $.extend(Jelly, {
94
96
  Jelly.Observers.attach.apply(this, instruction.attach);
95
97
  }
96
98
  }
99
+
100
+ Jelly.Observers.notifying = previousNotifying;
97
101
  },
98
102
 
99
103
  notifyObserver: function(observer, method, arguments) {
@@ -106,6 +110,8 @@ $.extend(Jelly, {
106
110
  }
107
111
  },
108
112
 
113
+ notifying: false,
114
+
109
115
  garbageCollectObserver: function(observer) {
110
116
  var index = this.indexOf(observer);
111
117
  if (index > -1) {
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.8.12"
8
+ s.version = "0.8.13"
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{2010-01-11}
12
+ s.date = %q{2010-01-12}
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 = [
@@ -41,26 +41,26 @@ Gem::Specification.new do |s|
41
41
  s.rubygems_version = %q{1.3.5}
42
42
  s.summary = %q{a sweet unobtrusive javascript framework for jQuery and Rails}
43
43
  s.test_files = [
44
- "spec/jelly/jelly_controller_spec.rb",
45
- "spec/jelly/common_spec.rb",
44
+ "spec/jelly/common_spec.rb",
45
+ "spec/jelly/jelly_controller_spec.rb",
46
46
  "spec/jelly/jelly_helper_spec.rb",
47
- "spec/spec_suite.rb",
48
- "spec/spec_helper.rb",
49
- "spec/rails_root/test/performance/browsing_test.rb",
50
- "spec/rails_root/test/test_helper.rb",
51
- "spec/rails_root/app/helpers/application_helper.rb",
52
47
  "spec/rails_root/app/controllers/application_controller.rb",
48
+ "spec/rails_root/app/helpers/application_helper.rb",
53
49
  "spec/rails_root/config/boot.rb",
54
50
  "spec/rails_root/config/environment.rb",
55
- "spec/rails_root/config/initializers/session_store.rb",
56
- "spec/rails_root/config/initializers/inflections.rb",
51
+ "spec/rails_root/config/environments/development.rb",
52
+ "spec/rails_root/config/environments/production.rb",
53
+ "spec/rails_root/config/environments/test.rb",
57
54
  "spec/rails_root/config/initializers/backtrace_silencers.rb",
58
- "spec/rails_root/config/initializers/new_rails_defaults.rb",
55
+ "spec/rails_root/config/initializers/inflections.rb",
59
56
  "spec/rails_root/config/initializers/mime_types.rb",
57
+ "spec/rails_root/config/initializers/new_rails_defaults.rb",
58
+ "spec/rails_root/config/initializers/session_store.rb",
60
59
  "spec/rails_root/config/routes.rb",
61
- "spec/rails_root/config/environments/production.rb",
62
- "spec/rails_root/config/environments/test.rb",
63
- "spec/rails_root/config/environments/development.rb"
60
+ "spec/rails_root/test/performance/browsing_test.rb",
61
+ "spec/rails_root/test/test_helper.rb",
62
+ "spec/spec_helper.rb",
63
+ "spec/spec_suite.rb"
64
64
  ]
65
65
 
66
66
  if s.respond_to? :specification_version then
@@ -1,7 +1,7 @@
1
1
  # Be sure to restart your server when you modify this file
2
2
 
3
3
  # Specifies gem version of Rails to use when vendor/rails is not present
4
- RAILS_GEM_VERSION = '2.3.4' unless defined? RAILS_GEM_VERSION
4
+ RAILS_GEM_VERSION = '>=2.3.0' unless defined? RAILS_GEM_VERSION
5
5
 
6
6
  # Bootstrap the Rails environment, frameworks, and default configuration
7
7
  require File.join(File.dirname(__FILE__), 'boot')
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.12
4
+ version: 0.8.13
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: 2010-01-11 00:00:00 -08:00
12
+ date: 2010-01-12 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -78,23 +78,23 @@ signing_key:
78
78
  specification_version: 3
79
79
  summary: a sweet unobtrusive javascript framework for jQuery and Rails
80
80
  test_files:
81
- - spec/jelly/jelly_controller_spec.rb
82
81
  - spec/jelly/common_spec.rb
82
+ - spec/jelly/jelly_controller_spec.rb
83
83
  - spec/jelly/jelly_helper_spec.rb
84
- - spec/spec_suite.rb
85
- - spec/spec_helper.rb
86
- - spec/rails_root/test/performance/browsing_test.rb
87
- - spec/rails_root/test/test_helper.rb
88
- - spec/rails_root/app/helpers/application_helper.rb
89
84
  - spec/rails_root/app/controllers/application_controller.rb
85
+ - spec/rails_root/app/helpers/application_helper.rb
90
86
  - spec/rails_root/config/boot.rb
91
87
  - spec/rails_root/config/environment.rb
92
- - spec/rails_root/config/initializers/session_store.rb
93
- - spec/rails_root/config/initializers/inflections.rb
88
+ - spec/rails_root/config/environments/development.rb
89
+ - spec/rails_root/config/environments/production.rb
90
+ - spec/rails_root/config/environments/test.rb
94
91
  - spec/rails_root/config/initializers/backtrace_silencers.rb
95
- - spec/rails_root/config/initializers/new_rails_defaults.rb
92
+ - spec/rails_root/config/initializers/inflections.rb
96
93
  - spec/rails_root/config/initializers/mime_types.rb
94
+ - spec/rails_root/config/initializers/new_rails_defaults.rb
95
+ - spec/rails_root/config/initializers/session_store.rb
97
96
  - spec/rails_root/config/routes.rb
98
- - spec/rails_root/config/environments/production.rb
99
- - spec/rails_root/config/environments/test.rb
100
- - spec/rails_root/config/environments/development.rb
97
+ - spec/rails_root/test/performance/browsing_test.rb
98
+ - spec/rails_root/test/test_helper.rb
99
+ - spec/spec_helper.rb
100
+ - spec/spec_suite.rb