sortablejs-rails 1.15.0 → 1.15.6
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 +10 -1
- data/lib/sortablejs-rails/rails/engine.rb +0 -2
- data/lib/sortablejs-rails/rails.rb +1 -1
- data/lib/sortablejs-rails/version.rb +6 -0
- data/lib/sortablejs-rails.rb +2 -7
- data/vendor/assets/javascript/sortable.js +613 -1019
- data/vendor/assets/javascript/sortable.min.js +2 -2
- metadata +10 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06e508395ca515dc6b2657025adda53fa8bab6546677e1647395911b736a88d4
|
4
|
+
data.tar.gz: b453356da2aa8265dc83ea00011d92e80b8c23f116f329956f5e2a46c690f79f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e655557b8124d4fdea1a50ea8948a2f40f4784d90d8cb41ce037eb1b1cb98ba5ecd5f5430ee16a3fae9bbaae0b9adaec74ddf92bcccc1e2001ee3f7ec4dc4012
|
7
|
+
data.tar.gz: 45ff51c726e3b525f68a4c39e4cbfb2fc20ee4e1c46c64d43805e117196e13d568f65cc6b4c6470d8ef2157be67ddda2444e8c75f2df05217b691ae5594861f5
|
data/README.md
CHANGED
@@ -3,7 +3,16 @@ A gem that provides the SortableJS library to Rails's asset pipeline.
|
|
3
3
|
|
4
4
|
## How to Use
|
5
5
|
|
6
|
-
|
6
|
+
### Ruby on Rails >= 8.x
|
7
|
+
|
8
|
+
1. Add the gem to your Rails `Gemfile` file (e.g. `gem "sortablejs-rails"`) and run bundler
|
9
|
+
2. Edit `app/assets/config/manifest.js` and add `//= link sortable.min.js`
|
10
|
+
3. Edit `config/importmap.rb` and add `pin "sortablejs", to: "sortable.min.js"`
|
11
|
+
4. Restart your Rails app and SortableJS is loaded as JavaScript library
|
12
|
+
|
13
|
+
### Ruby on Rails < 8.x
|
14
|
+
|
15
|
+
1. Add the gem to your Rails `Gemfile` file (e.g. `gem "sortablejs-rails"`) and run bundler
|
7
16
|
2. Add SortableJS to your `app/assets/javascript/application.js` file like this: `//= require sortable.min`
|
8
17
|
3. Restart your Rails app and SortableJS is loaded as JavaScript library
|
9
18
|
|
data/lib/sortablejs-rails.rb
CHANGED
@@ -1,7 +1,2 @@
|
|
1
|
-
require '
|
2
|
-
|
3
|
-
|
4
|
-
module SortableJS
|
5
|
-
VERSION = '1.15.0' # version of this gem
|
6
|
-
SORTABLEJS_VERSION = '1.15.0' # version of the library (https://github.com/SortableJS/Sortable)
|
7
|
-
end
|
1
|
+
require 'sortablejs-rails/rails'
|
2
|
+
require 'sortablejs-rails/version'
|