sortablejs-rails 1.14.0 → 1.15.6

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: df298737ad790a65aff7a6bcbf0804f9f0d79c92a60622283fd522f753261029
4
- data.tar.gz: b790afb9f1f017f62849aa0d930d1f94c4eace460aa531e9e0e1a0d0a2f0fd56
3
+ metadata.gz: 06e508395ca515dc6b2657025adda53fa8bab6546677e1647395911b736a88d4
4
+ data.tar.gz: b453356da2aa8265dc83ea00011d92e80b8c23f116f329956f5e2a46c690f79f
5
5
  SHA512:
6
- metadata.gz: d3382af5004ac805469c9e54044b392993e880e92247e4b75beaa3e568afa1c96e44b3278d394ebd2f4c1e6458a652906044289676bbefc28841c512391bc1ad
7
- data.tar.gz: 51f49e4c66db17c7cdd92e0b92b446639658b3fb943ea871f78e2ed736e28f4b5537d87d9efbaf17a250cadd2b670c1d6788b9bf3b2cf99b0b83595a53f21199
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
- 1. Add the gem to your Rails `Gemfile` file (e.g. `gem 'sortablejs-rails', '~> 1.10'`)
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
 
@@ -1,5 +1,3 @@
1
- require 'rails/engine'
2
-
3
1
  module SortableJS
4
2
  module Rails
5
3
  class Engine < ::Rails::Engine
@@ -1,4 +1,4 @@
1
- require_relative 'rails/engine'
1
+ require 'sortablejs-rails/rails/engine'
2
2
 
3
3
  module SortableJS
4
4
  module Rails
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SortableJS
4
+ VERSION = '1.15.6' # version of this gem
5
+ SORTABLEJS_VERSION = '1.15.6' # version of the library (https://github.com/SortableJS/Sortable)
6
+ end
@@ -1,6 +1,2 @@
1
- require_relative 'sortablejs-rails/rails.rb'
2
-
3
- module SortableJS
4
- VERSION = '1.14.0' # version of this gem
5
- SORTABLEJS_VERSION = '1.14.0' # version of the library (https://github.com/SortableJS/Sortable)
6
- end
1
+ require 'sortablejs-rails/rails'
2
+ require 'sortablejs-rails/version'