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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16a070e0b1c644fc54d33c3266f0c470a920cac127bc4b37ede951f55f76517f
4
- data.tar.gz: 7895a72bebd9b3528fcd1b714a603355f83b9fb3c34ea610f3bc4157a5eb8b93
3
+ metadata.gz: ca31ac16a859cb8e8e2d033f9654d73f69af51fb370b84c4eea90c11d854b591
4
+ data.tar.gz: cf292f8f778e76a8a0552a57d608cafbd975653df39df2f79e6d0ea1f8600d5e
5
5
  SHA512:
6
- metadata.gz: 3e08c691cfc2f4c633c3467a7ed8059690ded3bbcf3759e2c5b5333f220f67752caf4d13316dd956e87304f192732ca027434810b1c6a0f77cc7e039fa5fa871
7
- data.tar.gz: d724afddb0f157fe632275195ca01bc776129442cce3876fb0d6aea2d30202e81d0240c4666b5fe76837f5671398efa63f648f61e518fc7b7a7017fccb1817e7
6
+ metadata.gz: 60b6ebdb57718727af8443be34513c614d49d6a182a7a1189bf37ecf2998e8895a8ed6b321455be04e45ce94815e762d93cd1ad3d35b9bf8c1257b5a9face39e
7
+ data.tar.gz: 0eda48ea9ba83c04929266bb2c664290d22389a6ff16aef4faab3b4a055c7510ed2e9734d6f6d7b409a79ecb56086627df559ea2c0d8ce3281a9e13472731adc
@@ -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.2.0.beta1' }}-${{ github.ref }}-${{ hashFiles('**/Gemfile.lock') }}
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.2.0.beta1' }}-${{ github.ref }}
87
- ${{ runner.os }}-${{ matrix.combo.ruby || '3.0' }}-gems-${{ matrix.combo.opal || '1.2.0.beta1' }}-master
88
- ${{ runner.os }}-${{ matrix.combo.ruby || '3.0' }}-gems-${{ matrix.combo.opal || '1.2.0.beta1' }}-
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
@@ -1,3 +1,6 @@
1
+ ## 0.3.3
2
+ * Compatibility fix for Opal 1.4
3
+
1
4
  ## 0.3.2
2
5
  * Cookie: refactor the module
3
6
  * Note in documentation it's available as `$document.cookies` and it's the preferred way to access it
@@ -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
- var ok = true,
79
- old = window.onmessage;
78
+ (function() {
79
+ var ok = true,
80
+ old = window.onmessage;
80
81
 
81
- window.onmessage = function() { ok = false; };
82
- window.postMessage("", "*")
83
- window.onmessage = old;
82
+ window.onmessage = function() { ok = false; };
83
+ window.postMessage("", "*")
84
+ window.onmessage = old;
84
85
 
85
- return ok;
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
- var div = document.createElement('div');
110
- div.setAttribute('id', 'xxxxxxxxxxxxx');
111
+ (function() {
112
+ var div = document.createElement('div');
113
+ div.setAttribute('id', 'xxxxxxxxxxxxx');
111
114
 
112
- return typeof(div.attributes['id'].isId) !== "undefined";
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
- var div = document.createElement("div");
121
- div.setAttribute('className', 'x');
124
+ (function() {
125
+ var div = document.createElement("div");
126
+ div.setAttribute('className', 'x');
122
127
 
123
- return div.className === 'x';
128
+ return div.className === 'x';
129
+ })()
124
130
  }
125
131
 
126
132
  when 'Element.class'
127
133
  %x{
128
- var div = document.createElement("div");
129
- div.setAttribute('class', 'x');
134
+ (function() {
135
+ var div = document.createElement("div");
136
+ div.setAttribute('class', 'x');
130
137
 
131
- return div.className === 'x';
138
+ return div.className === 'x';
139
+ })()
132
140
  }
133
141
 
134
142
  when 'Element.for'
135
143
  %x{
136
- var label = document.createElement("label");
137
- label.setAttribute('for', 'x');
144
+ (function() {
145
+ var label = document.createElement("label");
146
+ label.setAttribute('for', 'x');
138
147
 
139
- return label.htmlFor === 'x';
148
+ return label.htmlFor === 'x';
149
+ })()
140
150
  }
141
151
 
142
152
  when 'Element.htmlFor'
143
153
  %x{
144
- var label = document.createElement("label");
145
- label.setAttribute('htmlFor', 'x');
154
+ (function() {
155
+ var label = document.createElement("label");
156
+ label.setAttribute('htmlFor', 'x');
146
157
 
147
- return label.htmlFor === 'x';
158
+ return label.htmlFor === 'x';
159
+ })()
148
160
  }
149
161
 
150
162
  when 'Element.clientSize'
@@ -1,3 +1,3 @@
1
1
  module Browser
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opal-browser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - meh.