jquery-rails 1.0.9 → 1.0.10

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,7 @@
1
+ ## 1.0.10 (13 June 2011)
2
+
3
+ - Updated to latest jqueyr-ujs with bug fixes
4
+
1
5
  ## 1.0.9 (25 May 2011)
2
6
 
3
7
  - Merged with new rails repo (3.1 fix)
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
- require File.expand_path('../lib/jquery-rails/version', __FILE__)
2
+ require File.expand_path('../lib/jquery/rails/version', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "jquery-rails"
@@ -3,36 +3,33 @@ require 'rails'
3
3
  module Jquery
4
4
  module Generators
5
5
  class InstallGenerator < ::Rails::Generators::Base
6
- @@jquery_version = "1.6.1"
7
- @@jquery_ui_version = "1.8.12"
8
- @@jquery_ujs_version = "dad6982dc592686677e6845e681233c40d2ead27"
9
6
 
10
- desc "This generator installs jQuery #{@@jquery_version}, jQuery-ujs, and (optionally) jQuery UI #{@@jquery_ui_version}"
7
+ desc "This generator installs jQuery #{Jquery::Rails::JQUERY_VERSION}, jQuery-ujs, and (optionally) jQuery UI #{Jquery::Rails::JQUERY_UI_VERSION}"
11
8
  class_option :ui, :type => :boolean, :default => false, :desc => "Include jQueryUI"
12
9
  source_root File.expand_path('../../../../../vendor/assets/javascripts', __FILE__)
13
10
 
14
11
  def remove_prototype
15
- PROTOTYPE_JS.each do |name|
12
+ Rails::PROTOTYPE_JS.each do |name|
16
13
  remove_file "public/javascripts/#{name}.js"
17
14
  end
18
15
  end
19
16
 
20
17
  def copy_jquery
21
- say_status("copying", "jQuery (#{@@jquery_version})", :green)
18
+ say_status("copying", "jQuery (#{Jquery::Rails::JQUERY_VERSION})", :green)
22
19
  copy_file "jquery.js", "public/javascripts/jquery.js"
23
20
  copy_file "jquery.min.js", "public/javascripts/jquery.min.js"
24
21
  end
25
22
 
26
23
  def copy_jquery_ui
27
24
  if options.ui?
28
- say_status("copying", "jQuery UI (#{@@jquery_ui_version})", :green)
25
+ say_status("copying", "jQuery UI (#{Jquery::Rails::JQUERY_UI_VERSION})", :green)
29
26
  copy_file "jquery-ui.js", "public/javascripts/jquery-ui.js"
30
27
  copy_file "jquery-ui.min.js", "public/javascripts/jquery-ui.min.js"
31
28
  end
32
29
  end
33
30
 
34
31
  def copy_ujs_driver
35
- say_status("copying", "jQuery UJS adapter (#{@@jquery_ujs_version[0..5]})", :green)
32
+ say_status("copying", "jQuery UJS adapter (#{Jquery::Rails::JQUERY_UJS_VERSION[0..5]})", :green)
36
33
  remove_file "public/javascripts/rails.js"
37
34
  copy_file "jquery_ujs.js", "public/javascripts/jquery_ujs.js"
38
35
  end
@@ -1,12 +1 @@
1
- module Jquery
2
- PROTOTYPE_JS = %w{prototype effects dragdrop controls}
3
-
4
- module Rails
5
- if ::Rails.version < "3.1"
6
- require 'jquery-rails/railtie'
7
- else
8
- require 'jquery-rails/engine'
9
- end
10
- end
11
-
12
- end
1
+ require 'jquery/rails'
@@ -0,0 +1,12 @@
1
+ module Jquery
2
+ module Rails
3
+ PROTOTYPE_JS = %w{prototype effects dragdrop controls}
4
+
5
+ if ::Rails.version < "3.1"
6
+ require 'jquery/rails/railtie'
7
+ else
8
+ require 'jquery/rails/engine'
9
+ end
10
+ require 'jquery/rails/version'
11
+ end
12
+ end
@@ -1,10 +1,10 @@
1
- # Configure Rails 3.1 to have assert_select_jquery
1
+ # Configure Rails 3.1 to have assert_select_jquery() in tests
2
2
  module Jquery
3
3
  module Rails
4
4
 
5
5
  class Engine < ::Rails::Engine
6
6
  config.before_configuration do
7
- require "jquery-rails/assert_select_jquery" if ::Rails.env.test?
7
+ require "jquery/assert_select" if ::Rails.env.test?
8
8
  end
9
9
  end
10
10
 
@@ -4,7 +4,7 @@ module Jquery
4
4
 
5
5
  class Railtie < ::Rails::Railtie
6
6
  config.before_configuration do
7
- require "jquery-rails/assert_select_jquery" if ::Rails.env.test?
7
+ require "jquery/assert_select" if ::Rails.env.test?
8
8
 
9
9
  if ::Rails.root.join("public/javascripts/jquery-ui.min.js").exist?
10
10
  jq_defaults = %w(jquery jquery-ui)
@@ -13,7 +13,7 @@ module Jquery
13
13
  jq_defaults = ::Rails.env.production? ? %w(jquery.min) : %w(jquery)
14
14
  end
15
15
 
16
- # Merge the jQuery scripts, remove the Prototype defaults and finally add 'rails'
16
+ # Merge the jQuery scripts, remove the Prototype defaults and finally add 'jquery_ujs'
17
17
  # at the end, because load order is important
18
18
  config.action_view.javascript_expansions[:defaults] -= PROTOTYPE_JS + ['rails']
19
19
  config.action_view.javascript_expansions[:defaults] |= jq_defaults
@@ -0,0 +1,8 @@
1
+ module Jquery
2
+ module Rails
3
+ VERSION = "1.0.10"
4
+ JQUERY_VERSION = "1.6.1"
5
+ JQUERY_UI_VERSION = "1.8.12"
6
+ JQUERY_UJS_VERSION = "3c360e34fac79a951108842529f6a48f287734f5"
7
+ end
8
+ end
@@ -43,7 +43,7 @@
43
43
  * });
44
44
  */
45
45
 
46
- (function($) {
46
+ (function($, undefined) {
47
47
  // Shorthand to make it a little easier to call public rails functions from within rails.js
48
48
  var rails;
49
49
 
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-rails
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 0
8
- - 9
9
- version: 1.0.9
4
+ prerelease:
5
+ version: 1.0.10
10
6
  platform: ruby
11
7
  authors:
12
8
  - "Andr\xC3\xA9 Arko"
@@ -14,8 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2011-05-25 00:00:00 -04:00
18
- default_executable:
13
+ date: 2011-06-14 00:00:00 Z
19
14
  dependencies:
20
15
  - !ruby/object:Gem::Dependency
21
16
  name: railties
@@ -25,9 +20,6 @@ dependencies:
25
20
  requirements:
26
21
  - - ~>
27
22
  - !ruby/object:Gem::Version
28
- segments:
29
- - 3
30
- - 0
31
23
  version: "3.0"
32
24
  type: :runtime
33
25
  version_requirements: *id001
@@ -39,9 +31,6 @@ dependencies:
39
31
  requirements:
40
32
  - - ~>
41
33
  - !ruby/object:Gem::Version
42
- segments:
43
- - 0
44
- - 14
45
34
  version: "0.14"
46
35
  type: :runtime
47
36
  version_requirements: *id002
@@ -53,10 +42,6 @@ dependencies:
53
42
  requirements:
54
43
  - - ~>
55
44
  - !ruby/object:Gem::Version
56
- segments:
57
- - 1
58
- - 0
59
- - 0
60
45
  version: 1.0.0
61
46
  type: :development
62
47
  version_requirements: *id003
@@ -68,9 +53,6 @@ dependencies:
68
53
  requirements:
69
54
  - - ~>
70
55
  - !ruby/object:Gem::Version
71
- segments:
72
- - 3
73
- - 0
74
56
  version: "3.0"
75
57
  type: :development
76
58
  version_requirements: *id004
@@ -94,10 +76,11 @@ files:
94
76
  - jquery-rails.gemspec
95
77
  - lib/generators/jquery/install/install_generator.rb
96
78
  - lib/jquery-rails.rb
97
- - lib/jquery-rails/assert_select_jquery.rb
98
- - lib/jquery-rails/engine.rb
99
- - lib/jquery-rails/railtie.rb
100
- - lib/jquery-rails/version.rb
79
+ - lib/jquery/assert_select.rb
80
+ - lib/jquery/rails.rb
81
+ - lib/jquery/rails/engine.rb
82
+ - lib/jquery/rails/railtie.rb
83
+ - lib/jquery/rails/version.rb
101
84
  - spec/lib/jquery-rails_spec.rb
102
85
  - spec/spec_helper.rb
103
86
  - vendor/assets/javascripts/jquery-ui.js
@@ -105,7 +88,6 @@ files:
105
88
  - vendor/assets/javascripts/jquery.js
106
89
  - vendor/assets/javascripts/jquery.min.js
107
90
  - vendor/assets/javascripts/jquery_ujs.js
108
- has_rdoc: true
109
91
  homepage: http://rubygems.org/gems/jquery-rails
110
92
  licenses: []
111
93
 
@@ -119,23 +101,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
101
  requirements:
120
102
  - - ">="
121
103
  - !ruby/object:Gem::Version
122
- segments:
123
- - 0
124
104
  version: "0"
125
105
  required_rubygems_version: !ruby/object:Gem::Requirement
126
106
  none: false
127
107
  requirements:
128
108
  - - ">="
129
109
  - !ruby/object:Gem::Version
130
- segments:
131
- - 1
132
- - 3
133
- - 6
134
110
  version: 1.3.6
135
111
  requirements: []
136
112
 
137
113
  rubyforge_project: jquery-rails
138
- rubygems_version: 1.3.7
114
+ rubygems_version: 1.8.5
139
115
  signing_key:
140
116
  specification_version: 3
141
117
  summary: Use jQuery with Rails 3
@@ -1,5 +0,0 @@
1
- module Jquery
2
- module Rails
3
- VERSION = "1.0.9"
4
- end
5
- end