opal-optimizer 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/opal/optimizer/version.rb +1 -1
- data/lib/opal/optimizer.rb +9 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf23005730649eb821541375811e4f3fe609b571778edc431f1027d938067c1a
|
4
|
+
data.tar.gz: 68677aaf76724edbb197b204524022370f2f583e2f6f353ed89c2bc1438fd3f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7918f4b13862e97666dc14c11e6e20cc28a25614cd297fe02f3154ba1d4f497a2a9f2c574fc623ae0d5b279d0e8c3d451ddddfbbb867aaa1d23db6076dab6a3a
|
7
|
+
data.tar.gz: c983e86359e2f6d7878ff982b217febdf6f40108c16fa71b4bcd9cdbc21877d6fbea88cc208c237ad0af45c40e7acd4ea917b527260280ec3b04bba0a02df41a
|
data/CHANGELOG.md
CHANGED
data/lib/opal/optimizer.rb
CHANGED
@@ -24,12 +24,15 @@ module Opal
|
|
24
24
|
es.end_with?("TypeError.$$super = Error;\n}).call(this);")
|
25
25
|
@opal_version = 1.0
|
26
26
|
elsif es.start_with?("(function(global_object) {\n \"use strict\";\n\n // @note\n "\
|
27
|
-
"// A few conventions for the documentation of this file:")
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
27
|
+
"// A few conventions for the documentation of this file:")
|
28
|
+
if es.end_with?("TypeError.$$super = Error;\n}).call(this);")
|
29
|
+
if es.include? 'function $prop(object,'
|
30
|
+
@opal_version = 1.4
|
31
|
+
else
|
32
|
+
@opal_version = 1.1
|
33
|
+
end
|
34
|
+
elsif es.end_with?("Opal.file_sources = {};\n}).call(this);")
|
35
|
+
@opal_version = 1.6
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opal-optimizer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hmdne
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rkelly-turbo
|
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|
91
|
-
rubygems_version: 3.
|
91
|
+
rubygems_version: 3.3.7
|
92
92
|
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: Optimize Opal's resulting javascript code
|