jquery-slick-rails 1.9.0 → 1.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f0634443f41868def85a54ed12d1948f61c4a67ddbb0d15d36ba7a58228d67d
4
- data.tar.gz: 41aa9235592ea2c1fb7ea3a77319a62e228efd88f4cd861ca1ecbb68be6fc3f6
3
+ metadata.gz: 97ceac11bc5aad1da31fff7d9a9d39af49f9991807354739786c68c6d9ced284
4
+ data.tar.gz: c851aea7fa0318c5d2840b17e2641b0eb1b635402dd72d7a59b55af512249ae7
5
5
  SHA512:
6
- metadata.gz: 1f102d51b93f05e5c3dd23c19837bba879f8daefd0cf02f22a9408a14ff340978d6947e65ec7f3a88cd92a202d5daa8d84753ad3c2339b9892bca8977596df95
7
- data.tar.gz: bc12d6ed62ba58c356aa19ecfdea271e896ba23d19da5cfda2c67aecafe8e9b3304b6d3ba6dc6eddf3489f4971a0905edbb4836aef71c41b32f4e1ac741018d8
6
+ metadata.gz: 067f8f72072e08524dec955e2a95ae863e81d792e17f3132f20c416546afed38bd4c5579f7c9b33a2f72bf209911cc0facc1ca019d650d89acb9a789b9e7051b
7
+ data.tar.gz: e435da9180ca0c844ea70dc26e11795cc43e74a51ffcf025a27b1f168ac873860ba28299e66602992c0a6f016bcc56d30b0642a867f2823eb00a5f7af3311525
data/README.md CHANGED
@@ -1,12 +1,26 @@
1
1
  # jQuerySlickRails
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/jquery-slick-rails.svg)](http://badge.fury.io/rb/jquery-slick-rails)
4
- [![Build Status](https://travis-ci.org/bodrovis/jquery-slick-rails.svg?branch=master)](https://travis-ci.org/bodrovis/jquery-slick-rails)
5
- [![Dependency Status](https://gemnasium.com/badges/github.com/bodrovis/jquery-slick-rails.svg)](https://gemnasium.com/github.com/bodrovis/jquery-slick-rails)
3
+ ![Gem](https://img.shields.io/gem/v/jquery-slick-rails)
4
+ [![Build Status](https://travis-ci.com/bodrovis/jquery-slick-rails.svg?branch=master)](https://travis-ci.com/github/bodrovis/jquery-slick-rails)
5
+ ![Downloads total](https://img.shields.io/gem/dt/jquery-slick-rails)
6
6
 
7
7
  A ruby gem that uses the Rails asset pipeline to include the jQuery Slick plugin by Ken Wheeler
8
8
  (https://kenwheeler.github.io/slick/).
9
9
 
10
+ If you are using Rails 6 with Webpacker then you don't need this gem (install Slick directly from NPM instead). Check out [this sample app](https://github.com/bodrovis/jquery-slick-rails-demo/tree/master/Rails6Webpacker) for more info.
11
+
12
+ ## DEPRECATION NOTICE
13
+
14
+ This gem was created in 2014 and since then it has been downloaded more than 2 million times. I'm glad you guys found it useful! However, it's time to move on. Rails 6 uses Webpacker as a de-facto standard to bundle assets therefore **this gem became redundant for setups that utilize Webpacker or other bundlers like esbuild**. Moreover, Rails 7 is coming in December 2021 and this new version uses another modern approach: you can rely on [jsbundling-rails](https://github.com/rails/jsbundling-rails) and choose your favourite bundler (Webpacker, esbuild, rollup). Basically, it means that it's not recommended to install front-end packages as Ruby gems anymore.
15
+
16
+ Another thing to mention is that **Slick itself was abandoned** by its maintainer: there are no new releases since 2018. Slick was a great solution back in the day but now it was superseded by other modern libraries that do not rely on jQuery.
17
+
18
+ Therefore, **jquery-slick-rails** is officially deprecated since December, 2021. **Version 1.10.0 is the final release** I'm going to roll out: it is tested with Rails 7 so it should still work fine with older setups. But once again: it's very much recommended to migrate to jsbundling-rails or Webpacker.
19
+
20
+ Thank you for your attention, and hopefully you'll find [my other solutions useful](https://rubygems.org/profiles/bodrovis).
21
+
22
+ *Ilya Bodrov-Krukowski*
23
+
10
24
  ## Installation
11
25
 
12
26
  Add this line to your application's Gemfile:
@@ -69,9 +83,9 @@ or into `application.css`:
69
83
  */
70
84
  ```
71
85
 
72
-
73
- You may use [this](https://github.com/bodrovis/jquery-slick-rails-demo) simple Rails app as an example
74
- (it also shows how to use the plugin with Turbolinks).
86
+ ### Demos
87
+
88
+ [Check out this repo showing how to use Slick carousel with Rails app with and without Webpacker](https://github.com/bodrovis/jquery-slick-rails-demo) (it also shows how to use the plugin with Turbolinks).
75
89
 
76
90
  ## Turbolinks Gotcha
77
91
 
@@ -100,7 +114,7 @@ The idea is that we are [opting the page out of caching](https://github.com/turb
100
114
  Another solution was to employ the `unslick` method to prepare your document before Turbolinks caches it:
101
115
 
102
116
  ```javascript
103
- jQuery(document).on('turbolinks:before-cache', $('.scroller').slick('unslick'))
117
+ jQuery(document).on('turbolinks:before-cache', function() { $('.scroller').slick('unslick') })
104
118
  ```
105
119
     
106
120
  However, this does not seem to work anymore - maybe because [Slick has lots of opened issues related to unslick](https://github.com/kenwheeler/slick/search?q=unslick&type=Issues&utf8=%E2%9C%93).
@@ -1,3 +1,3 @@
1
1
  module JquerySlickRails
2
- VERSION = '1.9.0'
2
+ VERSION = '1.10.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-slick-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Bodrov
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-19 00:00:00.000000000 Z
11
+ date: 2021-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -26,18 +26,32 @@ dependencies:
26
26
  version: '3.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 7.0.0.rc1
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 7.0.0.rc1
41
+ - !ruby/object:Gem::Dependency
42
+ name: sprockets-rails
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
45
  - - "~>"
32
46
  - !ruby/object:Gem::Version
33
- version: '5.1'
47
+ version: '3.4'
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
52
  - - "~>"
39
53
  - !ruby/object:Gem::Version
40
- version: '5.1'
54
+ version: '3.4'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: test-unit
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -53,7 +67,7 @@ dependencies:
53
67
  - !ruby/object:Gem::Version
54
68
  version: '3.1'
55
69
  description: Integrates Slick carousel, a jQuery plugin by Ken Wheeler, into your
56
- Rails app.
70
+ Rails app. THIS GEM IS DEPRECATED.
57
71
  email:
58
72
  - golosizpru@gmail.com
59
73
  executables: []
@@ -76,7 +90,7 @@ homepage: https://github.com/bodrovis/jquery-slick-rails
76
90
  licenses:
77
91
  - MIT
78
92
  metadata: {}
79
- post_install_message:
93
+ post_install_message:
80
94
  rdoc_options: []
81
95
  require_paths:
82
96
  - lib
@@ -91,9 +105,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
105
  - !ruby/object:Gem::Version
92
106
  version: '0'
93
107
  requirements: []
94
- rubyforge_project:
95
- rubygems_version: 2.7.6
96
- signing_key:
108
+ rubygems_version: 3.2.33
109
+ signing_key:
97
110
  specification_version: 4
98
111
  summary: Integrates Slick carousel into Rails app.
99
112
  test_files: []