opal-browser 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +8 -25
- data/CHANGELOG.md +3 -0
- data/opal/browser/support.rb +33 -21
- data/opal/browser/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca31ac16a859cb8e8e2d033f9654d73f69af51fb370b84c4eea90c11d854b591
|
4
|
+
data.tar.gz: cf292f8f778e76a8a0552a57d608cafbd975653df39df2f79e6d0ea1f8600d5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60b6ebdb57718727af8443be34513c614d49d6a182a7a1189bf37ecf2998e8895a8ed6b321455be04e45ce94815e762d93cd1ad3d35b9bf8c1257b5a9face39e
|
7
|
+
data.tar.gz: 0eda48ea9ba83c04929266bb2c664290d22389a6ff16aef4faab3b4a055c7510ed2e9734d6f6d7b409a79ecb56086627df559ea2c0d8ce3281a9e13472731adc
|
data/.github/workflows/build.yml
CHANGED
@@ -16,39 +16,23 @@ jobs:
|
|
16
16
|
matrix:
|
17
17
|
combo:
|
18
18
|
- name: Chromium/Linux/Opal-master
|
19
|
-
browser: chrome
|
20
|
-
os: ubuntu-latest
|
21
19
|
opal: master
|
20
|
+
- name: Chromium/Linux/Opal-1.4
|
21
|
+
opal: 1.4
|
22
22
|
- name: Chromium/Linux/Opal-1.3/PromiseV2
|
23
|
-
browser: chrome
|
24
|
-
os: ubuntu-latest
|
25
23
|
opal: 1.3
|
26
24
|
promise: v2
|
27
25
|
- name: Chromium/Linux/Opal-1.3
|
28
|
-
browser: chrome
|
29
|
-
os: ubuntu-latest
|
30
26
|
opal: 1.3
|
31
|
-
- name: Chromium/Linux/Opal-1.2
|
32
|
-
browser: chrome
|
33
|
-
os: ubuntu-latest
|
34
|
-
opal: 1.2
|
35
27
|
- name: Chromium/Linux/Opal-1.0
|
36
|
-
browser: chrome
|
37
|
-
os: ubuntu-latest
|
38
28
|
opal: '1.0'
|
39
29
|
- name: Chromium/Linux/Ruby-2.7
|
40
|
-
browser: chrome
|
41
|
-
os: ubuntu-latest
|
42
30
|
ruby: 2.7
|
43
31
|
- name: Chromium/Linux/Ruby-2.6
|
44
|
-
browser: chrome
|
45
|
-
os: ubuntu-latest
|
46
32
|
ruby: 2.6
|
47
33
|
- name: Firefox/Linux
|
48
34
|
browser: gecko
|
49
|
-
os: ubuntu-latest
|
50
35
|
- name: Chromium/Windows
|
51
|
-
browser: chrome
|
52
36
|
os: windows-latest
|
53
37
|
- name: Firefox/Windows
|
54
38
|
browser: gecko
|
@@ -57,7 +41,6 @@ jobs:
|
|
57
41
|
browser: edge
|
58
42
|
os: windows-latest
|
59
43
|
- name: Chromium/macOS
|
60
|
-
browser: chrome
|
61
44
|
os: macos-latest
|
62
45
|
- name: Firefox/macOS
|
63
46
|
browser: gecko
|
@@ -66,7 +49,7 @@ jobs:
|
|
66
49
|
browser: safari
|
67
50
|
os: macos-latest
|
68
51
|
|
69
|
-
runs-on: ${{ matrix.combo.os }}
|
52
|
+
runs-on: ${{ matrix.combo.os || 'ubuntu-latest' }}
|
70
53
|
|
71
54
|
steps:
|
72
55
|
- uses: actions/checkout@v2
|
@@ -81,15 +64,15 @@ jobs:
|
|
81
64
|
- uses: actions/cache@v2
|
82
65
|
with:
|
83
66
|
path: ./vendor/bundle
|
84
|
-
key: ${{ runner.os }}-${{ matrix.combo.ruby || '3.0' }}-gems-${{ matrix.combo.opal || '1.
|
67
|
+
key: ${{ runner.os }}-${{ matrix.combo.ruby || '3.0' }}-gems-${{ matrix.combo.opal || '1.3' }}-${{ github.ref }}-${{ hashFiles('**/Gemfile.lock') }}
|
85
68
|
restore-keys: |
|
86
|
-
${{ runner.os }}-${{ matrix.combo.ruby || '3.0' }}-gems-${{ matrix.combo.opal || '1.
|
87
|
-
${{ runner.os }}-${{ matrix.combo.ruby || '3.0' }}-gems-${{ matrix.combo.opal || '1.
|
88
|
-
${{ runner.os }}-${{ matrix.combo.ruby || '3.0' }}-gems-${{ matrix.combo.opal || '1.
|
69
|
+
${{ runner.os }}-${{ matrix.combo.ruby || '3.0' }}-gems-${{ matrix.combo.opal || '1.3' }}-${{ github.ref }}
|
70
|
+
${{ runner.os }}-${{ matrix.combo.ruby || '3.0' }}-gems-${{ matrix.combo.opal || '1.3' }}-master
|
71
|
+
${{ runner.os }}-${{ matrix.combo.ruby || '3.0' }}-gems-${{ matrix.combo.opal || '1.3' }}-
|
89
72
|
${{ runner.os }}-${{ matrix.combo.ruby || '3.0' }}-gems-
|
90
73
|
- name: bundle install
|
91
74
|
run: |
|
92
75
|
bundle config path $PWD/vendor/bundle
|
93
76
|
bundle install --jobs 4 --retry 3
|
94
77
|
bundle clean
|
95
|
-
- run: bundle exec rake selenium_${{ matrix.combo.browser }}
|
78
|
+
- run: bundle exec rake selenium_${{ matrix.combo.browser || 'chrome' }}
|
data/CHANGELOG.md
CHANGED
data/opal/browser/support.rb
CHANGED
@@ -75,14 +75,16 @@ module Browser
|
|
75
75
|
when 'Window.send (Asynchronous)'
|
76
76
|
if defined?(`window.postMessage`) && !defined?(`window.importScripts`)
|
77
77
|
%x{
|
78
|
-
|
79
|
-
|
78
|
+
(function() {
|
79
|
+
var ok = true,
|
80
|
+
old = window.onmessage;
|
80
81
|
|
81
|
-
|
82
|
-
|
83
|
-
|
82
|
+
window.onmessage = function() { ok = false; };
|
83
|
+
window.postMessage("", "*")
|
84
|
+
window.onmessage = old;
|
84
85
|
|
85
|
-
|
86
|
+
return ok;
|
87
|
+
})()
|
86
88
|
}
|
87
89
|
end
|
88
90
|
|
@@ -106,10 +108,12 @@ module Browser
|
|
106
108
|
|
107
109
|
when 'Attr.isId'
|
108
110
|
%x{
|
109
|
-
|
110
|
-
|
111
|
+
(function() {
|
112
|
+
var div = document.createElement('div');
|
113
|
+
div.setAttribute('id', 'xxxxxxxxxxxxx');
|
111
114
|
|
112
|
-
|
115
|
+
return typeof(div.attributes['id'].isId) !== "undefined";
|
116
|
+
})()
|
113
117
|
}
|
114
118
|
|
115
119
|
when 'Element.addBehavior'
|
@@ -117,34 +121,42 @@ module Browser
|
|
117
121
|
|
118
122
|
when 'Element.className'
|
119
123
|
%x{
|
120
|
-
|
121
|
-
|
124
|
+
(function() {
|
125
|
+
var div = document.createElement("div");
|
126
|
+
div.setAttribute('className', 'x');
|
122
127
|
|
123
|
-
|
128
|
+
return div.className === 'x';
|
129
|
+
})()
|
124
130
|
}
|
125
131
|
|
126
132
|
when 'Element.class'
|
127
133
|
%x{
|
128
|
-
|
129
|
-
|
134
|
+
(function() {
|
135
|
+
var div = document.createElement("div");
|
136
|
+
div.setAttribute('class', 'x');
|
130
137
|
|
131
|
-
|
138
|
+
return div.className === 'x';
|
139
|
+
})()
|
132
140
|
}
|
133
141
|
|
134
142
|
when 'Element.for'
|
135
143
|
%x{
|
136
|
-
|
137
|
-
|
144
|
+
(function() {
|
145
|
+
var label = document.createElement("label");
|
146
|
+
label.setAttribute('for', 'x');
|
138
147
|
|
139
|
-
|
148
|
+
return label.htmlFor === 'x';
|
149
|
+
})()
|
140
150
|
}
|
141
151
|
|
142
152
|
when 'Element.htmlFor'
|
143
153
|
%x{
|
144
|
-
|
145
|
-
|
154
|
+
(function() {
|
155
|
+
var label = document.createElement("label");
|
156
|
+
label.setAttribute('htmlFor', 'x');
|
146
157
|
|
147
|
-
|
158
|
+
return label.htmlFor === 'x';
|
159
|
+
})()
|
148
160
|
}
|
149
161
|
|
150
162
|
when 'Element.clientSize'
|
data/opal/browser/version.rb
CHANGED