jquery-slick-rails 1.9.0 → 1.10.0
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.
- checksums.yaml +4 -4
- data/README.md +21 -7
- data/lib/jquery-slick-rails/version.rb +1 -1
- metadata +23 -10
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 97ceac11bc5aad1da31fff7d9a9d39af49f9991807354739786c68c6d9ced284
|
|
4
|
+
data.tar.gz: c851aea7fa0318c5d2840b17e2641b0eb1b635402dd72d7a59b55af512249ae7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 067f8f72072e08524dec955e2a95ae863e81d792e17f3132f20c416546afed38bd4c5579f7c9b33a2f72bf209911cc0facc1ca019d650d89acb9a789b9e7051b
|
|
7
|
+
data.tar.gz: e435da9180ca0c844ea70dc26e11795cc43e74a51ffcf025a27b1f168ac873860ba28299e66602992c0a6f016bcc56d30b0642a867f2823eb00a5f7af3311525
|
data/README.md
CHANGED
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
# jQuerySlickRails
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[
|
|
4
|
+
[](https://travis-ci.com/github/bodrovis/jquery-slick-rails)
|
|
5
|
+

|
|
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
|
-
|
|
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).
|
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.
|
|
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:
|
|
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: '
|
|
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: '
|
|
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
|
-
|
|
95
|
-
|
|
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: []
|