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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98228b4be3f50987db6e943a349aa65f915f6646c71af60ae9dbe70ac0b42d4b
4
- data.tar.gz: 50aad85a0f3441016bc6776e8782377d6be045cec02d9211e42609ba5fc0c70f
3
+ metadata.gz: 7bafabc4c6a83620e6535b77efac4640cf28cd445bd7a69309175e95b01949d5
4
+ data.tar.gz: b9f9332628b192958d21e4ff80c2e58414e540081b2fed1ca6b3bcad26783aea
5
5
  SHA512:
6
- metadata.gz: 905f0f3ead2ea6cefdb62ccbceb18c8640eda815278c19f6709f9edc1d208a97504fcb52e5e766ae7453ede3a34d15c4d9aa6ac6e383e09c345d49b6b908df86
7
- data.tar.gz: b6ce0f7341bb66bf57a082735308a9987e64f9ac7f349a324b1521a1f6c15c61fdddd0e998549631f961e0576b4a1476a5388cc1cfb60d845951a9c34e7b15df
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].value}', from: '${target}'\n`;
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.value}', from: '${target}'\n`;
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`;
@@ -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 "rake", "~> 10.0"
28
- spec.add_development_dependency "minitest", "~> 5.0"
27
+ spec.add_development_dependency 'rake'
28
+ spec.add_development_dependency 'minitest'
29
29
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HeavensDoor
4
- VERSION = '0.2.2'
4
+ VERSION = '0.2.3'
5
5
  end
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.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-02-19 00:00:00.000000000 Z
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: '10.0'
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: '10.0'
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: '5.0'
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: '5.0'
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
- rubyforge_project:
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