jquery-rails 3.0.4 → 4.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +32 -0
- data/CHANGELOG.md +99 -2
- data/CONTRIBUTING.md +103 -7
- data/Gemfile +18 -0
- data/{LICENSE → MIT-LICENSE} +2 -2
- data/README.md +34 -39
- data/Rakefile +39 -1
- data/VERSIONS.md +63 -39
- data/jquery-rails.gemspec +7 -5
- data/lib/jquery/assert_select.rb +141 -89
- data/lib/jquery/rails/version.rb +5 -3
- data/lib/jquery/rails.rb +1 -3
- data/test/assert_select_jquery_test.rb +91 -0
- data/test/test_helper.rb +6 -0
- data/vendor/assets/javascripts/jquery.js +7550 -6331
- data/vendor/assets/javascripts/jquery.min.js +5 -6
- data/vendor/assets/javascripts/jquery.min.map +1 -1
- data/vendor/assets/javascripts/jquery2.js +9814 -0
- data/vendor/assets/javascripts/jquery2.min.js +4 -0
- data/vendor/assets/javascripts/jquery2.min.map +1 -0
- data/vendor/assets/javascripts/jquery3.js +10872 -0
- data/vendor/assets/javascripts/jquery3.min.js +2 -0
- data/vendor/assets/javascripts/jquery3.min.map +1 -0
- data/vendor/assets/javascripts/jquery_ujs.js +256 -95
- metadata +62 -34
- data/lib/generators/jquery/install/install_generator.rb +0 -50
- data/lib/jquery/rails/railtie.rb +0 -18
metadata
CHANGED
@@ -1,97 +1,125 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 4.4.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- André Arko
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2020-05-08 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: railties
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
22
|
-
- - <
|
23
|
-
- !ruby/object:Gem::Version
|
24
|
-
version: '5.0'
|
19
|
+
version: 4.2.0
|
25
20
|
type: :runtime
|
26
21
|
prerelease: false
|
27
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.2.0
|
28
27
|
- !ruby/object:Gem::Dependency
|
29
28
|
name: thor
|
30
|
-
requirement:
|
31
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
32
30
|
requirements:
|
33
|
-
- -
|
31
|
+
- - ">="
|
34
32
|
- !ruby/object:Gem::Version
|
35
33
|
version: '0.14'
|
36
|
-
- - <
|
34
|
+
- - "<"
|
37
35
|
- !ruby/object:Gem::Version
|
38
36
|
version: '2.0'
|
39
37
|
type: :runtime
|
40
38
|
prerelease: false
|
41
|
-
version_requirements:
|
42
|
-
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0.14'
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '2.0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rails-dom-testing
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '1'
|
54
|
+
- - "<"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '3'
|
57
|
+
type: :runtime
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '1'
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '3'
|
67
|
+
description: This gem provides jQuery and the jQuery-ujs driver for your Rails 4+
|
68
|
+
application.
|
43
69
|
email:
|
44
70
|
- andre@arko.net
|
45
71
|
executables: []
|
46
72
|
extensions: []
|
47
73
|
extra_rdoc_files: []
|
48
74
|
files:
|
49
|
-
- .gitignore
|
75
|
+
- ".gitignore"
|
76
|
+
- ".travis.yml"
|
50
77
|
- CHANGELOG.md
|
51
78
|
- CONTRIBUTING.md
|
52
79
|
- Gemfile
|
53
|
-
- LICENSE
|
80
|
+
- MIT-LICENSE
|
54
81
|
- README.md
|
55
82
|
- Rakefile
|
56
83
|
- VERSIONS.md
|
57
84
|
- jquery-rails.gemspec
|
58
|
-
- lib/generators/jquery/install/install_generator.rb
|
59
85
|
- lib/jquery-rails.rb
|
60
86
|
- lib/jquery/assert_select.rb
|
61
87
|
- lib/jquery/rails.rb
|
62
88
|
- lib/jquery/rails/engine.rb
|
63
|
-
- lib/jquery/rails/railtie.rb
|
64
89
|
- lib/jquery/rails/version.rb
|
90
|
+
- test/assert_select_jquery_test.rb
|
91
|
+
- test/test_helper.rb
|
65
92
|
- vendor/assets/javascripts/jquery.js
|
66
93
|
- vendor/assets/javascripts/jquery.min.js
|
67
94
|
- vendor/assets/javascripts/jquery.min.map
|
95
|
+
- vendor/assets/javascripts/jquery2.js
|
96
|
+
- vendor/assets/javascripts/jquery2.min.js
|
97
|
+
- vendor/assets/javascripts/jquery2.min.map
|
98
|
+
- vendor/assets/javascripts/jquery3.js
|
99
|
+
- vendor/assets/javascripts/jquery3.min.js
|
100
|
+
- vendor/assets/javascripts/jquery3.min.map
|
68
101
|
- vendor/assets/javascripts/jquery_ujs.js
|
69
|
-
homepage:
|
102
|
+
homepage: https://github.com/rails/jquery-rails
|
70
103
|
licenses:
|
71
104
|
- MIT
|
105
|
+
metadata: {}
|
72
106
|
post_install_message:
|
73
107
|
rdoc_options: []
|
74
108
|
require_paths:
|
75
109
|
- lib
|
76
110
|
required_ruby_version: !ruby/object:Gem::Requirement
|
77
|
-
none: false
|
78
111
|
requirements:
|
79
|
-
- -
|
112
|
+
- - ">="
|
80
113
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
82
|
-
segments:
|
83
|
-
- 0
|
84
|
-
hash: 20524014126529113
|
114
|
+
version: 1.9.3
|
85
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
-
none: false
|
87
116
|
requirements:
|
88
|
-
- -
|
117
|
+
- - ">="
|
89
118
|
- !ruby/object:Gem::Version
|
90
119
|
version: 1.3.6
|
91
120
|
requirements: []
|
92
|
-
|
93
|
-
rubygems_version: 1.8.15
|
121
|
+
rubygems_version: 3.0.3
|
94
122
|
signing_key:
|
95
|
-
specification_version:
|
96
|
-
summary: Use jQuery with Rails
|
123
|
+
specification_version: 4
|
124
|
+
summary: Use jQuery with Rails 4+
|
97
125
|
test_files: []
|
@@ -1,50 +0,0 @@
|
|
1
|
-
require 'rails'
|
2
|
-
|
3
|
-
# Supply generator for Rails 3.0.x or if asset pipeline is not enabled
|
4
|
-
if ::Rails.version < "3.1" || !::Rails.application.config.assets.enabled
|
5
|
-
module Jquery
|
6
|
-
module Generators
|
7
|
-
class InstallGenerator < ::Rails::Generators::Base
|
8
|
-
|
9
|
-
desc "This generator installs jQuery #{Jquery::Rails::JQUERY_VERSION} and jQuery-ujs"
|
10
|
-
source_root File.expand_path('../../../../../vendor/assets/javascripts', __FILE__)
|
11
|
-
|
12
|
-
def remove_prototype
|
13
|
-
Rails::PROTOTYPE_JS.each do |name|
|
14
|
-
remove_file "public/javascripts/#{name}.js"
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
def copy_jquery
|
19
|
-
say_status("copying", "jQuery (#{Jquery::Rails::JQUERY_VERSION})", :green)
|
20
|
-
copy_file "jquery.js", "public/javascripts/jquery.js"
|
21
|
-
copy_file "jquery.min.js", "public/javascripts/jquery.min.js"
|
22
|
-
end
|
23
|
-
|
24
|
-
def copy_ujs_driver
|
25
|
-
say_status("copying", "jQuery UJS adapter (#{Jquery::Rails::JQUERY_UJS_VERSION[0..5]})", :green)
|
26
|
-
remove_file "public/javascripts/rails.js"
|
27
|
-
copy_file "jquery_ujs.js", "public/javascripts/jquery_ujs.js"
|
28
|
-
end
|
29
|
-
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|
33
|
-
else
|
34
|
-
module Jquery
|
35
|
-
module Generators
|
36
|
-
class InstallGenerator < ::Rails::Generators::Base
|
37
|
-
desc "Just show instructions so people will know what to do when mistakenly using generator for Rails 3.1 apps"
|
38
|
-
|
39
|
-
def do_nothing
|
40
|
-
say_status("deprecated", "You are using Rails 3.1 with the asset pipeline enabled, so this generator is not needed.")
|
41
|
-
say_status("", "The necessary files are already in your asset pipeline.")
|
42
|
-
say_status("", "Just add `//= require jquery` and `//= require jquery_ujs` to your app/assets/javascripts/application.js")
|
43
|
-
say_status("", "If you upgraded your app from Rails 3.0 and still have jquery.js, rails.js, or jquery_ujs.js in your javascripts, be sure to remove them.")
|
44
|
-
say_status("", "If you do not want the asset pipeline enabled, you may turn it off in application.rb and re-run this generator.")
|
45
|
-
# ok, nothing
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
data/lib/jquery/rails/railtie.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
# Used to ensure that Rails 3.0.x, as well as Rails >= 3.1 with asset pipeline disabled
|
2
|
-
# get the minified version of the scripts included into the layout in production.
|
3
|
-
module Jquery
|
4
|
-
module Rails
|
5
|
-
class Railtie < ::Rails::Railtie
|
6
|
-
config.before_configuration do
|
7
|
-
if config.action_view.javascript_expansions
|
8
|
-
jq_defaults = ::Rails.env.production? || ::Rails.env.test? ? %w(jquery.min) : %w(jquery)
|
9
|
-
|
10
|
-
# Merge the jQuery scripts, remove the Prototype defaults and finally add 'jquery_ujs'
|
11
|
-
# at the end, because load order is important
|
12
|
-
config.action_view.javascript_expansions[:defaults] -= PROTOTYPE_JS + ['rails']
|
13
|
-
config.action_view.javascript_expansions[:defaults] |= jq_defaults + ['jquery_ujs']
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|