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.
- data/CHANGELOG.md +4 -0
- data/jquery-rails.gemspec +1 -1
- data/lib/generators/jquery/install/install_generator.rb +5 -8
- data/lib/jquery-rails.rb +1 -12
- data/lib/{jquery-rails/assert_select_jquery.rb → jquery/assert_select.rb} +0 -0
- data/lib/jquery/rails.rb +12 -0
- data/lib/{jquery-rails → jquery/rails}/engine.rb +2 -2
- data/lib/{jquery-rails → jquery/rails}/railtie.rb +2 -2
- data/lib/jquery/rails/version.rb +8 -0
- data/vendor/assets/javascripts/jquery_ujs.js +1 -1
- metadata +9 -33
- data/lib/jquery-rails/version.rb +0 -5
data/CHANGELOG.md
CHANGED
data/jquery-rails.gemspec
CHANGED
@@ -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 #{
|
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 (#{
|
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 (#{
|
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 (#{
|
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
|
data/lib/jquery-rails.rb
CHANGED
File without changes
|
data/lib/jquery/rails.rb
ADDED
@@ -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
|
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
|
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 '
|
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
|
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:
|
5
|
-
|
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-
|
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
|
98
|
-
- lib/jquery
|
99
|
-
- lib/jquery
|
100
|
-
- lib/jquery
|
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.
|
114
|
+
rubygems_version: 1.8.5
|
139
115
|
signing_key:
|
140
116
|
specification_version: 3
|
141
117
|
summary: Use jQuery with Rails 3
|