pivotal-jelly 0.5.1 → 0.5.3

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: 1
3
- :major: 0
4
2
  :minor: 5
3
+ :patch: 3
4
+ :major: 0
@@ -25,14 +25,18 @@ Jelly.add = function(name) {
25
25
  var page;
26
26
  Jelly.activatePage = function(controllerName, actionName) {
27
27
  page = Jelly.all[controllerName] || new Jelly.Page(controllerName);
28
- $(document).ready(function() {
29
- Jelly.Page.all();
30
- if(page.all) page.all();
31
- if(page[actionName]) page[actionName].call(page);
32
- page.loaded = true;
28
+ $(document).ready(function(){
29
+ Jelly._activatePage(actionName);
33
30
  });
34
31
  };
35
32
 
33
+ Jelly._activatePage = function(actionName){
34
+ if(page.all) page.all();
35
+ if(page[actionName]) page[actionName].call(page);
36
+ Jelly.Page.all();
37
+ page.loaded = true;
38
+ };
39
+
36
40
  Jelly.Page = function(name) {
37
41
  this.name = name;
38
42
  Jelly.all[name] = this;
@@ -74,4 +78,4 @@ Jelly.Page.prototype.attach = function(component, args) {
74
78
  };
75
79
  });
76
80
  Jelly.Page.components.push([component, args]);
77
- };
81
+ };
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.1"
8
+ s.version = "0.5.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"]
12
- s.date = %q{2009-09-10}
12
+ s.date = %q{2009-09-14}
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 = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivotal-jelly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.3
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-09-10 00:00:00 -07:00
12
+ date: 2009-09-14 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -52,6 +52,7 @@ files:
52
52
  - uninstall.rb
53
53
  has_rdoc: false
54
54
  homepage: http://github.com/pivotal/jelly
55
+ licenses:
55
56
  post_install_message:
56
57
  rdoc_options:
57
58
  - --charset=UTF-8
@@ -72,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
73
  requirements: []
73
74
 
74
75
  rubyforge_project:
75
- rubygems_version: 1.2.0
76
+ rubygems_version: 1.3.5
76
77
  signing_key:
77
78
  specification_version: 3
78
79
  summary: a sweet unobtrusive javascript framework for jQuery and Rails