opal 0.10.5 → 0.10.6.beta

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
- SHA1:
3
- metadata.gz: 76c2437c63c4228f7e51792400470b436585ceaa
4
- data.tar.gz: 653b8ad5e7ccda6ca6d65020c39dde974b4aea16
2
+ SHA256:
3
+ metadata.gz: 932de94d0a5aad63b338a3d7b558779094800c08cf7395ec062aca06f6c4abef
4
+ data.tar.gz: be4eeb422b8feed852a83b7c2c53183e2c5728535c1b37006706bfbce9fe214b
5
5
  SHA512:
6
- metadata.gz: 18b3d7f736aa329ad2f6f6d659d4af1eb64b49c123c94f02601e090b7d58d9e055b4013c112feaedaae167d75c3c248a620d138fbf7c137230e3918079d68bc6
7
- data.tar.gz: 664cb11eaad7e42ac34efe148e56fe6bb73343fd2278a8a2c9baad06b24981edfe907707af5aef484d2f1bc74d12b6a5a5b5889b33a95cdeb48372e52b3cd21f
6
+ metadata.gz: 6dc1c3e9848f636a0fef5afcc3679fef208ef962e005085142a432dd5a967df3c0fc96815bb0fc79134c19772dfa7e415958db718f7b9b4990e88e7f0dbf0d8e
7
+ data.tar.gz: b49482088ce4307779e8f7eb6f33c4c54b212583f1ea603cb73a4b5e86a81cacb3a58d5d6e65118325517583cc8a9fdd15971389a77a5147f66926db7f951722
@@ -7,44 +7,48 @@ cache:
7
7
  directories:
8
8
  - /home/travis/.nvm/
9
9
 
10
+
10
11
  matrix:
11
12
  fast_finish: true
12
13
 
13
14
  include:
14
- - rvm: 2.3.3
15
+ - rvm: 2.3.7
15
16
  env: RUN=jshint SUITE=core
16
17
 
17
- - rvm: 2.3.3
18
+ - rvm: 2.3.7
18
19
  env: RUN=jshint SUITE=stdlib
19
20
 
20
- - rvm: 2.3.3
21
+ - rvm: 2.3.7
22
+ nvm: "0.10"
21
23
  env: RUN=mspec_opal_nodejs
22
24
 
23
- - rvm: 2.3.3
25
+ - rvm: 2.3.7
26
+ nvm: "0.10"
24
27
  env: RUN=mspec_ruby_nodejs TZ="/usr/share/zoneinfo/Pacific/Fiji"
25
28
 
26
- - rvm: 2.3.3
29
+ - rvm: 2.3.7
27
30
  env: RUN=mspec_ruby_sprockets_phantomjs
28
31
 
29
- - rvm: 2.3.3
32
+ - rvm: 2.3.7
30
33
  env: RUN=minitest
31
34
 
32
- - rvm: 2.3.3
35
+ - rvm: 2.3.7
33
36
  env: RUN=rspec RACK_VERSION='~> 2.0.0' CHECK_COVERAGE=true
34
37
 
35
38
  - rvm: ruby-head
36
39
  env: RUN=rspec
37
40
 
38
- - rvm: 2.2.6
41
+ - rvm: 2.2.10
39
42
  env: RUN=rspec TILT_VERSION=2.0.1 SPROCKETS_VERSION='~> 3.7'
40
43
 
41
44
  - rvm: 2.1.10
42
45
  env: RUN=rspec RACK_VERSION='< 2.0'
43
46
 
44
47
  - rvm: 2.0.0
48
+ nvm: "0.10"
45
49
  env: RUN="rspec mspec_opal_nodejs" RACK_VERSION='< 2.0'
46
50
 
47
- - rvm: jruby-9.1.6.0
51
+ - rvm: jruby-9.2.0.0
48
52
  env: RUN=rspec
49
53
 
50
54
  - rvm: jruby-head
@@ -62,6 +66,7 @@ before_install:
62
66
  - git submodule update --init
63
67
  - npm install -g jshint
64
68
  - npm install -g uglify-js
69
+ - export PATH="/usr/local/phantomjs-1.9.8:$PATH"
65
70
  - bundle config without doc
66
71
 
67
72
  script:
@@ -21,7 +21,7 @@ Whitespace conventions:
21
21
 
22
22
 
23
23
 
24
- ## [0.10.4] - 2017-06-21
24
+ ## [0.10.5] - 2017-06-21
25
25
 
26
26
 
27
27
  ### Fixed
@@ -31,7 +31,18 @@ Whitespace conventions:
31
31
 
32
32
 
33
33
 
34
- ## [0.10.3] - 2016-09-09
34
+ ## [0.10.4] - 2017-05-07
35
+
36
+
37
+ ### Changed
38
+
39
+ - Better `Opal::Config` options documentation and organization
40
+ - Always cache source-maps at build-time so they're available once enabled
41
+
42
+
43
+
44
+
45
+ ## [0.10.3] - 2016-10-31
35
46
 
36
47
 
37
48
  ### Fixed
@@ -43,7 +54,7 @@ Whitespace conventions:
43
54
 
44
55
 
45
56
 
46
- ## [0.10.2] - 2016-10-31
57
+ ## [0.10.2] - 2016-09-09
47
58
 
48
59
 
49
60
  ### Changed
@@ -891,6 +902,7 @@ Whitespace conventions:
891
902
 
892
903
 
893
904
 
905
+ [0.10.5]: https://github.com/opal/opal/compare/v0.10.4...v0.10.5
894
906
  [0.10.4]: https://github.com/opal/opal/compare/v0.10.3...v0.10.4
895
907
  [0.10.3]: https://github.com/opal/opal/compare/v0.10.2...v0.10.3
896
908
  [0.10.2]: https://github.com/opal/opal/compare/v0.10.1...v0.10.2
data/Gemfile CHANGED
@@ -1,22 +1,27 @@
1
1
  source 'https://rubygems.org'
2
2
  gemspec
3
3
 
4
- tilt_version = ENV['TILT_VERSION']
5
- rack_version = ENV['RACK_VERSION']
4
+ v = -> version { Gem::Version.new(version) if version }
5
+
6
+ ruby_version = v[RUBY_VERSION]
7
+
8
+ tilt_version = ENV['TILT_VERSION']
9
+ rack_version = ENV['RACK_VERSION']
6
10
  sprockets_version = ENV['SPROCKETS_VERSION']
7
11
 
8
12
  # Stick with older racc until
9
13
  # https://github.com/tenderlove/racc/issues/22
10
14
  # is solved.
11
15
  gem 'racc', '< 1.4.10', platform: :jruby
12
- gem 'json', '< 1.8.1', platform: :ruby if RUBY_VERSION.to_f == 2.1
16
+ gem 'json', '< 1.8.1', platform: :ruby if ruby_version < v['2.2']
13
17
  gem 'rubysl', platform: :rbx
18
+ gem 'rack-test', '< 1.0' if ruby_version < v['2.2.2']
14
19
 
15
20
  # thin requires rack < 2
16
- gem 'thin', platform: :mri if !rack_version || (rack_version < '2')
21
+ gem 'puma'
17
22
 
18
- gem 'rack', rack_version if rack_version
19
- gem 'tilt', tilt_version if tilt_version
23
+ gem 'rack', rack_version if rack_version
24
+ gem 'tilt', tilt_version if tilt_version
20
25
  gem 'sprockets', sprockets_version if sprockets_version
21
26
 
22
27
  group :repl do
@@ -8,7 +8,7 @@ module Opal
8
8
  def compile
9
9
  push type.to_s
10
10
  end
11
-
11
+
12
12
  def self.truthy_optimize?
13
13
  true
14
14
  end
@@ -23,7 +23,7 @@ module Opal
23
23
  push value.to_s
24
24
  wrap '(', ')' if recv?
25
25
  end
26
-
26
+
27
27
  def self.truthy_optimize?
28
28
  true
29
29
  end
@@ -72,6 +72,13 @@ module Opal
72
72
  children :value, :flags
73
73
 
74
74
  def compile
75
+ flags = self.flags
76
+ flags = flags.gsub(/[^gimuy]/, '') if flags
77
+
78
+ if flags != self.flags
79
+ warn "invalid js flags found #{self.flags.inspect}, replaced with #{flags.inspect}"
80
+ end
81
+
75
82
  case value
76
83
  when ''
77
84
  push('/(?:)/')
@@ -101,7 +101,7 @@ module Opal
101
101
  when %r{^(.*)\.rb$}
102
102
  begin
103
103
  asset = sprockets.resolve(path_info.sub(/\.rb#{REGEXP_END}/,''))
104
- rescue Sprockets::FileNotFound
104
+ rescue ::Sprockets::FileNotFound
105
105
  return not_found(path_info)
106
106
  end
107
107
  return [200, {"Content-Type" => "text/ruby"}, [Pathname(asset).read]]
@@ -1,5 +1,5 @@
1
1
  module Opal
2
2
  # WHEN RELEASING:
3
3
  # Remember to update RUBY_ENGINE_VERSION in opal/corelib/constants.rb too!
4
- VERSION = '0.10.5'
4
+ VERSION = '0.10.6.beta'
5
5
  end
@@ -1,8 +1,8 @@
1
1
  RUBY_PLATFORM = 'opal'
2
2
  RUBY_ENGINE = 'opal'
3
- RUBY_VERSION = '2.2.7'
4
- RUBY_ENGINE_VERSION = '0.10.5'
5
- RUBY_RELEASE_DATE = '2017-06-21'
3
+ RUBY_VERSION = '2.2.10'
4
+ RUBY_ENGINE_VERSION = '0.10.6.beta'
5
+ RUBY_RELEASE_DATE = '2018-06-14'
6
6
  RUBY_PATCHLEVEL = 0
7
7
  RUBY_REVISION = 0
8
8
  RUBY_COPYRIGHT = 'opal - Copyright (C) 2013-2015 Adam Beynon'
@@ -99,10 +99,6 @@ describe Opal::Parser do
99
99
  end
100
100
 
101
101
  describe 'parsing unicode' do
102
- if RUBY_ENGINE == 'jruby'
103
- before { pending 'Until https://github.com/jruby/jruby/issues/3719 is fixed' }
104
- end
105
-
106
102
  it "works for constants" do
107
103
  parsed("FOOλ = 1").should == [:cdecl, :FOOλ, [:int, 1]]
108
104
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.5
4
+ version: 0.10.6.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Beynon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-21 00:00:00.000000000 Z
11
+ date: 2018-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sourcemap
@@ -1153,12 +1153,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
1153
1153
  version: 1.9.3
1154
1154
  required_rubygems_version: !ruby/object:Gem::Requirement
1155
1155
  requirements:
1156
- - - ">="
1156
+ - - ">"
1157
1157
  - !ruby/object:Gem::Version
1158
- version: '0'
1158
+ version: 1.3.1
1159
1159
  requirements: []
1160
1160
  rubyforge_project:
1161
- rubygems_version: 2.6.8
1161
+ rubygems_version: 2.7.4
1162
1162
  signing_key:
1163
1163
  specification_version: 4
1164
1164
  summary: Ruby runtime and core library for JavaScript
@@ -1542,4 +1542,3 @@ test_files:
1542
1542
  - test/nodejs/test_file.rb
1543
1543
  - test/opal/test_keyword.rb
1544
1544
  - test/opal/unsupported_and_bugs.rb
1545
- has_rdoc: