opal 0.10.4 → 0.10.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 89554baf418fe68fca2684442d11d361b74c6771
4
- data.tar.gz: 7e44601e429aae698df5656a952447be076fc90f
3
+ metadata.gz: 76c2437c63c4228f7e51792400470b436585ceaa
4
+ data.tar.gz: 653b8ad5e7ccda6ca6d65020c39dde974b4aea16
5
5
  SHA512:
6
- metadata.gz: 6fc37070ccc46ba143fdad2056837f5dea4fc1bc3f3afbbd2839e978e85e005653301bafbba303af5e7f56b26158a64b9903b3385f8fda872a62cc09ecde0f57
7
- data.tar.gz: 816cc90b77dbaa07d4bac8bcc32a54e218d6b1b9411a6c864b8f3eb87474c57bff6d648b18a295978c28e6387eae68bb4440d4b2d24f18b8e53ea48c450130cc
6
+ metadata.gz: 18b3d7f736aa329ad2f6f6d659d4af1eb64b49c123c94f02601e090b7d58d9e055b4013c112feaedaae167d75c3c248a620d138fbf7c137230e3918079d68bc6
7
+ data.tar.gz: 664cb11eaad7e42ac34efe148e56fe6bb73343fd2278a8a2c9baad06b24981edfe907707af5aef484d2f1bc74d12b6a5a5b5889b33a95cdeb48372e52b3cd21f
@@ -21,6 +21,16 @@ Whitespace conventions:
21
21
 
22
22
 
23
23
 
24
+ ## [0.10.4] - 2017-06-21
25
+
26
+
27
+ ### Fixed
28
+
29
+ - Fix `Time#zone` for zones expressed numerically
30
+
31
+
32
+
33
+
24
34
  ## [0.10.3] - 2016-09-09
25
35
 
26
36
 
@@ -881,6 +891,7 @@ Whitespace conventions:
881
891
 
882
892
 
883
893
 
894
+ [0.10.4]: https://github.com/opal/opal/compare/v0.10.3...v0.10.4
884
895
  [0.10.3]: https://github.com/opal/opal/compare/v0.10.2...v0.10.3
885
896
  [0.10.2]: https://github.com/opal/opal/compare/v0.10.1...v0.10.2
886
897
  [0.10.1]: https://github.com/opal/opal/compare/v0.10.0...v0.10.1
@@ -0,0 +1,13 @@
1
+ version: '{build}'
2
+
3
+ skip_tags: true
4
+ # AppVeyor automatically skips the build if the commit contains [ci skip] or [skip ci]
5
+ skip_commits:
6
+ message: /./
7
+
8
+ clone_depth: 1
9
+
10
+ build: off
11
+
12
+ test_script:
13
+ - echo "Skipping appveyor test on 0-10-stable"
@@ -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.4'
4
+ VERSION = '0.10.5'
5
5
  end
@@ -1,8 +1,8 @@
1
1
  RUBY_PLATFORM = 'opal'
2
2
  RUBY_ENGINE = 'opal'
3
- RUBY_VERSION = '2.2.6'
4
- RUBY_ENGINE_VERSION = '0.10.4'
5
- RUBY_RELEASE_DATE = '2017-05-06'
3
+ RUBY_VERSION = '2.2.7'
4
+ RUBY_ENGINE_VERSION = '0.10.5'
5
+ RUBY_RELEASE_DATE = '2017-06-21'
6
6
  RUBY_PATCHLEVEL = 0
7
7
  RUBY_REVISION = 0
8
8
  RUBY_COPYRIGHT = 'opal - Copyright (C) 2013-2015 Adam Beynon'
@@ -391,7 +391,7 @@ class Time < `Date`
391
391
  result = string.match(/[A-Z]{3,4}/)[0];
392
392
  }
393
393
  else {
394
- result = string.match(/\([^)]+\)/)[0].match(/[A-Z]/g).join('');
394
+ result = string.match(/\((.+)\)(?:\s|$)/)[1]
395
395
  }
396
396
 
397
397
  if (result == "GMT" && /(GMT\W*\d{4})/.test(string)) {
@@ -0,0 +1,29 @@
1
+ require 'spec_helper'
2
+ require 'time'
3
+
4
+ # rubyspec does not have specs for these listed methods
5
+ describe Time do
6
+ describe '#zone' do
7
+ context 'with different TZs on Tue Jun 20 20:50:08 UTC 2017' do
8
+ it 'zone is +12' do
9
+ time = Time.now
10
+
11
+ # export TZ="/usr/share/zoneinfo/Pacific/Fiji"; node -e 'console.log(new Date().toString())'
12
+ time.JS[:toString] = -> { 'Wed Jun 21 2017 08:42:01 GMT+1200 (+12)' }
13
+ time.zone.should == '+12'
14
+
15
+ # export TZ="/usr/share/zoneinfo/Europe/Rome"; node -e 'console.log(new Date().toString())'
16
+ time.JS[:toString] = -> { 'Tue Jun 20 2017 22:52:57 GMT+0200 (CEST)' }
17
+ time.zone.should == 'CEST'
18
+
19
+ # export TZ="/usr/share/zoneinfo/Europe/Rome"; node -e 'console.log(new Date().toString())'
20
+ time.JS[:toString] = -> { 'Tue Jun 20 2017 23:56:54 GMT+0300 (MSK)' }
21
+ time.zone.should == 'MSK'
22
+
23
+ # https://github.com/opal/opal/issues/403
24
+ time.JS[:toString] = -> { 'Wed May 07 2014 11:59:05 GMT+0300 (Финляндия (лето))' }
25
+ time.zone.should == 'Финляндия (лето)'
26
+ end
27
+ end
28
+ end
29
+ 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.4
4
+ version: 0.10.5
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-05-06 00:00:00.000000000 Z
11
+ date: 2017-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sourcemap
@@ -233,6 +233,7 @@ files:
233
233
  - LICENSE
234
234
  - README.md
235
235
  - Rakefile
236
+ - appveyor.yml
236
237
  - benchmark/benchmarks
237
238
  - benchmark/bm_array_flatten.rb
238
239
  - benchmark/bm_array_intersection_numbers.rb
@@ -820,6 +821,7 @@ files:
820
821
  - spec/opal/core/runtime_spec.rb
821
822
  - spec/opal/core/source_map_spec.rb
822
823
  - spec/opal/core/string_spec.rb
824
+ - spec/opal/core/time_spec.rb
823
825
  - spec/opal/javascript_api_spec.rb
824
826
  - spec/opal/stdlib/erb/erb_spec.rb
825
827
  - spec/opal/stdlib/erb/inline_block.opalerb
@@ -1493,6 +1495,7 @@ test_files:
1493
1495
  - spec/opal/core/runtime_spec.rb
1494
1496
  - spec/opal/core/source_map_spec.rb
1495
1497
  - spec/opal/core/string_spec.rb
1498
+ - spec/opal/core/time_spec.rb
1496
1499
  - spec/opal/javascript_api_spec.rb
1497
1500
  - spec/opal/stdlib/erb/erb_spec.rb
1498
1501
  - spec/opal/stdlib/erb/inline_block.opalerb