heavens_door 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/heavens_door.js +3 -3
- data/heavens_door.gemspec +2 -2
- data/lib/heavens_door/version.rb +1 -1
- metadata +11 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7bafabc4c6a83620e6535b77efac4640cf28cd445bd7a69309175e95b01949d5
|
4
|
+
data.tar.gz: b9f9332628b192958d21e4ff80c2e58414e540081b2fed1ca6b3bcad26783aea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9044a453e0369ef70e28268c38366ed34b91b2af0532038b3f0b5da8dc46ebbbd4e402bbb953da1d29fd496570d9a981e9c3750bd15c7509be45013781d36613
|
7
|
+
data.tar.gz: 7a8ba86be8a921af4353a8dd6f9f894a408449f9beda2fb64905703502d294bbb2a8754143b82992daa6f6a1472188ba59f13f5c1a369909722fbe33b052cb09
|
@@ -59,7 +59,7 @@
|
|
59
59
|
form.addEventListener('submit', () => {
|
60
60
|
if (sessionStorage.heavensDoor) {
|
61
61
|
Array.from(form.querySelectorAll('input,textarea,select')).forEach(el => {
|
62
|
-
const target = labelIdForElement(el) || el.id;
|
62
|
+
const target = labelIdForElement(el) || el.id || el.name;
|
63
63
|
|
64
64
|
if (['text', 'textarea', 'search', 'number', 'email', 'url', 'password', 'tel'].includes(el.type)) {
|
65
65
|
if (el.value) {
|
@@ -68,10 +68,10 @@
|
|
68
68
|
} else if (el.type == 'date') {
|
69
69
|
sessionStorage.heavensDoor += ` fill_in '${target}', with: Date.parse('${el.value}')\n`;
|
70
70
|
} else if (el.type == 'select-one') {
|
71
|
-
sessionStorage.heavensDoor += ` select '${el[el.selectedIndex].
|
71
|
+
sessionStorage.heavensDoor += ` select '${el[el.selectedIndex].text}', from: '${target}'\n`;
|
72
72
|
} else if (el.type == 'select-multiple') {
|
73
73
|
Array.from(el.selectedOptions).forEach(o => {
|
74
|
-
sessionStorage.heavensDoor += ` select '${o.
|
74
|
+
sessionStorage.heavensDoor += ` select '${o.text}', from: '${target}'\n`;
|
75
75
|
})
|
76
76
|
} else if ((el.type == 'radio') && el.checked) {
|
77
77
|
sessionStorage.heavensDoor += ` choose '${el.value}'\n`;
|
data/heavens_door.gemspec
CHANGED
@@ -24,6 +24,6 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.require_paths = ["lib"]
|
25
25
|
|
26
26
|
spec.add_development_dependency "bundler", "~> 2.0"
|
27
|
-
spec.add_development_dependency
|
28
|
-
spec.add_development_dependency
|
27
|
+
spec.add_development_dependency 'rake'
|
28
|
+
spec.add_development_dependency 'minitest'
|
29
29
|
end
|
data/lib/heavens_door/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heavens_door
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akira Matsuda
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -28,30 +28,30 @@ dependencies:
|
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0'
|
55
55
|
description: A Rails engine that generates Capybara scenario in the browser
|
56
56
|
email:
|
57
57
|
- ronnie@dio.jp
|
@@ -94,8 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
94
94
|
- !ruby/object:Gem::Version
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
|
-
|
98
|
-
rubygems_version: 2.7.8
|
97
|
+
rubygems_version: 3.0.3
|
99
98
|
signing_key:
|
100
99
|
specification_version: 4
|
101
100
|
summary: The Capybara scenario writer
|