pivotal-jelly 0.4.0 → 0.5.0

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
- :minor: 3
3
- :patch: 5
2
+ :patch: 0
4
3
  :major: 0
4
+ :minor: 5
@@ -1,15 +1,21 @@
1
- (function($) {
1
+ (defineAjaxWithJellyFunctions = function($) {
2
2
  $.ajaxWithJelly = function(params) {
3
3
  $.ajax($.ajaxWithJelly.params(params));
4
4
  };
5
5
 
6
+ if ($.fn.ajaxForm) {
7
+ $.fn.ajaxFormWithJelly = function() {
8
+ this.ajaxForm($.ajaxWithJelly.params());
9
+ };
10
+ }
11
+
6
12
  $.ajaxWithJelly.params = function(otherParams) {
7
13
  otherParams = otherParams || {};
8
14
 
9
15
  if (otherParams.type && otherParams.type != "GET") {
10
16
  otherParams['data'] = $.extend(otherParams['data'], {
11
17
  authenticity_token: window._token
12
- });
18
+ });
13
19
  }
14
20
  return $.extend({
15
21
  dataType: 'json',
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.4.0"
8
+ s.version = "0.5.0"
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-08-19}
12
+ s.date = %q{2009-09-10}
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.4.0
4
+ version: 0.5.0
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-08-19 00:00:00 -07:00
12
+ date: 2009-09-10 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency