jquery-rails 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of jquery-rails might be problematic. Click here for more details.

@@ -1,3 +1,8 @@
1
+ ## 1.0.5 (28 May 2011)
2
+
3
+ - Updated to latest jquery-ujs
4
+ - Remove old rails.js in Rails 3.0 generator
5
+
1
6
  ## 1.0.4 (17 May 2011)
2
7
 
3
8
  - Fix exception in Rails 3.0 generator
@@ -95,4 +100,4 @@ Bugfix:
95
100
 
96
101
  Bugfix:
97
102
 
98
- - fix generator by resolving namespace conflict between Jquery::Rails and ::Rails
103
+ - fix generator by resolving namespace conflict between Jquery::Rails and ::Rails
data/Gemfile CHANGED
@@ -2,7 +2,8 @@ source :gemcutter
2
2
 
3
3
  # Specify your gem's dependencies in jquery-rails.gemspec
4
4
  gemspec
5
- gem "rails", :git => "git://github.com/rails/rails.git"
5
+ # Rails is already being pulled in through gemspec
6
+ # gem "rails", :git => "git://github.com/rails/rails.git"
6
7
  gem "rack", :git => "git://github.com/rack/rack.git"
7
8
  gem "sprockets", :git => "git://github.com/sstephenson/sprockets.git"
8
- gem "i18n", "0.6.0beta1"
9
+ gem "i18n", "0.6.0beta1"
data/README.md CHANGED
@@ -39,6 +39,6 @@ In your Gemfile, add this line:
39
39
 
40
40
  Then, run `bundle install`. To invoke the generator, run:
41
41
 
42
- rails generate jquery:install #--ui to enable jQuery UI --version to install specific version of JQuery (default is 1.6)
42
+ rails generate jquery:install #--ui to enable jQuery UI
43
43
 
44
44
  You're done!
data/Rakefile CHANGED
@@ -1,10 +1,10 @@
1
1
  require 'bundler'
2
2
  Bundler::GemHelper.install_tasks
3
3
 
4
- require "spec/rake/spectask"
5
- desc "Run all examples"
6
- Spec::Rake::SpecTask.new(:spec) do |t|
7
- t.ruby_opts = ['-r test/unit']
8
- t.spec_opts = %w[--color]
9
- end
4
+ # require "spec/rake/spectask"
5
+ # desc "Run all examples"
6
+ # Spec::Rake::SpecTask.new(:spec) do |t|
7
+ # t.ruby_opts = ['-r test/unit']
8
+ # t.spec_opts = %w[--color]
9
+ # end
10
10
  task :default => :spec
@@ -33,6 +33,7 @@ module Jquery
33
33
 
34
34
  def copy_ujs_driver
35
35
  say_status("copying", "jQuery UJS adapter (#{@@jquery_ujs_version[0..5]})", :green)
36
+ remove_file "public/javascripts/rails.js"
36
37
  copy_file "jquery_ujs.js", "public/javascripts/jquery_ujs.js"
37
38
  end
38
39
 
@@ -1,5 +1,5 @@
1
1
  module Jquery
2
2
  module Rails
3
- VERSION = "1.0.4"
3
+ VERSION = "1.0.5"
4
4
  end
5
- end
5
+ end
@@ -225,6 +225,7 @@
225
225
 
226
226
  // Helper function, needed to provide consistent behavior in IE
227
227
  stopEverything: function(e) {
228
+ $(e.target).trigger('ujs:everythingStopped');
228
229
  e.stopImmediatePropagation();
229
230
  return false;
230
231
  },
@@ -272,7 +273,7 @@
272
273
 
273
274
  // skip other logic when required values are missing or file upload is present
274
275
  if (blankRequiredInputs && rails.fire(form, 'ajax:aborted:required', [blankRequiredInputs])) {
275
- return !remote;
276
+ return rails.stopEverything(e);
276
277
  }
277
278
 
278
279
  if (remote) {
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
5
4
  prerelease: false
6
5
  segments:
7
6
  - 1
8
7
  - 0
9
- - 4
10
- version: 1.0.4
8
+ - 5
9
+ version: 1.0.5
11
10
  platform: ruby
12
11
  authors:
13
12
  - "Andr\xC3\xA9 Arko"
@@ -26,7 +25,6 @@ dependencies:
26
25
  requirements:
27
26
  - - ~>
28
27
  - !ruby/object:Gem::Version
29
- hash: 7
30
28
  segments:
31
29
  - 3
32
30
  - 0
@@ -41,7 +39,6 @@ dependencies:
41
39
  requirements:
42
40
  - - ~>
43
41
  - !ruby/object:Gem::Version
44
- hash: 23
45
42
  segments:
46
43
  - 0
47
44
  - 14
@@ -56,7 +53,6 @@ dependencies:
56
53
  requirements:
57
54
  - - ~>
58
55
  - !ruby/object:Gem::Version
59
- hash: 23
60
56
  segments:
61
57
  - 1
62
58
  - 0
@@ -72,7 +68,6 @@ dependencies:
72
68
  requirements:
73
69
  - - ~>
74
70
  - !ruby/object:Gem::Version
75
- hash: 7
76
71
  segments:
77
72
  - 3
78
73
  - 0
@@ -124,7 +119,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
124
119
  requirements:
125
120
  - - ">="
126
121
  - !ruby/object:Gem::Version
127
- hash: 3
128
122
  segments:
129
123
  - 0
130
124
  version: "0"
@@ -133,7 +127,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
127
  requirements:
134
128
  - - ">="
135
129
  - !ruby/object:Gem::Version
136
- hash: 23
137
130
  segments:
138
131
  - 1
139
132
  - 3