sortablejs-rails 1.15.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: 067c9fad9c3a89c6cbb1f0c2351ab090d3ce1a8d5a99fbc7d64d684af359a04c
4
- data.tar.gz: d6add36206cde2ef27c9c5ec551469b1910c58aeab349c0e99b9517fd47968e6
3
+ metadata.gz: 06e508395ca515dc6b2657025adda53fa8bab6546677e1647395911b736a88d4
4
+ data.tar.gz: b453356da2aa8265dc83ea00011d92e80b8c23f116f329956f5e2a46c690f79f
5
5
  SHA512:
6
- metadata.gz: 8b270845b30f6e2156b4528ea8f74336128e0ee2d259b8036a5e5feb332a96a667084e92e05142d2f25c1f528be6be897163adcd8398c2bcdfcfc142da39b2d0
7
- data.tar.gz: 774a230073b73144496b28407448d5a522bae6e764404428ccf033c23aba7f93af6018fc228278045e7915fa8f4246adeda6e77c04d98d83b275bdbeb656d7df
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,7 +1,2 @@
1
- require 'active_support'
2
- require_relative 'sortablejs-rails/rails.rb'
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'