jquery-rails 3.0.0 → 3.1.5

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.

Potentially problematic release.


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

checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1cc4ee935197027be03834032460f10b605fa29e5f370e956323827ff6459bb0
4
+ data.tar.gz: 01e0552ffb9ac7484592c6a600297361b3238295c162a0374669112893ea9c66
5
+ SHA512:
6
+ metadata.gz: e294510d1e0b4e3ced3ec09e16a8fc6882469e663ed4a5437f69664e4902ef40397fc5b56200c6e8f32747b83540f3e517837539dc8eb090cd779aa94d7c56b3
7
+ data.tar.gz: 335edf0e53ccfd6545b0e83a42ecbb49060505816fca7aff2b49477f9cc87923094aea8487580c24cd3c4502cdb3f582d62807d10f48e3325de3dc6d96bfb458
data/CHANGELOG.md CHANGED
@@ -1,3 +1,43 @@
1
+ ## 3.1.5 (18 Apr 2018)
2
+
3
+ - Updated jQuery 1.12.4
4
+
5
+ ## 3.1.3 (16 June 2015)
6
+
7
+ - Fix CSP bypass vulnerability. CVE-2015-1840
8
+
9
+ ## 3.1.2 (1 September 2014)
10
+
11
+ - Updated to jquery-ujs 1.0.1
12
+
13
+ ## 3.1.1 (23 June 2014)
14
+
15
+ - Updated to jQuery 1.11.1
16
+ - Updated to jquery-ujs 1.0.0
17
+
18
+ ## 3.1.0 (29 January 2014)
19
+
20
+ - Updated to jQuery 1.11.0
21
+ - Updated to latest jquery-ujs
22
+ - Added development rake task for updating jQuery
23
+
24
+ ## 3.0.4 (10 July 2013)
25
+
26
+ - Fixed jQuery source map
27
+
28
+ ## 3.0.3 (10 July 2013)
29
+
30
+ - Updated to jQuery 1.10.2
31
+
32
+ ## 3.0.2 (04 July 2013)
33
+
34
+ - Updated to latest jquery-ujs
35
+
36
+ ## 3.0.1 (07 June 2013)
37
+
38
+ - Updated to jQuery 1.10.1
39
+ - Removed jQuery UI from generator
40
+
1
41
  ## 3.0.0 (29 May 2013)
2
42
 
3
43
  - Removed jQuery UI
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source :gemcutter
1
+ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in jquery-rails.gemspec
4
4
  gemspec
data/README.md CHANGED
@@ -4,8 +4,7 @@ jQuery! For Rails! So great.
4
4
 
5
5
  This gem provides:
6
6
 
7
- * jQuery 1.10.0
8
- * jQuery UI 1.10.3 (javascript only)
7
+ * jQuery 1.11.1
9
8
  * the jQuery UJS adapter
10
9
  * assert_select_jquery to test jQuery responses in Ruby tests
11
10
 
@@ -20,7 +19,7 @@ minor version bump = minor-level updates to jquery
20
19
  major version bump = major-level updates to jquery and updates to rails which may be backwards-incompatible
21
20
  ```
22
21
 
23
- See CHANGELOG.md to see which versions of jquery-rails bundle which
22
+ See [VERSIONS.md](VERSIONS.md) to see which versions of jquery-rails bundle which
24
23
  versions of jQuery.
25
24
 
26
25
  ## Installation
@@ -57,25 +56,28 @@ jquery-ui-rails gem above.*
57
56
 
58
57
  ### Rails 3.0 (or greater with asset pipeline *disabled*)
59
58
 
60
- This gem adds a single generator: `jquery:install`. Running the generator will remove any Prototype JS files you may happen to have, and copy jQuery and the jQuery-ujs driver for Rails (and optionally, jQuery UI) to the `public/javascripts` directory.
59
+ This gem adds a single generator: `jquery:install`. Running the generator will remove any Prototype JS files you may happen to have, and copy jQuery and the jQuery-ujs driver for Rails to the `public/javascripts` directory.
61
60
 
62
- This gem will also hook into the Rails configuration process, removing Prototype and adding jQuery to the javascript files included by the `javascript_include_tag(:defaults)` call. While this gem contains the minified and un-minified versions of jQuery and jQuery UI, only the minified versions will be included in the `:defaults` when Rails is run in `production` or `test` mode (un-minified versions will be included when Rails is run in `development` mode).
61
+ This gem will also hook into the Rails configuration process, removing Prototype and adding jQuery to the javascript files included by the `javascript_include_tag(:defaults)` call. While this gem contains the minified and un-minified versions of jQuery, only the minified versions will be included in the `:defaults` when Rails is run in `production` or `test` mode (un-minified versions will be included when Rails is run in `development` mode).
63
62
 
64
63
  To invoke the generator, run:
65
64
 
66
65
  ```sh
67
- rails generate jquery:install #--ui to enable jQuery UI
66
+ rails generate jquery:install
68
67
  ```
69
68
 
70
69
  You're done!
71
70
 
71
+ *As of v3.0, jquery-rails no longer includes jQuery UI, you will need to
72
+ install it by yourself as needed.*
73
+
72
74
  ## Contributing
73
75
 
74
76
  Feel free to open an issue ticket if you find something that could be improved. A couple notes:
75
77
 
76
78
  * If it's an issue pertaining to the jquery-ujs javascript, please report it to the [jquery-ujs project](https://github.com/rails/jquery-ujs).
77
79
 
78
- * If the jquery or jquery-ui scripts are outdated (i.e. maybe a new version of jquery was released yesterday), feel free to open an issue and prod us to get that thing updated. However, for security reasons, we won't be accepting pull requests with updated jquery or jquery-ui scripts.
80
+ * If the jquery scripts are outdated (i.e. maybe a new version of jquery was released yesterday), feel free to open an issue and prod us to get that thing updated. However, for security reasons, we won't be accepting pull requests with updated jquery scripts.
79
81
 
80
82
  ## Acknowledgements
81
83
 
data/Rakefile CHANGED
@@ -9,7 +9,7 @@ task :guard_version do
9
9
  def check_version(file, pattern, constant)
10
10
  body = File.read("vendor/assets/javascripts/#{file}")
11
11
  match = body.match(pattern) or abort "Version check failed: no pattern matched in #{file}"
12
- file_version = body.match(pattern)[1]
12
+ file_version = match[1]
13
13
  constant_version = Jquery::Rails.const_get(constant)
14
14
 
15
15
  unless constant_version == file_version
@@ -19,3 +19,20 @@ task :guard_version do
19
19
 
20
20
  check_version('jquery.js', /jQuery JavaScript Library v([\S]+)/, 'JQUERY_VERSION')
21
21
  end
22
+
23
+ desc "Update jQuery versions"
24
+ task :update_jquery do
25
+ def download_jquery(filename, version)
26
+ suffix = "-#{version}"
27
+
28
+ puts "Downloading #{filename}.js"
29
+ puts `curl -o vendor/assets/javascripts/#{filename}.js https://code.jquery.com/jquery#{suffix}.js`
30
+ puts "Downloading #{filename}.min.js"
31
+ puts `curl -o vendor/assets/javascripts/#{filename}.min.js https://code.jquery.com/jquery#{suffix}.min.js`
32
+ puts "Downloading #{filename}.min.map"
33
+ puts `curl -o vendor/assets/javascripts/#{filename}.min.map https://code.jquery.com/jquery#{suffix}.min.map`
34
+ end
35
+
36
+ download_jquery('jquery', Jquery::Rails::JQUERY_VERSION)
37
+ puts "\e[32mDone!\e[0m"
38
+ end
data/VERSIONS.md ADDED
@@ -0,0 +1,49 @@
1
+ # Bundled Versions
2
+
3
+ | Gem | jQuery | jQuery UJS | jQuery UI |
4
+ |--------|--------|------------| ----------|
5
+ | 3.1.5 | 1.12.4 | 1.0.4 | - |
6
+ | 3.1.4 | 1.11.1 | 1.0.4 | - |
7
+ | 3.1.3 | 1.11.1 | 1.0.4 | - |
8
+ | 3.1.2 | 1.11.1 | 1.0.1 | - |
9
+ | 3.1.1 | 1.11.1 | 1.0.0 | - |
10
+ | 3.1.0 | 1.11.0 | - | - |
11
+ | 3.0.5 | 1.11.0 | - | - |
12
+ | 3.0.4 | ↾ | - | - |
13
+ | 3.0.3 | 1.10.2 | - | - |
14
+ | 3.0.2 | ↾ | - | - |
15
+ | 3.0.1 | 1.10.1 | - | - |
16
+ | 3.0.0 | ↾ | - | - |
17
+ | 2.3.0 | 1.10.0 | - | 1.10.3 |
18
+ | 2.2.2 | ↾ | - | ↾ |
19
+ | 2.2.1 | 1.9.1 | - | ↾ |
20
+ | 2.2.0 | 1.9.0 | - | ↾ |
21
+ | 2.1.4 | 1.8.3 | - | 1.9.2 |
22
+ | 2.1.3 | 1.8.2 | - | ↾ |
23
+ | 2.1.2 | 1.8.1 | - | ↾ |
24
+ | 2.1.1 | ↾ | - | ↾ |
25
+ | 2.1.0 | 1.8.0 | - | 1.8.23 |
26
+ | 2.0.3 | ↾ | - | ↾ |
27
+ | 2.0.2 | 1.7.2 | - | 1.8.18 |
28
+ | 2.0.1 | ↾ | - | ↾ |
29
+ | 2.0.0 | ↾ | - | ↾ |
30
+ | 1.0.19 | 1.7.1 | - | ↾ |
31
+ | 1.0.18 | ↾ | - | ↾ |
32
+ | 1.0.17 | 1.7.0 | - | ↾ |
33
+ | 1.0.16 | 1.6.4 | - | 1.8.16 |
34
+ | 1.0.15 | ↾ | - | ↾ |
35
+ | 1.0.14 | ↾ | - | ↾ |
36
+ | 1.0.13 | 1.6.2 | - | 1.8.14 |
37
+ | 1.0.12 | ↾ | - | ↾ |
38
+ | 1.0.11 | ↾ | - | ↾ |
39
+ | 1.0.10 | ↾ | - | ↾ |
40
+ | 1.0.9 | ↾ | - | ↾ |
41
+ | 1.0.8 | ↾ | - | ↾ |
42
+ | 1.0.7 | ↾ | - | ↾ |
43
+ | 1.0.6 | ↾ | - | ↾ |
44
+ | 1.0.5 | ↾ | - | ↾ |
45
+ | 1.0.4 | ↾ | - | ↾ |
46
+ | 1.0.3 | 1.6.1 | - | ↾ |
47
+ | 1.0.2 | ↾ | - | ↾ |
48
+ | 1.0.1 | ↾ | - | 1.8.12 |
49
+ | 1.0.0 | 1.6.0 | - | - |
data/jquery-rails.gemspec CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |s|
8
8
  s.authors = ["André Arko"]
9
9
  s.email = ["andre@arko.net"]
10
10
  s.homepage = "http://rubygems.org/gems/jquery-rails"
11
- s.summary = "Use jQuery with Rails 3"
12
- s.description = "This gem provides jQuery and the jQuery-ujs driver for your Rails 3 application."
11
+ s.summary = "Use jQuery with Rails 3+"
12
+ s.description = "This gem provides jQuery and the jQuery-ujs driver for your Rails 3+ application."
13
13
  s.license = "MIT"
14
14
 
15
15
  s.required_rubygems_version = ">= 1.3.6"
@@ -6,8 +6,7 @@ if ::Rails.version < "3.1" || !::Rails.application.config.assets.enabled
6
6
  module Generators
7
7
  class InstallGenerator < ::Rails::Generators::Base
8
8
 
9
- desc "This generator installs jQuery #{Jquery::Rails::JQUERY_VERSION}, jQuery-ujs, and (optionally) jQuery UI #{Jquery::Rails::JQUERY_UI_VERSION}"
10
- class_option :ui, :type => :boolean, :default => false, :desc => "Include jQueryUI"
9
+ desc "This generator installs jQuery #{Jquery::Rails::JQUERY_VERSION} and jQuery-ujs"
11
10
  source_root File.expand_path('../../../../../vendor/assets/javascripts', __FILE__)
12
11
 
13
12
  def remove_prototype
@@ -22,14 +21,6 @@ if ::Rails.version < "3.1" || !::Rails.application.config.assets.enabled
22
21
  copy_file "jquery.min.js", "public/javascripts/jquery.min.js"
23
22
  end
24
23
 
25
- def copy_jquery_ui
26
- if options.ui?
27
- say_status("copying", "jQuery UI (#{Jquery::Rails::JQUERY_UI_VERSION})", :green)
28
- copy_file "jquery-ui.js", "public/javascripts/jquery-ui.js"
29
- copy_file "jquery-ui.min.js", "public/javascripts/jquery-ui.min.js"
30
- end
31
- end
32
-
33
24
  def copy_ujs_driver
34
25
  say_status("copying", "jQuery UJS adapter (#{Jquery::Rails::JQUERY_UJS_VERSION[0..5]})", :green)
35
26
  remove_file "public/javascripts/rails.js"
@@ -5,12 +5,7 @@ module Jquery
5
5
  class Railtie < ::Rails::Railtie
6
6
  config.before_configuration do
7
7
  if config.action_view.javascript_expansions
8
- if ::Rails.root.join("public/javascripts/jquery-ui.min.js").exist?
9
- jq_defaults = %w(jquery jquery-ui)
10
- jq_defaults.map!{|a| a + ".min" } if ::Rails.env.production? || ::Rails.env.test?
11
- else
12
- jq_defaults = ::Rails.env.production? || ::Rails.env.test? ? %w(jquery.min) : %w(jquery)
13
- end
8
+ jq_defaults = ::Rails.env.production? || ::Rails.env.test? ? %w(jquery.min) : %w(jquery)
14
9
 
15
10
  # Merge the jQuery scripts, remove the Prototype defaults and finally add 'jquery_ujs'
16
11
  # at the end, because load order is important
@@ -1,7 +1,7 @@
1
1
  module Jquery
2
2
  module Rails
3
- VERSION = "3.0.0"
4
- JQUERY_VERSION = "1.10.0"
5
- JQUERY_UJS_VERSION = "87587d476054e9869865f53c1b78cb8164619a05"
3
+ VERSION = "3.1.5"
4
+ JQUERY_VERSION = "1.12.4"
5
+ JQUERY_UJS_VERSION = "1.0.4"
6
6
  end
7
7
  end