nouislider-rails 8.2.1 → 15.8.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: cb2baf7902469c21ab31884f8682cd640202c22b
4
- data.tar.gz: 091402a3e7f04e5cbfb52143396a5a44de324332
2
+ SHA256:
3
+ metadata.gz: b56147ee65c9ecb5633ed1e7f5683f985e2353d9272c81c62c3ccd4a274e931d
4
+ data.tar.gz: 40ff112cb71438ec72db513f10f0bf88795b55a408dac57a737cae3668a7b744
5
5
  SHA512:
6
- metadata.gz: e1dd22234c56b197e11e0a937b0c6f3f33afcb0e183d548e6d036ad0ffd323d19ea37ad77ed8aa635d7cba1226c555fdd0ab188c9d9e6485b74ad3b4536e7ad0
7
- data.tar.gz: b86296158e27a7ace344840994cb38f0e40f6d2ae91e831c963aec0b20d500e37f50cebb1e24979d41e693d78bb100aa0ce8f64feac2a77451275da527de0d4c
6
+ metadata.gz: 837cc7280693d488214c3a73787edf80e0d5b679607b418e6796a99a8695780d891aab0fdf870d7238ad086fc0f01728506a2155ab306832d021123fccf5aa96
7
+ data.tar.gz: 8118a33ab664d05c8b56fedc37b0446479a4ccf31cfb17e81e432f6f10d5a674b0c4e4306d308c914e93644dd7db894349232c2d1b70a60f1cd21be05f152b46
data/.gitignore CHANGED
@@ -1,6 +1,7 @@
1
1
  *.gem
2
2
  *.rbc
3
3
  .bundle
4
+ Gemfile.lock
4
5
  .config
5
6
  .yardoc
6
7
  InstalledFiles
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Nouislider::Rails
2
2
 
3
- Currently tracking 8.0.2 of noUiSlider: http://refreshless.com/nouislider/. All credit and thanks to @leongersen for the awesome library.
3
+ Currently tracking 15.8.1 of noUiSlider: https://refreshless.com/nouislider/. All credit and thanks to @leongersen for the awesome library.
4
4
 
5
5
  ![screenshot from homepage](https://raw.github.com/chug2k/nouislider-rails/master/screenshot.png)
6
6
 
@@ -9,15 +9,66 @@ Add this line to your application's Gemfile:
9
9
 
10
10
  gem 'nouislider-rails'
11
11
 
12
+ ### Sprockets
13
+
12
14
  Add the following directive to your application.js:
13
15
 
14
16
  //= require nouislider
15
17
 
16
- Add the following directive to your application.scss:
18
+ Add the following directive to your application.css:
17
19
 
18
20
  *= require nouislider
19
21
 
20
- http://refreshless.com/nouislider/more has more information on integrating your own styles.
22
+ That pulls in the core styles plus the pips and tooltips styles. To cherry-pick
23
+ instead, require only the parts you need:
24
+
25
+ *= require nouislider/nouislider
26
+ *= require nouislider/nouislider.pips
27
+ *= require nouislider/nouislider.tooltips
28
+
29
+ ### Propshaft
30
+
31
+ Propshaft has no `require` directives, so reference the assets from your layout
32
+ instead:
33
+
34
+ ```erb
35
+ <%= stylesheet_link_tag "nouislider" %>
36
+ <%= javascript_include_tag "nouislider" %>
37
+ ```
38
+
39
+ The individual stylesheets work the same way, e.g.
40
+ `stylesheet_link_tag "nouislider/nouislider.pips"`.
41
+
42
+ ### Creating a slider
43
+
44
+ Once the assets are loaded:
45
+
46
+ ```js
47
+ var slider = document.getElementById('slider');
48
+
49
+ noUiSlider.create(slider, {
50
+ start: [20, 80],
51
+ connect: true,
52
+ range: {
53
+ min: 0,
54
+ max: 100
55
+ }
56
+ });
57
+ ```
58
+
59
+ https://refreshless.com/nouislider/ has the full documentation, including
60
+ examples and every available option.
61
+
62
+ ## Upgrading from 9.x
63
+
64
+ This release jumps from noUiSlider 9.0.0 to 15.8.1, spanning several upstream
65
+ major versions. If you have written CSS against noUiSlider's markup, note that
66
+ the connect elements moved: they are now rendered inside a `.noUi-connects`
67
+ wrapper, one `.noUi-connect` per connecting segment, and `.noUi-origin` no
68
+ longer carries the connect styling.
69
+
70
+ See the upstream release notes for the full list of changes:
71
+ https://github.com/leongersen/noUiSlider/releases
21
72
 
22
73
  ## Contributing
23
74
 
@@ -1,5 +1,5 @@
1
1
  module Nouislider
2
2
  module Rails
3
- VERSION = "8.2.1"
3
+ VERSION = "15.8.1"
4
4
  end
5
5
  end
@@ -9,14 +9,21 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Charles Lee"]
10
10
  spec.email = ["chug2k@gmail.com"]
11
11
  spec.summary = "nouislider.js for the Rails asset pipeline."
12
- spec.description = "Currently tracking #{Nouislider::Rails::VERSION} of noUiSlider: https://github.com/leongersen/noUiSlider). All credit and thanks to @leongersen for the awesome library."
12
+ spec.description = "Currently tracking #{Nouislider::Rails::VERSION} of noUiSlider: https://github.com/leongersen/noUiSlider. All credit and thanks to @leongersen for the awesome library."
13
13
  spec.homepage = "https://github.com/chug2k/nouislider-rails"
14
14
  spec.license = "MIT"
15
15
 
16
+ spec.required_ruby_version = ">= 2.5"
17
+
18
+ spec.metadata = {
19
+ "source_code_uri" => spec.homepage,
20
+ "changelog_uri" => "#{spec.homepage}/releases",
21
+ "bug_tracker_uri" => "#{spec.homepage}/issues"
22
+ }
23
+
16
24
  spec.files = `git ls-files -z`.split("\x0")
17
25
  spec.require_paths = ["lib"]
18
26
 
19
27
  spec.add_dependency "railties", ">= 3.1"
20
- spec.add_development_dependency "bundler", "~> 1.5"
21
28
  spec.add_development_dependency "rake"
22
29
  end