awesomplete 0.0.1 → 0.0.2
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 +21 -3
- data/lib/awesomplete/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 056e066ad559a26d9c4231f54ec230571fcda963
|
|
4
|
+
data.tar.gz: 7906188c75c9d1d85d8519460b5805123e52af52
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2193191d255dd11d7da434e31c7eaf4d62d78996306ae27666fc07cf5fd505984f8ee6039463c409f24d56c2ab4eec1ee2011811b3bbcd29ed29ef4944831ba5
|
|
7
|
+
data.tar.gz: 4b8f5201ac94b4558f7bdbe137a9ec5e811978f4b8a24c2fb66011238ecb871cbcd5c8ba0636541791e793c91f57eef670ce613f532bcc03aed28c96aa44b8e1
|
data/README.md
CHANGED
|
@@ -29,12 +29,23 @@ Rails ~> 4.0.0
|
|
|
29
29
|
|
|
30
30
|
Restart server. That's it.
|
|
31
31
|
|
|
32
|
-
##
|
|
33
|
-
Now you can write
|
|
34
|
-
|
|
32
|
+
## Usage
|
|
33
|
+
Now you can write inputs with awesomplete autocomplete!
|
|
34
|
+
|
|
35
|
+
Check it out.
|
|
36
|
+
|
|
37
|
+
in controller:
|
|
35
38
|
|
|
36
39
|
```erb
|
|
40
|
+
def index
|
|
41
|
+
@collection = ['One', 'Two', 'Three', 'Four'].join(',')
|
|
42
|
+
end
|
|
43
|
+
```
|
|
37
44
|
|
|
45
|
+
in views:
|
|
46
|
+
|
|
47
|
+
```erb
|
|
48
|
+
<%= text_field_tag :something, nil, class: 'awesomplete', data: { list: @collection } %>
|
|
38
49
|
```
|
|
39
50
|
|
|
40
51
|
## Configure module
|
|
@@ -53,6 +64,13 @@ You can configurate this autocomplete by two ways:
|
|
|
53
64
|
```
|
|
54
65
|
* * *
|
|
55
66
|
|
|
67
|
+
|
|
68
|
+
## TODO
|
|
69
|
+
|
|
70
|
+
1. Write update version task.
|
|
71
|
+
|
|
72
|
+
2. Write full helper method like `link_to` or `assets_path` soemthing like `awesomplete`.
|
|
73
|
+
|
|
56
74
|
Kiselenko Roman
|
|
57
75
|
|
|
58
76
|
This project rocks and uses MIT-LICENSE.
|
data/lib/awesomplete/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: awesomplete
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- fishbullet
|
|
@@ -24,7 +24,7 @@ dependencies:
|
|
|
24
24
|
- - ~>
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: 4.0.0
|
|
27
|
-
description: Add assets to your Rails app assets path. Based on http://leaverou.github.io/awesomplete
|
|
27
|
+
description: Add awesomplete assets to your Rails app assets path. Based on http://leaverou.github.io/awesomplete
|
|
28
28
|
email:
|
|
29
29
|
- shindu666@gmail.com
|
|
30
30
|
executables: []
|