slide-selector 0.1.4 → 0.1.5

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
2
  SHA256:
3
- metadata.gz: e80b4df481ac573f5b8e87dc33cb713cbc31ed78752b04971a48ed6481cd2ab7
4
- data.tar.gz: 6ffccb5a484658a6839f49bf9ad122b31e8ee02bd6e17b42cd3808ff4f88ec99
3
+ metadata.gz: 11f7e6a7de293ed3cc5b3fcc17c656258b25b72bcfe7a753ecfbef44a9abac0b
4
+ data.tar.gz: 7e1508fac543d154cb0bf9008b0eea5f9116d553bd5a94a83e9f2d146c724e03
5
5
  SHA512:
6
- metadata.gz: a449478307359bbccdedb11a406b8b20e274b231058ae942125f2f69296ff162c6b155c1b06c2ce9feaf3b726c50236dcd7f033ed3e9d7930950ee73f3a23a15
7
- data.tar.gz: 6e4c8a55911c493d67756246fefa8026e9a8e2c0a67a8f65747820b041999c1181d569bf1ed4d8cf388c8bdf182ec758154340ee6b212db2f1a55ad4a4ccc9fe
6
+ metadata.gz: '093a0fda3c3ce077906ff18559132424d104c3fd79bd936b372ebf19388dab2f4915c24a307ec247cec159529101c00eaf36561dd6b2d0478814262fe756819e'
7
+ data.tar.gz: 512fa1d12133c524c6577f638803c79d37abed45bf16e2eeccbc9ce3b4a04c1660380cd5d469e032bb9da506632841e80d9f9bbf4e519f7a41bf7250846eb67d
data/README.md CHANGED
@@ -24,20 +24,23 @@ Or install it yourself as:
24
24
 
25
25
  ## Usage
26
26
 
27
- Rename applitcation.css to applitcation.scss and add `@import "slide-selector.css";`
28
- In applitcation.js add `//= require slide-selector` after `//= require_tree .`
27
+ * Rename applitcation.css to applitcation.scss and add `@import "slide-selector.css";`
28
+ * In applitcation.js add `//= require slide-selector` after `//= require_tree .`
29
+
30
+ #### Syntax:
29
31
 
30
- Syntax:
31
32
  ```
32
33
  <%= slide_selector_tag [:min_field, :max_field], [:min_range, :max_range], options_for_select, options = {} %>
33
34
  ```
34
- Options:
35
- `:slider_step` - To specify the size of each moment.
36
- `:type` - For dollar type use `'amount'`.
37
- `:selector` - To disable drop-down options (`options_for_select` can be nil for this).
38
- `:class` - Set class to div
39
35
 
40
- Examples:
36
+ #### Options:
37
+
38
+ * `:slider_step` - To specify the size of each moment.
39
+ * `:type` - For dollar type use `'amount'`.
40
+ * `:selector` - To disable drop-down options (`options_for_select` can be nil for this).
41
+ * `:class` - Set class to div
42
+
43
+ #### Examples:
41
44
  With form:
42
45
  ```
43
46
  <%= form_for root_path do |f| %>
@@ -51,7 +54,7 @@ Without form:
51
54
  <%= slide_selector_tag [:min_rank3, :max_rank3], [0, 10000], simple_drop_down_options %>
52
55
  ```
53
56
 
54
- In application_helper.rb
57
+ In `application_helper.rb`
55
58
  ```
56
59
  module ApplicationHelper
57
60
  def amount_drop_down_options
@@ -1,5 +1,5 @@
1
1
  module Slide
2
2
  module Selector
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.email = ["tqr093@gmail.com"]
10
10
 
11
11
  spec.summary = %q{custom input tag with range-slider & text-field type selectors}
12
- spec.description = %q{https://github.com/Touqeer-tqr/custom-form contains the sample app}
12
+ spec.description = %q{Custom form field_tag of range-slider with text_field type selector. You can either choose from drop down or enter your own value and the slider will auto-adjust or you can use the slider to adjust values. This all through on form field f.slide_selector. Check out https://github.com/Touqeer-tqr/custom-form for sample app}
13
13
  spec.homepage = "https://github.com/Touqeer-tqr/slide-selector"
14
14
  spec.license = "MIT"
15
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slide-selector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Touqeer-tqr
@@ -38,7 +38,11 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
- description: https://github.com/Touqeer-tqr/custom-form contains the sample app
41
+ description: Custom form field_tag of range-slider with text_field type selector.
42
+ You can either choose from drop down or enter your own value and the slider will
43
+ auto-adjust or you can use the slider to adjust values. This all through on form
44
+ field f.slide_selector. Check out https://github.com/Touqeer-tqr/custom-form for
45
+ sample app
42
46
  email:
43
47
  - tqr093@gmail.com
44
48
  executables: []