capybara-select-2 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -5
- data/lib/capybara_select2/helpers.rb +1 -1
- data/lib/capybara_select2/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: eeee9f6049fd1d4191bdd07f1c579d858f4ea7e4
|
4
|
+
data.tar.gz: 841c3e8889cca92018456aeb2e55c42cf297cda7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6acdc3e5951168d7e36ef0c2ac5ff5e90724ddd1218e1f4f76c3536e1189b82fc1754f1d93b996e43de41c53e7eae0d5213fda6d662c97cb73384cf0ec355667
|
7
|
+
data.tar.gz: cf21831309dac43c4e6188de1c3dd9e6cf77294d5340193bb6a43c09150bc5e0e3f711ecb24084f897791a308dd38704df572a235654f9380fe1c547f2f43e54
|
data/README.md
CHANGED
@@ -38,28 +38,32 @@ World CapybaraSelect2
|
|
38
38
|
|
39
39
|
## Usage
|
40
40
|
|
41
|
-
### Select from a
|
41
|
+
### Select from a node containing select2 control
|
42
42
|
|
43
|
-
|
43
|
+
* Identified by CSS selector
|
44
44
|
```ruby
|
45
45
|
select2 'Buy Milk', css: '#todo'
|
46
46
|
```
|
47
47
|
|
48
|
-
|
48
|
+
* Identified by XPath selector
|
49
49
|
```ruby
|
50
50
|
select2 'Buy Milk', xpath: '//div[@id="todo"]'
|
51
51
|
```
|
52
52
|
|
53
|
-
|
53
|
+
### Select from select2 control identified by label
|
54
54
|
```ruby
|
55
55
|
select2 'Buy Milk', from: 'Things to do'
|
56
56
|
```
|
57
57
|
|
58
|
-
|
58
|
+
If you want to search for an option (via Ajax for example)
|
59
59
|
```ruby
|
60
60
|
select2 'Buy Milk', from: 'Things to do', search: true
|
61
61
|
```
|
62
62
|
|
63
|
+
### Dynamically create an option from search input
|
64
|
+
```ruby
|
65
|
+
select2 'Millenials', from: 'Generations', tag: true
|
66
|
+
```
|
63
67
|
|
64
68
|
## Contributing
|
65
69
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara-select-2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dzmitry Kavalionak
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|